webtrans 0.1.0

WebTransport library for native and WebAssembly
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! WebTransport library for native and WebAssembly
//!
//! - **Native** (`non-wasm32`): Quinn-based HTTP/3 + QUIC implementation
//!   via webtrans-quinn
//! - **WebAssembly** (`wasm32`): Browser WebTransport API bindings
//!   via webtrans-wasm

pub use webtrans_proto::*;

#[cfg(any(not(target_arch = "wasm32"), target_os = "wasi"))]
#[path = "quinn.rs"]
mod transport;

#[cfg(all(target_arch = "wasm32", not(target_os = "wasi")))]
#[path = "wasm.rs"]
mod transport;

pub use transport::*;