Cargo Features

[dependencies]
rustls = { version = "0.24.0-dev.0", default-features = false, features = ["std", "brotli", "log", "webpki", "zlib", "hashbrown"] }
default = log, std, webpki

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

std default brotli?

Enables std of once_cell and rustls-pki-types

once_cell:

only required for no-std

Affects compress::CompressionCacheInner, rustls::ticketer, connection::Accepted, ticketer::TicketRotator, time_provider::DefaultTimeProvider

brotli = std

Enables brotli and brotli-decompressor

log default

Enables log

webpki default

Enables rustls-webpki =0.104.0-alpha.2

zlib

Enables zlib-rs

Features from optional dependencies

hashbrown implicit feature

Enables hashbrown

hashbrown:

A Rust port of Google's SwissTable hash map