#quic #http-3 #web-transport-quinn #web-transport-wasm

web-transport

Generic WebTransport API with native (web-transport-quinn) and WASM (web-transport-wasm) support

16 releases (8 breaking)

0.10.0 Apr 6, 2024
0.8.1 Apr 6, 2025
0.8.0 Jan 28, 2025
0.7.0 Dec 3, 2024
0.0.1 Mar 30, 2024

#2193 in Network programming

Download history 15/week @ 2024-12-29 102/week @ 2025-01-05 357/week @ 2025-01-12 175/week @ 2025-01-19 257/week @ 2025-01-26 168/week @ 2025-02-02 97/week @ 2025-02-09 168/week @ 2025-02-16 116/week @ 2025-02-23 128/week @ 2025-03-02 112/week @ 2025-03-09 221/week @ 2025-03-16 117/week @ 2025-03-23 55/week @ 2025-03-30 213/week @ 2025-04-06 167/week @ 2025-04-13

562 downloads per month
Used in 17 crates (7 directly)

MIT/Apache

39KB
673 lines

crates.io docs.rs discord

web-transport

WebTransport is a new browser API powered by QUIC intended as a replacement for WebSockets. Most importantly, QUIC supports multiple independent data streams.

This crate provides a generic WebTransport implementation depending on the platform:

Why no trait?

I did make a generic trait. However, async traits are quite problematic and difficult to use. It shortly became impossible when trying to add WASM support because of !Send.

So this crate switches the implementation based on the underlying platform. As an added benefit, you no longer need to litter your code with generics.

Dependencies

~2–22MB
~414K SLoC