Cargo Features

[dependencies]
hyper-rustls = { version = "0.26.0", default-features = false, features = ["http1", "http2", "webpki-tokio", "native-tokio", "ring", "tls12", "logging"] }
default = http1, logging, native-tokio, ring, tls12

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

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 default

Enables ring of rustls

tls12 default

Enables tls12 of rustls and tokio-rustls

logging default = log

Enables logging of rustls and tokio-rustls

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

log logging
rustls-native-certs native-tokio

Affects config::ConfigBuilderExt.with_native_roots

webpki-roots webpki-tokio?

Affects config::ConfigBuilderExt.with_webpki_roots