Cargo Features

[dependencies]
rquest = { version = "2.0.3", default-features = false, features = ["full", "websocket", "charset", "cookies", "gzip", "brotli", "zstd", "deflate", "json", "multipart", "hickory-dns", "stream", "socks", "native-roots", "webpki-roots", "http2-tracing", "internal_proxy_sys_no_cache"] }
default = charset, webpki-roots

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

full = brotli, cookies, deflate, gzip, json, socks, stream, zstd
websocket

Enables async-tungstenite, compat of tokio-util

Affects client::websocket, rquest::websocket

charset default

Enables encoding_rs

common

cookies full?

Enables cookie and cookie_store

Affects rquest::cookie

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

http2-tracing

Optional enable http2 tracing

Enables http2-tracing of hyper2

internal_proxy_sys_no_cache

Optional disable internal proxy cache