#quic #http-3

web-transport

WebTransport client and server - Placeholder

5 releases (3 breaking)

0.10.0 Apr 6, 2024
0.3.0 May 17, 2024
0.2.1 Apr 30, 2024
0.1.0 Apr 6, 2024
0.0.1 Mar 30, 2024

#11 in #http3

Download history 105/week @ 2024-03-25 297/week @ 2024-04-01 99/week @ 2024-04-08 25/week @ 2024-04-15 142/week @ 2024-04-22 197/week @ 2024-04-29 31/week @ 2024-05-06 163/week @ 2024-05-13

534 downloads per month
Used in 6 crates (3 directly)

MIT license

30KB
465 lines

Documentation Crates.io License: MIT

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. I got pretty fed up constantly writing moq_transport<S: web_transport_generic::Session>.

Dependencies

~0.5–12MB
~156K SLoC