Quinn provides a pure-Rust, async QUIC stack with client and server APIs, optional datagrams, and pluggable cryptography. It targets stable Rust on Linux, macOS, and Windows.
Overview
Quinn implements the IETF QUIC transport protocol for Rust applications that need multiplexed, encrypted connections over UDP. The high-level quinn crate builds on tokio, while quinn-proto holds a deterministic protocol state machine without performing I/O.
Streams can be read in ordered or unordered mode, and application-layer datagrams carry small unreliable messages. Cryptography defaults to rustls and ring but remains pluggable for custom setups.
The project ships companion crates for UDP sockets tuned for QUIC, benchmarks, and fuzz targets. Examples include a simple HTTP/0.9 server and client over the loopback interface with self-signed certificate handling.
Documentation covers buffer sizing on busy endpoints, certificate validation strategies including trust-on-first-use, and integration patterns for custom TLS configuration.
Key features
- Client and server in one stack
- Ordered and unordered streams
- Application datagram support
- Pluggable cryptography
- Async future-based API
- Deterministic quinn-proto core
- ECN-aware UDP helpers
- Worked examples and guides
Use cases
- Building QUIC clients and servers in Rust
- Low-latency multiplexed protocols
- Custom event-loop integration via quinn-proto
- HTTP/3 experimentation
- Peer-to-peer or bespoke transport layers