web-transport-wasm 0.5.10

WebTransport WASM bindings
Documentation

crates.io docs.rs discord

web-transport-wasm

A wrapper around the WebTransport browser API.

Requirements

web-sys still gates the WebTransport bindings behind --cfg=web_sys_unstable_apis, so this crate cannot compile without it. The flag can't be enabled by a dependency; it has to come from the final build. Add it to .cargo/config.toml:

[build]
rustflags = ["--cfg=web_sys_unstable_apis"]

Or set RUSTFLAGS="--cfg=web_sys_unstable_apis" in the environment. RUSTFLAGS overrides .cargo/config.toml rather than adding to it, so use one or the other.

Building without the flag fails with a compile_error! pointing back here.