Putting WebAssembly in your web app today!
summary
Rust code compiles to a real .wasm and a JS glue file using wasm-bindgen, producing generated hash.wasm and hash.js that handle string marshaling and memory. The demo uses cargo and the sha2 crate to compute SHA hashes, then wasm-bindgen emits browser and Node-compatible wrappers (webpack shim or a no-modules window export are provided). The build runs, the browser demo calls the exported hash function, and the result appears correctly in the page.
AI-written summary · about








