webtrans-wasm 0.3.0

WebTransport wrapper for WebAssembly.
docs.rs failed to build webtrans-wasm-0.3.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: webtrans-wasm-0.4.0

webtrans Crates.io License

Rust implementation of the WebTransport protocol for native (QUIC/HTTP3 via Quinn) and WebAssembly (browser WebTransport API) targets.

Workspace crates

  • webtrans - top-level facade that selects native (webtrans-quinn) or WASM (webtrans-wasm).
  • webtrans-proto - protocol primitives.
  • webtrans-quinn - native client/server implementation on top of quinn.
  • webtrans-trait - shared traits for sessions and streams.
  • webtrans-wasm - browser WebTransport bindings for WASM.
  • webtrans-wasm-demo - simple WASM demo crate.

Quick start

[dependencies]
webtrans = "0.3"

API documentation is available on docs.rs.

If you need transport-specific features, depend on one of the transport crates directly.

Native

See examples

WebAssembly

The webtrans-wasm-demo crate contains a small browser demo that connects to an echo server.

Benchmarking

Criterion benchmarks are available for webtrans-proto.

cargo bench -p webtrans-proto