0.1.0 • Published 5 years ago
rust-webasm-spike v0.1.0
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 npm@7.0.3 -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.
0.1.0
5 years ago