Cargo Features

reqwest_wasi has no features set by default.

[dependencies]
reqwest_wasi = { version = "0.11.16", features = ["default-tls", "native-tls", "native-tls-alpn", "native-tls-vendored", "rustls-tls", "rustls-tls-manual-roots", "rustls-tls-webpki-roots", "rustls-tls-native-roots", "wasmedge-tls", "blocking", "cookies", "gzip", "brotli", "deflate", "json", "multipart", "trust-dns", "stream", "socks", "no-pool"] }
default-tls native-tls? = __tls, hyper-tls, native-tls-crate, tokio-native-tls

Note: this doesn't enable the 'native-tls' feature, which adds specific functionality for it.

native-tls native-tls-alpn? native-tls-vendored? = default-tls

Enables native-tls specific functionality not available by default.

native-tls-alpn = native-tls

Enables alpn of native-tls

native-tls-vendored = native-tls

Enables vendored of native-tls

rustls-tls = rustls-tls-webpki-roots
rustls-tls-manual-roots = __tls, hyper-rustls, rustls, rustls-pemfile, tokio-rustls
rustls-tls-webpki-roots rustls-tls? = __tls, hyper-rustls, rustls, rustls-pemfile, tokio-rustls, webpki-roots
rustls-tls-native-roots = __tls, hyper-rustls, rustls, rustls-native-certs, rustls-pemfile, tokio-rustls
wasmedge-tls = __tls, wasmedge_hyper_rustls, wasmedge_rustls_api
blocking

Enables io of futures-util, rt-multi-thread and sync of tokio_wasi

Affects reqwest_wasi::blocking

cookies = cookie_crate, cookie_store

Affects reqwest_wasi::cookie

gzip = async-compression, tokio-util_wasi

Enables gzip of async-compression ^0.3.13

brotli = async-compression, tokio-util_wasi

Enables brotli of async-compression ^0.3.13

deflate = async-compression, tokio-util_wasi

Enables zlib of async-compression ^0.3.13

json = serde_json
multipart = mime_guess

Affects async_impl::multipart, blocking::multipart, wasm::multipart

trust-dns = trust-dns-resolver
stream = tokio-util_wasi, wasm-streams

Enables fs of tokio_wasi

socks = tokio-socks
__tls default-tls? rustls-tls-manual-roots? rustls-tls-native-roots? rustls-tls-webpki-roots? wasmedge-tls?

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.

Affects reqwest_wasi::tls, reqwest_wasi::tls

no-pool

Sets the maximum idle connection per host allowed in the pool to 0

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 ^0.16

Enables cookie_store ^0.16

hyper-tls wasi default-tls?

Enables hyper-tls ^0.5

rustls-native-certs wasi rustls-tls-native-roots?

Enables rustls-native-certs ^0.6

tokio-native-tls wasi default-tls?
tokio-socks wasi socks?
trust-dns-resolver wasi trust-dns?

Enables trust-dns-resolver ^0.22

wasm-streams wasm32 not wasi stream?

Enables wasm-streams ^0.2

wasmedge_hyper_rustls wasi wasmedge-tls?
wasmedge_rustls_api wasi wasmedge-tls?
webpki-roots wasi rustls-tls-webpki-roots?

Enables webpki-roots ^0.22

async-compression wasi brotli? deflate? gzip?

Enables async-compression ^0.3.13

hyper-rustls wasi rustls-tls-manual-roots? rustls-tls-native-roots? rustls-tls-webpki-roots?

Enables hyper-rustls ^0.23

native-tls-crate wasi default-tls? native-tls-alpn? native-tls-vendored?

Enables native-tls

rustls wasi rustls-tls-manual-roots? rustls-tls-native-roots? rustls-tls-webpki-roots?

Enables rustls ^0.20

rustls-pemfile wasi rustls-tls-manual-roots? rustls-tls-native-roots? rustls-tls-webpki-roots?

Enables rustls-pemfile ^1.0

tokio-rustls wasi rustls-tls-manual-roots? rustls-tls-native-roots? rustls-tls-webpki-roots?

Enables tokio-rustls ^0.23

tokio-util_wasi wasi brotli? deflate? gzip? stream?