Skip to content
a template for starting a rust-wasm project to be used with wasm-pack
Branch: master
Clone or download
alexcrichton Merge pull request #37 from alexcrichton/e2018
Use the 2018 edition in the template
Latest commit 94a92b4 Mar 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Use the 2018 edition in the template Mar 18, 2019
tests Also pre-configure `wasm-bindgen-test` and run `wasm-pack test` in CI Oct 9, 2018
.appveyor.yml
.gitignore Update .gitignore Nov 29, 2018
.travis.yml CI: force install wasm-pack so that it doesn't prompt for input Oct 9, 2018
Cargo.toml
LICENSE_APACHE
LICENSE_MIT
README.md Point README to new wasm-pack docs Mar 18, 2019

README.md

🦀🕸️ wasm-pack-template

A template for kick starting a Rust and WebAssembly project using wasm-pack.

📚 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

You can’t perform that action at this time.