Cargo Features
[dependencies]
wreq = { version = "6.0.0-rc.29", default-features = false, features = ["tokio-rt", "compio-rt", "charset", "cookies", "gzip", "brotli", "zstd", "deflate", "query", "form", "json", "multipart", "hickory-dns", "stream", "socks", "ws", "webpki-roots", "system-proxy", "tracing", "parking_lot", "prefix-symbols"] }
- default = tokio-rt, webpki-roots
-
These default features are set whenever
wreqis added withoutsomewhere in the dependency tree.default-features = false - tokio-rt default
-
Enable tokio as the async runtime (default).
Enables fs, net and rt of tokio, tokio-rt of wreq-rt
Affects
tcp::tokio,uds::tokio… - compio-rt
-
Enable compio as the async runtime (completion-based, io_uring/IOCP).
Enables net and runtime of compio, compio-rt of wreq-rt
Affects
tcp::compio,uds::compio… - charset
-
Enable support for decoding text.
Enables encoding_rs and mime
-
Enable cookies store support.
Enables cookie
Affects
wreq::cookie… - gzip
-
Enable gzip decompression support.
Enables decompression-gzip of tower-http
tower http
- brotli
-
Enable brotli decompression support.
Enables decompression-br of tower-http
- zstd
-
Enable zstd decompression support.
Enables decompression-zstd of tower-http
- deflate
-
Enable deflate decompression support.
Enables decompression-deflate of tower-http
- query
-
Enable URL query string serialization support.
Enables serde and serde_html_form
serde:
Optional deps...
serde - form
-
Enable x-www-form-urlencoded form support.
Enables serde and serde_html_form
- json
-
Enable JSON support.
Enables serde and serde_json
- multipart
-
Enable multipart/form-data support.
Enables mime_guess and futures of sync_wrapper
sync wrapper
Affects
client::multipart… - hickory-dns
-
Enable hickory DNS resolver.
Enables hickory-resolver
- stream
-
Enable streaming support.
Enables futures of sync_wrapper and tokio-util
tokio util
- socks
-
Enable SOCKS/4/5 proxy support.
Enables tokio-socks
tokio socks
Affects
proxy::socks… - ws
-
Enable WebSocket support.
Enables handshake of tokio-tungstenite
tokio websocket
Affects
client::ws,wreq::websocket… - webpki-roots default
-
Enable webpki-roots for TLS certificate validation.
Enables webpki-root-certs
webpki root certs
- system-proxy
-
Use the system's proxy configuration.
Enables system-configuration and windows-registry
- tracing
-
Enable tracing logging.
Enables tracing, tracing of wreq-proto
- parking_lot
-
Enables the
parking_lotcrate for synchronization primitives.Enables parking_lot, parking_lot of http2
- prefix-symbols
-
Prefix BoringSSL symbols in libcrypto/libssl to avoid linker conflicts when multiple OpenSSL versions coexist in the same process.
Enables prefix-symbols of btls