rust-webasm-spike
v0.1.0
Published
This project was automatically generated based off of the `wasm-pack-template` following the instructions [here](https://rustwasm.github.io/book/game-of-life/setup.html)
Readme
Rust Assembly Spike
This project was automatically generated based off of the wasm-pack-template following the instructions here
The template is designed for compiling Rust libraries into WebAssembly and publishing the resulting package to NPM.
Prerequisites
- Install Rust and corresponding tools as per the guidance here
- Install the WebAssembly pack from here
- Install
cargo-generateusing this command:cargo install cargo-generate - Install
npmusing this command:npm install [email protected] -g
Build
wasm-pack buildTest in Headless Browsers
wasm-pack test --headless --firefoxPublish to NPM
wasm-pack publishAdditional Dependencies
wasm-bindgenfor communicating between WebAssembly and JavaScript.console_error_panic_hookfor logging panic messages to the developer console.wee_alloc, an allocator optimized for small code size.
