#quic #http-3 #websocket #data-stream #generic #native #web-transport-quinn

web-transport

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

15 releases (8 breaking)

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

#1810 in Network programming

Download history 531/week @ 2024-10-27 90/week @ 2024-11-03 113/week @ 2024-11-10 104/week @ 2024-11-17 105/week @ 2024-11-24 370/week @ 2024-12-01 195/week @ 2024-12-08 52/week @ 2024-12-15 57/week @ 2024-12-22 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 67/week @ 2025-02-09

679 downloads per month
Used in 15 crates (6 directly)

MIT/Apache

38KB
660 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
~408K SLoC