quiche / tokio-quiche
AGENTS.md13k starsChanged 2 months agoBSD-2-ClauseView on GitHub
Async tokio wrapper for quiche. Spawns per-connection IO worker tasks driven by an ApplicationOverQuic trait. Ships a ready-made H3Driver for HTTP/3. Uses foundations for structured logging (slog), telemetry, and settings.
Trending
Less talk lately.about the whole repository
Who's talking about cloudflare/quiche
- A Hacker News story“Quiche – An implementation of the QUIC transport protocol in Rust”Hacker News · Jan 28, 2019 · 177 points
- kubernetes/ingress-nginx“[FEATURE REQUEST] HTTP/3 support”GitHub · Nov 19, 2019 · 97 reactions
- ducaale/xh“Support HTTP/3”GitHub · Feb 7, 2021 · 11 reactions
- ninenines/cowboy“QUIC and HTTP/3”GitHub · Nov 2, 2021 · 10 reactions
- linkerd/linkerd2“HTTP3 / QUIC support”GitHub · Jul 6, 2020 · 9 reactions
The biggest 5 of 54 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 54
Talked about on Bluesky, GitHub and Hacker News (54 times).
On Bluesky · 27
- Dec 9, 2025cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★11016 https://github.com/cloudflare/quiche — @rusttrending.bsky.social7 likes and reposts
- Jun 6, 2026cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★11541 https://github.com/cloudflare/quiche — @rusttrending.bsky.social5 likes and reposts
- May 14, 2026cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★11466 https://github.com/cloudflare/quiche — @rusttrending.bsky.social4 likes and reposts
- Feb 27, 2025cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★9899 https://github.com/cloudflare/quiche — @rusttrending.bsky.social3 likes and reposts
- Oct 5, 2026cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★12743 https://github.com/cloudflare/quiche — @rusttrending.bsky.social2 likes and reposts
22 more on Bluesky
- Jul 16, 2026Il est pas si loin, quiche est l'implémentation de QUIC chez Cloudflare 😋 => github.com/cloudflare/q... — @lcheylus.bsky.social2 likes and reposts · 1 reply
- Oct 26, 2025cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★10668 https://github.com/cloudflare/quiche — @rusttrending.bsky.social2 likes and reposts
- May 16, 2025cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★10150 https://github.com/cloudflare/quiche — @rusttrending.bsky.social2 likes and reposts
- Apr 29, 2025cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★10096 https://github.com/cloudflare/quiche — @rusttrending.bsky.social2 likes and reposts
- Apr 5, 2025🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 github.com/cloudflare/q... — @diegopacheco.bsky.social2 likes and reposts
- Jan 31, 2025cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★9814 https://github.com/cloudflare/quiche — @rusttrending.bsky.social2 likes and reposts
- Nov 22, 2024cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★9493 https://github.com/cloudflare/quiche — @rusttrending.bsky.social2 likes and reposts
- Oct 7, 2023cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★8082 https://github.com/cloudflare/quiche — @rusttrending.bsky.social2 likes and reposts · 1 reply
- Sep 23, 2026📦 cloudflare / quiche ⭐ 12,523 (+49) 🗒 Rust 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 — @github-trending-rs.bsky.social1 likes and repost
- Apr 24, 2026cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★11418 https://github.com/cloudflare/quiche — @rusttrending.bsky.social1 likes and repost
- Jan 31, 2026cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★11198 https://github.com/cloudflare/quiche — @rusttrending.bsky.social1 likes and repost
- Dec 26, 2025cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★11068 https://github.com/cloudflare/quiche — @rusttrending.bsky.social1 likes and repost
- Aug 1, 2025cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★10395 https://github.com/cloudflare/quiche — @rusttrending.bsky.social1 likes and repost
- Jul 11, 2025cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★10325 https://github.com/cloudflare/quiche — @rusttrending.bsky.social1 likes and repost
- Apr 11, 2025cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★10039 https://github.com/cloudflare/quiche — @rusttrending.bsky.social1 likes and repost
- Mar 25, 2025cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★9963 https://github.com/cloudflare/quiche — @rusttrending.bsky.social1 likes and repost
- Feb 13, 2025cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★9844 https://github.com/cloudflare/quiche — @rusttrending.bsky.social1 likes and repost
- Dec 22, 2024cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★9564 https://github.com/cloudflare/quiche — @rusttrending.bsky.social1 likes and repost
- Nov 20, 2024cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★9486 https://github.com/cloudflare/quiche — @rusttrending.bsky.social1 likes and repost
- Nov 1, 2024cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★9444 https://github.com/cloudflare/quiche — @rusttrending.bsky.social1 likes and repost
- Aug 15, 2024cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★9208 https://github.com/cloudflare/quiche — @rusttrending.bsky.social1 likes and repost
- Nov 24, 2025cloudflare / quiche: 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3 ★10926 https://github.com/cloudflare/quiche — @rusttrending.bsky.social0 likes and reposts · 1 reply
On GitHub · 23
- Nov 19, 2019[FEATURE REQUEST] HTTP/3 support — kubernetes/ingress-nginx97 reactions · 55 comments
- Feb 7, 2021Support HTTP/3 — ducaale/xh11 reactions · 7 comments
- Nov 2, 2021QUIC and HTTP/3 — ninenines/cowboy10 reactions · 24 comments
- Jul 6, 2020HTTP3 / QUIC support — linkerd/linkerd29 reactions · 14 comments
- Nov 18, 2019add experimental quic to testing, nginx 1.17 — openresty/openrestysays it tested it9 reactions · 5 comments
18 more on GitHub
- Feb 28, 2024HTTP3 for sinks — vectordotdev/vector7 reactions
- Apr 11, 2021Lets add http/3 support — just-js/just7 reactions · 31 comments
- Mar 28, 2025DoH3 support — t895/DNSNet5 reactions · 3 comments
- Mar 16, 2020ICE when building docopt with rustc nightly on Travis CI — rust-lang/rust5 reactions · 8 comments
- Sep 17, 2025QUIC / HTTP3 support — pingooio/pingoo4 reactions · 2 comments
- Feb 21, 2022feat: apisix support QUIC+HTTP3 — apache/apisix4 reactions · 24 comments
- Oct 14, 2025DoH3 support — hufrea/byedpi3 reactions
- Dec 16, 2021HTTP/3 Tutorial: curl installation instructions do not work — cloudflare/cloudflare-docs3 reactions · 10 comments
- May 18, 2021Prepare for connection migration support — netty/netty-incubator-codec-quic3 reactions · 1 comment
- Apr 6, 2021curl formula fails on MacBook Pro M1 running macOS Big Sur 11.2.3, using Homebrew 3.0.11 — cloudflare/homebrew-cloudflare3 reactions · 9 comments
- Jul 20, 2026build(deps): bump the rust-dependencies group with 33 updates — Nil-VPN/nil2 reactions · 2 comments
- Dec 16, 2024Remove direct `Instant::now()` calls — Tencent/tquic2 reactions · 1 comment
- Mar 22, 2023curl HTTP/3 with quiche discouraged — curl/curl2 reactions · 9 comments
- Sep 19, 2022rgw: h3 frontend based on quiche library — ceph/ceph2 reactions · 39 comments
- May 8, 2022QUIC plugin system — feather-rs/feather2 reactions · 1 comment
- Jan 29, 2021limiting a burst of outgoing packets — netty/netty-incubator-codec-quic2 reactions · 1 comment
- May 18, 2020with quiche nginx not work — apache/incubator-pagespeed-ngx2 reactions · 23 comments
- Dec 30, 2019Support building libsignal-protocol-c for Android and iOS — whisperfish/libsignal-protocol-rs2 reactions · 2 comments
On Hacker News · 4
- Jan 28, 2019Quiche – An implementation of the QUIC transport protocol in Rust177 points · 27 comments
- Jan 26, 2019Cloudflare/quiche: Savoury implementation of the QUIC transport protocol3 points
- Jan 23, 2019Quiche: QUIC implementation in Rust2 points
- May 11, 2021Quiche: Savoury implementation of the QUIC transport protocol and HTTP/31 point
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- datagram-socket/AGENTS.mdAGENTS.md
- h3i/AGENTS.mdAGENTS.md
- qlog/AGENTS.mdAGENTS.md
- qlog-dancer/AGENTS.mdAGENTS.md
- quiche/AGENTS.mdAGENTS.md
- quiche/src/h3/AGENTS.mdAGENTS.md
- quiche/src/recovery/AGENTS.mdAGENTS.md
- tokio-quiche/src/http3/driver/AGENTS.mdAGENTS.md
- tokio-quiche/src/quic/AGENTS.mdAGENTS.md
- quiche-draft-releaseSkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 67
Don't add new ApplicationOverQuic methods without considering the worker loop order (recv -> reads -> writes -> send).
- Very specific: line 68
Don't block in wait_for_data — it's polled concurrently with packet recv and timers.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
tokio-quiche
OVERVIEW
Async tokio wrapper for quiche. Spawns per-connection IO worker tasks driven by an ApplicationOverQuic trait. Ships a ready-made H3Driver for HTTP/3. Uses foundations for structured logging (slog), telemetry, and settings.
STRUCTURE
src/
lib.rs Re-exports, listen(), capture_quiche_logs()
buf_factory.rs BufFactory: wraps quiche::BufFactory; provides MAX_BUF_SIZE constant
result.rs BoxError = Box<dyn Error+Send+Sync>, QuicResult<T>
settings/ ConnectionParams → quiche::Config → h3::Config cascade
metrics/ Metrics trait (pluggable); DefaultMetrics (foundations Prometheus)
socket/ Socket<Tx,Rx>, QuicListener, SocketCapabilities (GSO/GRO)
quic/ connect(), start_listener(), ApplicationOverQuic, IoWorker, router
http3/ H3Driver<H>, DriverHooks (sealed), client/server controllersWHERE TO LOOK
| Task | Location |
| Server entrypoint | lib.rs — listen(), listen_with_capabilities() |
| Client entrypoint | quic/mod.rs — connect(), connect_with_config() |
| Custom app trait | quic/connection/mod.rs:663 — ApplicationOverQuic |
| H3 driver (main logic) | http3/driver/mod.rs — H3Driver<H> |
| Per-connection IO loop | quic/io/worker.rs — IoWorker |
| Packet routing/demux | quic/router/mod.rs — InboundPacketRouter |
| Config cascade | settings/config.rs — Config::new() |
| Metrics interface | metrics/mod.rs — Metrics trait |
CODE MAP
| Symbol | Type | Location | Role |
ApplicationOverQuic | trait | quic/connection/mod.rs | Extension point: connection lifecycle, reads/writes, wait_for_data |
H3Driver<H> | struct | http3/driver/mod.rs | Implements ApplicationOverQuic for HTTP/3 |
DriverHooks | sealed trait | http3/driver/hooks.rs | Client vs server H3 behavior |
IoWorker<Tx,M,S> | struct | quic/io/worker.rs | Per-connection state machine (recv -> app -> send) |
InboundPacketRouter | struct | quic/router/mod.rs | Sole owner of socket recv; routes by DCID |
ConnectionAcceptor | struct | quic/router/acceptor.rs | Server RETRY + yields InitialQuicConnection |
InitialQuicConnection | struct | quic/connection/mod.rs | Pre-handshake handle; .start(app) spawns worker |
QuicConnection | struct | quic/connection/mod.rs | Post-handshake metadata handle (not the qconn itself) |
ConnectionParams | struct | settings/mod.rs | QuicSettings + TLS + Hooks + session |
Config | struct(crate) | settings/config.rs | Builds quiche::Config from ConnectionParams |
BufFactory | struct | buf_factory.rs | Wraps quiche::BufFactory; Buf = Bytes |
Metrics | trait | metrics/mod.rs | Pluggable telemetry; DefaultMetrics uses foundations |
QuicCommand | enum | quic/connection/mod.rs | ConnectionClose / Custom / Stats commands |
BoxError | type alias | result.rs | Box<dyn Error + Send + Sync> — deliberate choice, see docstring |
CONVENTIONS (crate-specific)
- Re-exports:
pub extern crate quiche,pub use datagram_socket. foundationsfor logging (slog), notlogdirectly.capture_quiche_logs()bridges quiche'sloginto slog.DriverHooksis sealed — prevents externalH3Drivervariants.QuicAuditStats(fromdatagram-socket) threaded through all connections viaArc.- Task spawning via
metrics::tokio_task::spawn()/spawn_with_killswitch()— wrapstokio::spawnwith optional schedule/poll histograms. ConnectionStageFSM:Handshake->RunningApplication->Close.IoWorkerdrainsPathEvents and forwards them directly throughConnectionHook::on_path_eventwhen a hook is configured, avoiding protocol-specific H3 plumbing.
ANTI-PATTERNS
connection_not_present()returnsTlsFailin driver — misleading sentinel. Don't propagate.Error::Doneused as success signal in H3 driver write path. Don't replicate.- Don't add new
ApplicationOverQuicmethods without considering the worker loop order (recv -> reads -> writes -> send). - Don't block in
wait_for_data— it's polled concurrently with packet recv and timers.
NOTES
- Hardcodes
quiche/boringssl-boring-crate+quiche/qlogin Cargo.toml deps. - Features:
zero-copyimpliesgcongestion.rpkenables raw public keys viaboring/rpk. --cfg capture_keylogs(build flag, not feature) enables SSLKEYLOGFILE support.perf-quic-listener-metricsadds handshake timing instrumentation.tokio-task-metricsadds schedule/poll duration histograms per spawned task.- Linux-only:
libc/nixdeps for signal handling and socket options. - One client connection per socket — no multiplexing on client side.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

