[package] name = "oxicloud-hash-wasm" version = "0.1.0" edition = "2021" description = "BLAKE3 hashing for the OxiCloud web frontend — compiled from the exact same crate the server uses, so client-side hashes match server-side content addressing bit for bit." publish = false # Standalone workspace root: this crate is built only by # scripts/build-wasm.sh (wasm32 target) and must not join the server # workspace — `cargo test --workspace` / clippy on the host have nothing # useful to do with a wasm cdylib. [workspace] [lib] crate-type = ["cdylib"] [dependencies] # Same major as the server's Cargo.toml. `wasm32_simd` enables the WASM # SIMD128 kernels (~3-4× over the portable implementation); every # evergreen browser since 2023 supports it, and the frontend falls back # to a plain byte upload when instantiation fails. blake3 = { version = "1.8.4", default-features = false, features = ["wasm32_simd"] } # Same crate AND parameters as the server's CDC dedup engine — chunk # boundaries computed in the browser must equal the server's bit for bit, # or cross-version dedup between byte uploads and delta uploads collapses. fastcdc = "4.0.0" wasm-bindgen = "0.2" [profile.release] # Hashing throughput is the whole point of this module. opt-level = 3 lto = "fat" codegen-units = 1 strip = true