Cargo Features

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

[dependencies]
generic-async-http-client = { version = "0.5.1", features = ["use_hyper", "use_async_h1", "use_web_sys", "cookies", "proxies", "rustls", "async_native_tls", "hyper_native_tls"] }
use_hyper hyper_native_tls? = serde_json, serde_qs, serde_urlencoded

Enables client, http1 and http2 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
cookies = cookie_store
proxies = async-trait

Affects tcp::proxy

rustls = futures-rustls, tokio-rustls, webpki-roots
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 use_hyper?
serde_qs use_hyper?

Enables serde_qs ^0.12

serde_urlencoded use_hyper?
serde_json use_hyper?
tokio 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?

Enables futures-rustls ^0.25.0

tokio-rustls rustls?

Enables tokio-rustls ^0.25.0

webpki-roots rustls?
async-native-tls async_native_tls? hyper_native_tls?
async-trait proxies?