Cargo Features
[dependencies]
cf-reqwest = { version = "0.13.0", default-features = false, features = ["default-tls", "http2", "native-tls", "native-tls-alpn", "native-tls-vendored", "rustls-tls", "rustls-tls-no-provider", "rustls-tls-manual-roots", "rustls-tls-webpki-roots", "rustls-tls-native-roots", "rustls-tls-manual-roots-no-provider", "blocking", "charset", "cookies", "gzip", "brotli", "zstd", "deflate", "json", "multipart", "trust-dns", "hickory-dns", "stream", "socks", "macos-system-configuration", "http3"] }
- default = charset, default-tls, http2, macos-system-configuration
-
These default features are set whenever
cf-reqwest
is added without
somewhere in the dependency tree.default-features = false - 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, optional hyper-rustls, 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-no-provider = rustls-tls-manual-roots-no-provider
- rustls-tls-manual-roots http3? = __tls
-
Enables rustls-pemfile and rustls-pki-types, ring of tokio-rustls, ring of hyper-rustls, rustls, and optional quinn
- rustls-tls-webpki-roots rustls-tls? = __tls
-
Enables webpki-roots, rustls-pemfile and rustls-pki-types, ring and webpki-tokio of hyper-rustls, ring of tokio-rustls, ring of rustls and optional quinn
- rustls-tls-native-roots = __tls
-
Enables rustls-native-certs ^0.7, rustls-pemfile, and rustls-pki-types, native-tokio and ring of hyper-rustls, ring of tokio-rustls and ring of rustls and optional quinn
quinn:
Enables
Endpoint::client
andEndpoint::server
conveniences - rustls-tls-manual-roots-no-provider rustls-tls-no-provider? = __tls
-
Enables hyper-rustls, rustls, rustls-pemfile, rustls-pki-types, and tokio-rustls
- blocking
-
Enables sink of futures-channel, io and sink of futures-util, sync of tokio
Affects
cf-reqwest::blocking
… - charset default
-
Enables encoding_rs
-
Enables cookie and cookie_store
Affects
cf-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
- http3 = rustls-tls-manual-roots
-
Experimental HTTP/3 client.
Enables futures-channel, h3, h3-quinn, quinn, and slab
- __tls default-tls rustls-tls-manual-roots? rustls-tls-manual-roots-no-provider? 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 any time.
Enables common types used for TLS. Useless on its own.Enables rustls-pemfile, io-util of tokio
Affects
connect::TlsInfoFactory
,connect::AsyncConnWithInfo
,cf-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.