10 releases (6 breaking)

0.10.0 Apr 6, 2024
0.6.0 Aug 19, 2024
0.5.1 Aug 15, 2024
0.3.1 Jul 25, 2024
0.0.1 Mar 30, 2024

#926 in Network programming

Download history 57/week @ 2024-06-20 44/week @ 2024-06-27 51/week @ 2024-07-04 40/week @ 2024-07-11 55/week @ 2024-07-18 209/week @ 2024-07-25 138/week @ 2024-08-01 181/week @ 2024-08-08 306/week @ 2024-08-15 65/week @ 2024-08-22 80/week @ 2024-08-29 35/week @ 2024-09-05 103/week @ 2024-09-12 80/week @ 2024-09-19 119/week @ 2024-09-26 62/week @ 2024-10-03

371 downloads per month
Used in 9 crates (4 directly)

MIT/Apache

32KB
498 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

~0.1–12MB
~133K SLoC