Go to file
Sambo Chea 735c6be0c3 Fixed the wasm run in node 2020-08-20 11:25:02 +07:00
.idea Fixed the wasm run in node 2020-08-20 11:25:02 +07:00
src Updated readme and add repos 2020-08-20 10:58:41 +07:00
tests Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
www Fixed the wasm run in node 2020-08-20 11:25:02 +07:00
.appveyor.yml Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
.gitignore Updated git ignore 2020-08-20 10:54:14 +07:00
.travis.yml Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
Cargo.toml fixed wrong edition 2020-08-20 11:09:53 +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 Updated readme and add repos 2020-08-20 10:58:41 +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/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