12 releases (6 breaking)
0.10.0 |
|
---|---|
0.6.2 | Oct 27, 2024 |
0.6.0 | Aug 19, 2024 |
0.3.1 | Jul 25, 2024 |
0.0.1 | Mar 30, 2024 |
#1608 in Network programming
850 downloads per month
Used in 13 crates
(6 directly)
32KB
501 lines
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:
- Native: web-transport-quinn
- WASM: web-transport-wasm
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.4–11MB
~143K SLoC