Cargo Features
[dependencies]
rquest = { version = "0.27.7", default-features = false, features = ["full", "websocket", "cookies", "gzip", "brotli", "zstd", "deflate", "json", "multipart", "hickory-dns", "stream", "socks", "boring-tls-native-roots", "boring-tls-webpki-roots", "boring-tls-pq", "internal_proxy_sys_no_cache", "boring-tls"] }
- default = boring-tls, boring-tls-webpki-roots
-
These default features are set whenever
rquest
is added without
somewhere in the dependency tree.default-features = false - full = boring-tls, brotli, cookies, deflate, gzip, json, socks, stream, zstd
- websocket = async-tungstenite
-
Enables compat of tokio-util
Affects
client::websocket
,rquest::websocket
… -
Affects
rquest::cookie
… - gzip full? = async-compression, tokio-util
-
Enables gzip of async-compression
compression
- brotli full? = async-compression, tokio-util
-
Enables brotli of async-compression
- zstd full? = async-compression, tokio-util
-
Enables zstd of async-compression
- deflate full? = async-compression, tokio-util
-
Enables deflate of async-compression
- json full? = serde_json
- multipart = mime_guess
-
Affects
client::multipart
… - hickory-dns = hickory-resolver
- stream full? = tokio-util
- socks full? = tokio-socks
- boring-tls-native-roots
-
Enables rustls-native-certs
tls root certs
Affects
extension::TlsExtension.configure_set_native_verify_cert_store
… - boring-tls-webpki-roots default
-
Enables webpki-root-certs
Affects
extension::TlsExtension.configure_set_webpki_verify_cert_store
… - boring-tls-pq boring-tls
-
BoringSSL PQ experimental features
Enables pq-experimental of boring2
Optional deps...
boring-tls - internal_proxy_sys_no_cache
-
Optional disable internal proxy cache
- boring-tls default full? = boring-tls-pq
-
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 typed-builder
boring-tls extension builder
and antidote, boring2, boring-sys2, brotli, flate2, foreign-types, linked_hash_set, tokio-boring2, and tower-layer
linked_hash_set:
boring-tls session cache
Affects
rquest::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.
- serde_json json?
-
Enables serde_json
Optional deps...
json - mime_guess multipart?
-
Enables mime_guess
multipart
-
Enables cookie
cookies
- async-compression brotli? deflate? gzip? zstd?
- tokio-util brotli? deflate? gzip? stream? websocket? zstd?
- tokio-socks socks?
-
Enables tokio-socks
socks
- async-tungstenite websocket?
-
Enables async-tungstenite
websocket
- hickory-resolver hickory-dns?
-
Enables hickory-resolver
hickory-dns