Go to file
2020-08-20 10:52:21 +07:00
.idea Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
src Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
tests Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
www@9ac3dff9eb Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
.appveyor.yml Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
.cargo-ok Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
.gitignore Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
.travis.yml Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
Cargo.toml Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
LICENSE_APACHE Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
LICENSE_MIT Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
README.md Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
wasmweb-sample.iml Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00

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/rustwasm/wasm-pack-template.git --name my-project
cd my-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