Crate features / tokio-rustls
Feature flags · tokio-rustls 0.26.6 · from crates.io 2026-10-24
tokio-rustls features: what each one does, and the line to copy
Short answertokio-rustls 0.26.6 has 9 features. By default it turns on logging, tls12, aws_lc_rs; add default-features = false to start from nothing. It needs Rust 1.71 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
aws-lc-rs | aws_lc_rs | |
aws_lc_rs | yes | rustls/aws_lc_rs |
brotli | rustls/brotli | |
early-data | nothing else (a switch the code checks) | |
fips | rustls/fips | |
logging | yes | rustls/logging |
ring | rustls/ring | |
tls12 | yes | rustls/tls12 |
zlib | rustls/zlib |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version tokio-rustls declares (rust-version), and the release that changed it:
- 0.24.0 (2023-03-31): Rust 1.56
- 0.25.0-alpha.1 (2023-09-23): Rust 1.63
- 0.26.1 (2024-12-05): Rust 1.70
- 0.26.2 (2025-03-01): Rust 1.71
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p tokio-rustls --precise <version>, or use resolver 3, which picks compatible versions for you.
More on tokio-rustls
Real downloads, dependents and alternatives: tokio-rustls crate data (2.3M real downloads a day, 2,458 dependents).
Security record: tokio-rustls advisories.
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021
Up next
Before you depend on ittokio-rustls crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?