Cargo Features

[dependencies]
http-client-2 = { version = "6.6.3", default-features = false, features = ["h1_client", "h1_client_rustls", "native_client", "curl_client", "wasm_client", "hyper_client", "native-tls", "rustls", "docs", "unstable-config"] }
default = h1_client, native-tls

These default features are set whenever http-client-2 is added without default-features = false somewhere in the dependency tree.

h1_client default docs? h1_client_rustls? = async-h1-2, async-std, dashmap, deadpool, futures

Affects config::Config.tls_config, config::Config.tls_config, http-client-2::h1

h1_client_rustls = h1_client, rustls

Affects http-client-2::h1

native_client = curl_client, wasm_client
curl_client docs? native_client? = async-std, isahc

Affects http-client-2::isahc, http-client-2::native

wasm_client docs? native_client? = futures, js-sys, wasm-bindgen, wasm-bindgen-futures, web-sys

Affects http-client-2::wasm, http-client-2::native

hyper_client docs? = futures-util, hyper, hyper-tls, tokio

Enables hyperium_http of http-types-2

Affects http-client-2::hyper

native-tls default = async-native-tls

Affects config::Config.tls_config

rustls h1_client_rustls? = async-tls, rustls_crate

Affects config::Config.tls_config

docs = curl_client, h1_client, hyper_client, wasm_client
unstable-config

deprecated

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-h1-2 h1_client

Enables async-h1-2

h1_client

async-std curl_client? h1_client
async-native-tls native-tls

Enables async-native-tls ^0.5

dashmap h1_client
deadpool h1_client

Enables deadpool ^0.7.0

futures h1_client wasm_client?
async-tls rustls?

Enables async-tls

h1_client_rustls

rustls_crate rustls?

Enables rustls

hyper hyper_client?

Enables hyper

hyper_client

hyper-tls hyper_client?
futures-util hyper_client?
tokio hyper_client?
isahc not wasm32 curl_client?
js-sys wasm32 wasm_client?
wasm-bindgen wasm32 wasm_client?
wasm-bindgen-futures wasm32 wasm_client?
web-sys wasm32 wasm_client?