Cargo Features

[dependencies]
reqwest = { version = "0.12.4", default-features = false, features = ["default-tls", "http2", "native-tls", "native-tls-alpn", "native-tls-vendored", "rustls-tls", "rustls-tls-manual-roots", "rustls-tls-webpki-roots", "rustls-tls-native-roots", "blocking", "charset", "cookies", "gzip", "brotli", "zstd", "deflate", "json", "multipart", "trust-dns", "hickory-dns", "stream", "socks", "macos-system-configuration", "h3", "h3-quinn", "quinn"] }
default = charset, default-tls, http2, macos-system-configuration

These default features are set whenever reqwest is added without default-features = false somewhere in the dependency tree.

default-tls default native-tls? = __tls

Note: this doesn't enable the 'native-tls' feature, which adds specific functionality for it.

Enables hyper-tls, native-tls, and tokio-native-tls

http2 default = h2

Enables http2 of hyper and hyper-util

native-tls native-tls-alpn? native-tls-vendored? = default-tls

Enables native-tls specific functionality not available by default.

native-tls-alpn = native-tls

Enables alpn of optional hyper-tls and optional native-tls

native-tls-vendored = native-tls

Enables vendored of optional native-tls

rustls-tls = rustls-tls-webpki-roots
rustls-tls-manual-roots = __tls, rustls-pki-types

Enables hyper-rustls ^0.26.0, rustls ^0.22.2, rustls-pemfile, and tokio-rustls ^0.25

rustls-tls-webpki-roots rustls-tls? = __tls, rustls-pki-types

Enables hyper-rustls ^0.26.0, rustls ^0.22.2, rustls-pemfile, tokio-rustls ^0.25, and webpki-roots

rustls-tls-native-roots = __tls, rustls-pki-types

Enables hyper-rustls ^0.26.0, rustls ^0.22.2, rustls-native-certs, rustls-pemfile, and tokio-rustls ^0.25

blocking

Enables sink of futures-channel, io and sink of futures-util, rt-multi-thread and sync of tokio

Affects reqwest::blocking

charset default

Enables encoding_rs

cookies

Enables cookie ^0.17.0 and cookie_store ^0.20.0

Affects reqwest::cookie

gzip

Enables tokio-util, gzip of async-compression

brotli

Enables tokio-util, brotli of async-compression

zstd

Enables tokio-util, zstd of async-compression

deflate

Enables tokio-util, zlib of async-compression

json

Enables serde_json

Optional deps...

json

multipart

Enables mime_guess

Affects async_impl::multipart, blocking::multipart, wasm::multipart

trust-dns

Deprecated, remove this feature while bumping minor versions.

hickory-dns

Enables hickory-resolver

stream

Enables tokio-util and wasm-streams, fs of tokio

socks

Enables tokio-socks

macos-system-configuration default

Use the system's proxy configuration.

Enables system-configuration ^0.5.1

__tls default-tls rustls-tls-manual-roots? rustls-tls-native-roots? rustls-tls-webpki-roots?

Internal (PRIVATE!) features used to aid testing.
Don't rely on these whatsoever. They may disappear at anytime.

Enables common types used for TLS. Useless on its own.

Enables rustls-pemfile, io-util of tokio

Affects reqwest::tls

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

h3 not wasm32 implicit feature

Enables h3 ^0.0.4

h3:

An async HTTP/3 implementation

h3-quinn not wasm32 implicit feature

Enables h3-quinn ^0.0.5

h3-quinn:

QUIC transport implementation based on Quinn

quinn not wasm32 implicit feature

Enables quinn ^0.10

quinn:

Versatile QUIC transport protocol implementation

futures-channel not wasm32 blocking?
h2 not wasm32 http2
rustls-pki-types not wasm32 rustls-tls-manual-roots? rustls-tls-native-roots? rustls-tls-webpki-roots?