📦✨ your favorite rust -> wasm workflow tool!
npm install wasm-packThis tool seeks to be a one-stop shop for building and working with rust-
generated WebAssembly that you would like to interop with JavaScript, in the
browser or with Node.js. wasm-pack helps you build rust-generated
WebAssembly packages that you could publish to the npm registry, or otherwise use
alongside any javascript packages in workflows that you already use, such as [webpack].
[webpack]: https://webpack.js.org/
!demo
This project requires Rust 1.30.0 or later.
- Development Environment
- Installation
Visit the [quickstart guide] in our documentation.
[quickstart guide]: https://drager.github.io/wasm-pack/book/quickstart.html
- new: Generate a new RustWasm project using a template
- build: Generate an npm wasm pkg from a rustwasm crate
- test: Run browser tests
- pack and publish: Create a tarball of your rustwasm pkg and/or publish to a registry
wasm-pack uses [env_logger] to produce logs when wasm-pack runs.
To configure your log level, use the RUST_LOG environment variable. For example:
```
RUST_LOG=info wasm-pack build
[env_logger]: https://crates.io/crates/env_logger
Read our [guide] on getting up and running for developing wasm-pack`, and
check out our [contribution policy].
[guide]: https://drager.github.io/wasm-pack/book/contributing.html
[contribution policy]: CONTRIBUTING.md
This project was started by [ashleygwilliams] and is maintained by [drager].
[ashleygwilliams]: https://github.com/ashleygwilliams
[drager]: https://github.com/drager