$ tokio-tungstenite

v0.29.0MAJOR UPDATE

Tokio binding for Tungstenite, the Lightweight stream-based WebSocket implementation

Downloads: 151.4M
Recent: 29.6M
Versions: 39
Updated: March 17, 2026

Latest Update Summary

Crate

Name: tokio-tungstenite New version: 0.29.0 Release date: 2026-03-17T15:40:13.215053Z

Crate readme

Short description Asynchronous WebSockets for Tokio stack.

Long description This crate is based on tungstenite-rs Rust WebSocket library and provides Tokio bindings and wrappers for it, allowing usage with non-blocking/asynchronous TcpStreams. It supports TLS on all platforms through feature flags, enabling secure WebSockets when required. While tokio-tungstenite offers decent performance, it aims to improve consistent performance through community contributions.

Features • native-tls • rustls-tls-native-roots • rustls-tls-webpki-roots

Code Examples Add to Cargo.toml

 [dependencies]
tokio-tungstenite = "0.28"

Linkshttps://crates.io/crates/tokio-tungstenitehttps://docs.rs/tokio-tungstenitehttps://github.com/snapview/tungstenite-rshttps://github.com/rustls/rustlshttps://github.com/sfackler/rust-native-tlshttps://github.com/snapview/tokio-tungstenite/blob/master/CHANGELOG.md#0230https://github.com/snapview/tokio-tungstenite/issues/336https://github.com/snapview/tokio-tungstenite/issues/353#issuecomment-2455100010https://github.com/snapview/tungstenite-rs/issues/352#issuecomment-1537488614

https://docs.rs/tokio-tungstenite/0.29.0

Release info

Release version: N/A

Release description N/A

Code Examples N/A

Minor update: 0.28.0 → 0.29.0

$ DOWNLOADS TREND

105.4M151.4M

$ VERSION HISTORY

v0.29.0March 17, 2026
v0.28.0September 25, 2025

$ LINKS

$ INSTALL

cargo add tokio-tungstenite

Or add to Cargo.toml: tokio-tungstenite = "0.29.0"