Cargo Features

rustls = { version = "0.22.0-alpha.6", default-features = false, features = ["logging", "aws_lc_rs", "ring", "tls12", "read_buf"] }
default = logging, ring, tls12

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

logging default = log

Enables aws-lc-rs, aws_lc_rs of rustls-webpki

Affects crypto::aws_lc_rs

ring default

Enables ring, ring of rustls-webpki

Affects crypto::ring

tls12 default

Affects versions::TLS12

read_buf = rustversion

Features from optional dependencies

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

log logging
rustversion read_buf? build

Enables rustversion