Cargo Features

[dependencies]
rquest = { version = "1.5.5", default-features = false, features = ["full", "websocket", "charset", "cookies", "gzip", "brotli", "zstd", "deflate", "json", "multipart", "hickory-dns", "stream", "socks", "native-roots", "webpki-roots", "impersonate_str", "impersonate_settings"] }
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

impersonate_str

Optional enable impersonate from str

impersonate_settings

Optional enable impersonate from settings

Features from optional dependencies

Internal (PRIVATE!) features used to aid testing.
Don't rely on these whatsoever. They may disappear at anytime.