Go to file
2020-08-20 13:48:06 +07:00
.github/workflows Create rust.yml 2020-08-20 13:19:13 +07:00
.idea Add console and web sys for logging 2020-08-20 13:16:45 +07:00
src Add console and web sys for logging 2020-08-20 13:16:45 +07:00
tests Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00
www Add console and web sys for logging 2020-08-20 13:16:45 +07:00
.appveyor.yml Remove locked in tests for appveyor 2020-08-20 13:48:06 +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 Add console and web sys for logging 2020-08-20 13:16:45 +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 badge for build status on github workflow 2020-08-20 13:20:14 +07:00
run Add console and web sys for logging 2020-08-20 13:16:45 +07:00
wasmweb-sample.iml Add first sample web wasm in rust 2020-08-20 10:52:21 +07:00

wasmweb sample

Rust - WASM

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