- wai-web::decodeIntSplat (splat_int feature, src/int_splat.rs → DecodedSplat{attr,
nAttr, s}): the same pure-i64 decode in the browser, returning the [14,S,S] integer
attribute tensor for in-page hash-verify (fnv1aHex) before a sink-supplied
rasterizer presents it.
- wai_int_splat_export.py now emits per-attribute lo/hi ranges so the presentation
layer can un-normalize the attribute tensor back to Gaussians (pos/scale/colour/
opacity). attr_hash unchanged (5a94ebc9f0399a35) — the committed vector + never-skip
test still pass.
Live at wai.transaction.science/splat: decodes 1024 gaussians in ~15 ms, hash-verifies
the cloud against the native reference, then rasterizes a rotating point cloud — the
int_hyper of 3D, pinning the attributes not the pixels.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
36 lines
1.6 KiB
TOML
36 lines
1.6 KiB
TOML
[package]
|
|
name = "wai-web"
|
|
version = "0.3.0"
|
|
edition = "2021"
|
|
license = "Apache-2.0"
|
|
description = "WAI envelope parser + capability dispatch for the browser. Wasm-bindgen surface over the standard's container format. NOT a codec backend — backends are pluggable, the deployer chooses (WASM / WebGPU / WebNN / native ONNX / transformers.js / etc.)."
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
|
|
serde-wasm-bindgen = "0.6"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = { version = "1", features = ["preserve_order"] }
|
|
js-sys = "0.3"
|
|
|
|
# THE world engine — the same crate native sinks run, compiled to wasm32
|
|
# with the codec chain off. No second implementation: replay-equivalence
|
|
# in the browser is the identical Rust that generated the conformance
|
|
# corpus hashes.
|
|
wai = { path = "../wai-rs", default-features = false, features = ["world", "audio_scene", "haptic", "splat4d", "provenance", "score", "film", "neural_int", "generate", "video_int", "audio_int", "world_model", "world_int", "splat_int"] }
|
|
ed25519-dalek = "2" # actor keys for browser-side op authoring (same version as wai-rs)
|
|
blake3 = "1" # in-page receipt check: hash a decoded image against a pinned digest
|
|
|
|
[profile.release]
|
|
opt-level = "s" # size, not speed — runtime is parse-only
|
|
lto = true
|
|
codegen-units = 1
|
|
strip = "symbols"
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
# The host's wasm-opt (binaryen) is behind the Rust toolchain's emitted
|
|
# wasm features; rustc already runs LTO + size opts so skipping wasm-opt
|
|
# costs little. Re-enable when binaryen catches up.
|
|
wasm-opt = false
|