[package] name = "wai-live-web" version = "0.1.0" edition = "2021" license = "Apache-2.0" description = "WAI's live records for a page: the integer layout and mixer of live-compose, the room's lifecycle replay, the composition at an instant, signed events and captions, and the WAI1 envelope, built from wai-rs for wasm32-unknown-unknown. The same functions build natively, so a test compares the browser's rectangles with the host's." [lib] crate-type = ["cdylib", "rlib"] [[bin]] # A room for the browser client's end-to-end tests, and the composition the host computes # for it (see src/bin/wai_live_web.rs). name = "wai_live_web" path = "src/bin/wai_live_web.rs" [dependencies] # Only the live records (co-performance's among them, and the browser sink's) and the envelope: # no codec chain, nothing native. wai = { path = "../wai-rs", default-features = false, features = ["live_compose", "timed_text", "co_performance", "browser_sink"] } serde = { version = "1", features = ["derive"] } serde_json = { version = "1", features = ["preserve_order"] } ed25519-dalek = "2" sha2 = "0.10" hex = "0.4" # Pinned to the wasm-bindgen CLI the build runs: the two must match exactly. wasm-bindgen = "=0.2.127" [features] # A decoder on the browser sink's wasm route (WAI extensions/browser-sink.md §4.3, §7.2): # `decodeBound` verifies a `wai.video.int_motion` envelope against its receipts, decodes it # with the integer decoder and binds every frame. Built as a second wasm, # `wai_live_web_decode`, that a page loads only when an object routes to wasm, so the room's # own build carries none of the decoder. int_video = ["wai/video_int"] [profile.release] opt-level = 3 lto = true codegen-units = 1