Skip to main content

tako_rs_streams/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg))]
2
3//! Streaming and upgrade transports for the Tako framework.
4//!
5//! WebSocket, Server-Sent Events, file streaming, static file serving, and
6//! WebTransport implementations. Re-exported under the original `tako::*` paths
7//! via the umbrella crate.
8
9/// Server-Sent Events (SSE) support for real-time communication.
10pub mod sse;
11
12/// File streaming utilities for serving files.
13#[cfg(feature = "file-stream")]
14#[cfg_attr(docsrs, doc(cfg(feature = "file-stream")))]
15pub mod file_stream;
16
17/// Static file serving utilities.
18pub mod r#static;
19
20/// WebSocket connection handling and message processing.
21#[cfg(not(feature = "compio"))]
22pub mod ws;
23
24/// WebSocket connection handling for compio runtime.
25#[cfg(feature = "compio-ws")]
26#[cfg_attr(docsrs, doc(cfg(feature = "compio-ws")))]
27pub mod ws_compio;
28
29/// WebTransport server support over QUIC.
30#[cfg(all(feature = "webtransport", not(feature = "compio")))]
31#[cfg_attr(docsrs, doc(cfg(feature = "webtransport")))]
32pub mod webtransport;