098980b7d268f1ba6232e65816ac0de60d3c99c2
wasmweb sample
A template for kick starting a Rust and WebAssembly project using wasm-pack.
About
π Read this template tutorial! π
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.
π΄ Usage
π Use cargo generate to Clone this Template
Learn more about cargo generate here.
cargo generate --git https://github.com/CUBETIQ/wasmweb-sample.git --name my-wasm-project
cd my-wasm-project
π οΈ Build with wasm-pack build
wasm-pack build
π¬ Test in Headless Browsers with wasm-pack test
wasm-pack test --headless --firefox
π Publish to NPM with wasm-pack publish
wasm-pack publish
π Batteries Included
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.
Description
Languages
Rust
44.3%
JavaScript
25.3%
Shell
12.1%
TypeScript
10.3%
HTML
8%