Cargo Features

[dependencies]
hyper-rustls = { version = "0.27.1", default-features = false, features = ["aws-lc-rs", "http1", "http2", "webpki-tokio", "native-tokio", "ring", "tls12", "logging", "fips", "rustls-platform-verifier"] }
default = aws-lc-rs, http1, logging, native-tokio, tls12

These default features are set whenever hyper-rustls is added without default-features = false somewhere in the dependency tree.

aws-lc-rs default fips?

Enables aws_lc_rs of rustls

http1 default

Enables http1 of hyper-util

http2

Enables http2 of hyper-util

Affects builder::WantsProtocols3

webpki-tokio = webpki-roots
native-tokio default = rustls-native-certs
ring

Enables ring of rustls

tls12 default

Enables tls12 of rustls and tokio-rustls

logging default = log

Enables logging of rustls and tokio-rustls

fips = aws-lc-rs

Enables fips of rustls

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.

log logging
rustls-native-certs native-tokio

Affects config::ConfigBuilderExt.with_native_roots

rustls-platform-verifier implicit feature

Affects config::ConfigBuilderExt.with_platform_verifier

webpki-roots webpki-tokio?

Affects config::ConfigBuilderExt.with_webpki_roots