Crate features / tungstenite
Feature flags · tungstenite 0.30.0 · from crates.io 2026-10-24
tungstenite features: what each one does, and the line to copy
Short answertungstenite 0.30.0 has 7 features. By default it turns on handshake; add default-features = false to start from nothing. It needs Rust 1.85 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
__rustls-tls | rustls, rustls-pki-types | |
handshake | yes | data-encoding, http, httparse, sha1 |
native-tls | native-tls-crate | |
native-tls-vendored | native-tls, native-tls-crate/vendored | |
rustls-tls-native-roots | __rustls-tls, rustls-native-certs | |
rustls-tls-webpki-roots | __rustls-tls, webpki-roots | |
url | dep:url |
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 tungstenite declares (rust-version), and the release that changed it:
- 0.17.1 (2022-02-16): Rust 1.58
- 0.17.2 (2022-02-21): Rust 1.56
- 0.17.3 (2022-07-13): Rust 1.51
- 0.22.0 (2024-06-01): Rust 1.60
- 0.24.0 (2024-08-27): Rust 1.63
- 0.29.0 (2026-03-17): Rust 1.71
- 0.30.0 (2026-07-11): Rust 1.85
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p tungstenite --precise <version>, or use resolver 3, which picks compatible versions for you.
More on tungstenite
Real downloads, dependents and alternatives: tungstenite crate data (1.1M real downloads a day, 710 dependents).
Security record: tungstenite advisories.
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021
Up next
Before you depend on ittungstenite crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?