Cargo Features

generic-async-http-client has no features set by default.

[dependencies]
generic-async-http-client = { version = "0.6.2", features = ["use_hyper", "use_async_h1", "use_web_sys", "http2", "cookies", "proxies", "rustls", "rustls_byoc", "rustls_ring", "rustls_aws_lc_rs", "rustls_fips", "async_native_tls", "hyper_native_tls"] }
use_hyper hyper_native_tls? = serde_json, serde_qs, serde_urlencoded

Enables client and http1 of hyper, net and rt of tokio

use_async_h1 async_native_tls? = async-h1, async-std, http-types
use_web_sys = js-sys, wasm-bindgen, wasm-bindgen-futures, web-sys
http2

Enables http2 of hyper

cookies = cookie_store
proxies = async-trait

Enables io-util of tokio

Affects tcp::proxy

rustls = rustls_ring
rustls_byoc rustls_aws_lc_rs? rustls_fips? rustls_ring? = futures-rustls, tokio-rustls, webpki-roots
rustls_ring rustls? = rustls_byoc

Enables ring of futures-rustls and tokio-rustls

rustls_aws_lc_rs = rustls_byoc

Enables aws_lc_rs of futures-rustls and tokio-rustls

rustls_fips = rustls_byoc

Enables fips of futures-rustls and tokio-rustls

async_native_tls = use_async_h1

Enables runtime-async-std of async-native-tls

rustls-native-certs

hyper_native_tls = use_hyper

Enables runtime-tokio of async-native-tls

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.

async-std use_async_h1?
async-h1 use_async_h1?
http-types use_async_h1?
hyper http2? use_hyper?
serde_qs use_hyper?
serde_urlencoded use_hyper?
serde_json use_hyper?
tokio proxies? use_hyper?
web-sys use_web_sys?
wasm-bindgen use_web_sys?
js-sys use_web_sys?
wasm-bindgen-futures use_web_sys?
futures-rustls rustls_aws_lc_rs? rustls_byoc? rustls_fips? rustls_ring?
tokio-rustls rustls_aws_lc_rs? rustls_byoc? rustls_fips? rustls_ring?
webpki-roots rustls_byoc?
async-native-tls async_native_tls? hyper_native_tls?
async-trait proxies?