- Make sure you have rust installed using (rustup)[https://rustup.rs/]
- Make sure you have
wasm-pack
installed. (Do that here)[https://rustwasm.github.io/wasm-pack/installer/] - Make sure you have
cargo-generate
installed (this might take some time, don't do this while on a Zoom call lmao)
This template is designed for compiling Rust libraries into WebAssembly and publishing the resulting package to NPM.
Be sure to check out other wasm-pack
tutorials online for other
templates and usages of wasm-pack
.
wasm-bindgen
for communicating between WebAssembly and JavaScript.console_error_panic_hook
for logging panic messages to the developer console.wee_alloc
, an allocator optimized for small code size.