moq_lite/
lib.rs

1//! # moq-lite: Media over QUIC Transport
2//!
3//! `moq-lite` is a simplified implementation of the Media over QUIC (MoQ) transport protocol,
4//! designed for real-time live media delivery with sub-second latency at scale.
5//! It's a fork of the IETF MoQ specification, optimized for practical deployment.
6//!
7//! ## Overview
8//!
9//! MoQ is a pub/sub protocol built on top of QUIC that provides:
10//! - **Real-time latency**: Sub-second delivery for live media
11//! - **Massive scale**: CDN-like distribution via relay clustering
12//! - **Network efficiency**: Leverages QUIC's multiplexing and partial reliability
13//! - **Browser compatibility**: Works with WebTransport for web applications
14//!
15//! While designed for media, the transport is generic and can handle any live data streams.
16
17mod error;
18mod model;
19mod path;
20mod session;
21
22pub mod coding;
23pub mod message;
24pub use error::*;
25pub use model::*;
26pub use path::*;
27pub use session::*;
28
29/// The ALPN used when connecting via QUIC directly.
30pub const ALPN: &str = message::Alpn::CURRENT.0;
31
32/// Export the web_transport crate.
33pub use web_transport;