Cargo Features
[dependencies]
rquest = { version = "5.1.0", default-features = false, features = ["full", "websocket", "charset", "cookies", "cookies-abstract", "cookies-preserve-order", "cookies-multiple", "gzip", "brotli", "zstd", "deflate", "json", "multipart", "hickory-dns", "stream", "socks", "native-roots", "webpki-roots", "macos-system-configuration", "apple-network-device-binding", "http2-tracing", "internal_proxy_sys_no_cache"] }
- default = charset, macos-system-configuration, webpki-roots
-
These default features are set whenever
rquest
is added without
somewhere in the dependency tree.default-features = false - full = brotli, cookies, deflate, gzip, json, socks, stream, zstd
- websocket
-
Enables tokio-tungstenite
Affects
client::websocket
… - charset default
-
Enables encoding_rs
common
-
Enables cookie_store
Affects
cookie::Jar
,rquest::cookie
… -
Enables cookie
cookies
Affects
rquest::cookie
… -
Enables preserve_order of cookie_store
cookie_store:
uses
indexmap::IndexMap
in lieu of HashMap internally, so cookies are maintained in insertion/creation order - gzip full?
-
Enables tokio-util and gzip of async-compression
compression
- brotli full?
-
Enables tokio-util, brotli of async-compression
- zstd full?
-
Enables tokio-util, zstd of async-compression
- deflate full?
-
Enables tokio-util, zlib of async-compression
- json full?
-
Enables serde_json
Optional deps...
json - multipart
-
Enables mime_guess
Affects
client::multipart
… - hickory-dns
-
Enables hickory-resolver
- stream full?
-
Enables tokio-util, fs of tokio
- socks full?
-
Enables tokio-socks
- native-roots
-
Enables rustls-native-certs
Optional deps...
tls root certs - webpki-roots default
-
Enables webpki-root-certs
- macos-system-configuration default
-
Use the system's proxy configuration.
Enables system-configuration
- apple-network-device-binding
-
Use the Apple platform's network device binding.
Enables libc
- http2-tracing
-
Optional enable http2 tracing
Enables http2-tracing of hyper2
- internal_proxy_sys_no_cache
-
Optional disable internal proxy cache