quiche implements IETF QUIC and HTTP/3 with a low-level Rust API. Applications supply sockets, timers, and pacing while the library handles protocol state.
Overview
quiche is a Rust library that implements the QUIC transport protocol and HTTP/3 as standardized by the IETF. It exposes a low-level API for parsing QUIC packets, advancing connection state, and emitting outbound frames while leaving network I/O, event loops, and timers to the embedding application.
Connection setup uses configurable objects for version, ALPN, flow control, congestion control, and idle timeouts. Clients call connect helpers while servers accept inbound handshakes, then recv and send methods move traffic with explicit receive metadata. Applications must schedule timeouts based on quiche hints and optionally pace sends using timing fields on outgoing packets.
An HTTP/3 module layers request and response handling above QUIC. A C API wraps the Rust surface for C and C++ consumers, producing a static libquiche archive when built with the ffi feature. Example clients and servers in the source tree illustrate integration patterns.
Cloudflare uses quiche on its edge for HTTP/3, and other projects such as Android DNS resolution and curl are listed as adopters. Docker images provide packaged client and server binaries for experimentation, and maintainers caution that bundled sample apps are demonstrations rather than production services.
Key features
- IETF QUIC protocol implementation
- HTTP/3 module
- Configurable connection limits
- Send pacing hints
- Timer-driven connection events
- C/C++ FFI bindings
- BoringSSL TLS handshake integration
- Example client and server apps
Use cases
- Embedding QUIC in custom servers
- HTTP/3 client development
- Mobile DNS over HTTP/3
- Interop testing with QUIC runners
- C/C++ apps needing QUIC