Cargo Features

[dependencies]
reqwest = { version = "0.13.1", default-features = false, features = ["default-tls", "http2", "rustls", "rustls-no-provider", "native-tls", "native-tls-no-alpn", "native-tls-vendored", "native-tls-vendored-no-alpn", "blocking", "charset", "cookies", "gzip", "brotli", "zstd", "deflate", "form", "json", "multipart", "hickory-dns", "stream", "socks", "system-proxy", "http3", "rustls-native-certs", "webpki-roots"] }
default = charset, default-tls, http2, system-proxy

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

default-tls default = rustls
http2 default

Enables h2, http2 of hyper, hyper-util, and optional hyper-rustls

rustls default-tls http3? rustls? = __rustls

Enables rustls-platform-verifier, aws-lc-rs of optional hyper-rustls, aws-lc-rs of optional rustls, aws-lc-rs of optional tokio-rustls and rustls-aws-lc-rs of optional quinn

quinn:

Enable rustls with the aws-lc-rs crypto provider

rustls-no-provider = __rustls

Enables rustls-platform-verifier

native-tls = __tls

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

native-tls-no-alpn = __tls

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

native-tls-vendored = __tls

Enables tokio-native-tls, alpn of hyper-tls, alpn and vendored of native-tls

native-tls-vendored-no-alpn = __tls

Enables hyper-tls, tokio-native-tls, vendored of native-tls

blocking

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

Affects reqwest::blocking

charset default

Enables encoding_rs and mime

cookies

Enables cookie and cookie_store

Affects reqwest::cookie

gzip

Enables decompression-gzip of tower-http

brotli

Enables decompression-br of tower-http

zstd

Enables decompression-zstd of tower-http

deflate

Enables decompression-deflate of tower-http

query form

Enables serde

Optional deps...

and serde_urlencoded

query/form

json

Enables serde and serde_json

multipart

Enables futures-util and mime_guess

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

hickory-dns

Enables hickory-resolver and once_cell

stream

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

socks
system-proxy default

Use the system's proxy configuration.

Enables client-proxy-system of hyper-util

http3 = rustls

Experimental HTTP/3 client.

Enables h3, h3-quinn, and quinn, macros of tokio

__tls __rustls? native-tls? native-tls-no-alpn? native-tls-vendored? native-tls-vendored-no-alpn?

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

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

Enables rustls-pki-types, io-util of tokio

Affects reqwest::tls

__rustls rustls? rustls-no-provider? = __tls

Enables common rustls code.

Enables hyper-rustls, rustls, and tokio-rustls

Affects tls::CertificateRevocationList

Features from optional dependencies

rustls-native-certs not wasm32 implicit feature

Enables rustls-native-certs

rustls-native-certs:

rustls-native-certs allows rustls to use the platform native certificate store

webpki-roots not wasm32 implicit feature

Enables webpki-roots

webpki-roots:

Mozilla's CA root certificates for use with webpki