The live-compose layout function and mixer, the WCD1 descriptor and the composition of a room at an instant (its lifecycle replayed, its participant set, its tiles and voices), in the JSON view live-conformance/compose states its cases in; WEV1 events signed and read with their payloads (captions with their origin) and the MSF timeline binding; what a page reads of a room descriptor and its grants; a Room that holds the records a page receives, chain by chain, and verifies and composes from them; and the WAI1 envelope packed and read. The same functions build natively: a helper binary makes a test room (descriptor, grants, composition descriptor, relay token rules) and computes on the host the composition a page computes in the browser. Co-Authored-By: Claude Opus 5.5 <[email protected]>
31 lines
1.2 KiB
TOML
31 lines
1.2 KiB
TOML
[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 and the envelope: no codec chain, nothing native.
|
|
wai = { path = "../wai-rs", default-features = false, features = ["live_compose", "timed_text"] }
|
|
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"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|
|
codegen-units = 1
|