Skip to main content

web_transport_ws/
lib.rs

1//! # Deprecated
2//!
3//! This crate has been superseded by the [`qmux`] crate, which supports
4//! TCP, TLS, and WebSocket transports with both the legacy `webtransport`
5//! wire format and the new QMux (draft-ietf-quic-qmux-00) protocol.
6//!
7//! All Rust types in this crate are thin wrappers or re-exports from `qmux`.
8//! Please migrate to `qmux` directly.
9
10mod client;
11mod server;
12mod session;
13
14pub use qmux::Error;
15pub use qmux::RecvStream;
16pub use qmux::SendStream;
17
18#[allow(deprecated)]
19pub use client::Client;
20#[allow(deprecated)]
21pub use server::Server;
22#[allow(deprecated)]
23pub use session::Session;
24pub use tokio_tungstenite;
25pub use tokio_tungstenite::tungstenite;
26
27/// Legacy ALPN identifier.
28#[deprecated(note = "use qmux::ALPNS instead")]
29pub const ALPN: &str = "webtransport";