You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
6 months ago | |
---|---|---|
src | 3 years ago | |
tests | 4 years ago | |
webdata | 6 months ago | |
.appveyor.yml | 4 years ago | |
.cargo-ok | 4 years ago | |
.gitignore | 4 years ago | |
.travis.yml | 4 years ago | |
Cargo.toml | 6 months ago | |
LICENSE_APACHE | 4 years ago | |
LICENSE_MIT | 4 years ago | |
README.md | 4 years ago | |
_BUILD.bat | 3 years ago | |
_build.sh | 3 years ago | |
main.wl | 4 years ago | |
util.wl | 4 years ago | |
web-wlambda-srv | 3 years ago | |
web-wlambda-srv.exe | 4 years ago |
README.md
wasm-pack-template
A template for kick starting a Rust and WebAssembly project using wasm-pack.
Tutorial | Chat
Built with 🦀🕸 by The Rust and WebAssembly Working Group
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
wasm-bindgen
for communicating between WebAssembly and JavaScript.console_error_panic_hook
for logging panic messages to the developer console.wee_alloc
, an allocator optimized for small code size.