Cargo Features
[dependencies]
rquest = { version = "0.20.85", default-features = false, features = ["full", "websocket", "cookies", "gzip", "brotli", "zstd", "deflate", "json", "multipart", "hickory-dns", "stream", "socks", "boring-tls"] }
- default = boring-tls
-
The
boring-tls
feature is set by default wheneverrquest
is added without
somewhere in the dependency tree.default-features = false - full = boring-tls, brotli, cookies, deflate, gzip, hickory-dns, 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 full? = hickory-resolver
- stream full? = tokio-util
- socks full? = tokio-socks
- boring-tls default full?
-
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 ^0.19
boring-tls extension builder
and linked_hash_set, tokio-rboring, and tower-layer
linked_hash_set:
boring-tls session cache
and antidote, rboring, rboring-sys, brotli, flate2, foreign-types, and libc
rboring:
Optional deps...
boring-tlsAffects
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 ^0.27.0
websocket
- hickory-resolver hickory-dns?
-
Enables hickory-resolver
hickory-dns