✨ your favorite rust -> wasm workflow tool!
This 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.
This project requires Rust 1.30.0 or later.
Visit the quickstart guide in our documentation.
new: Generate a new RustWasm project using a templatebuild: Generate an npm wasm pkg from a rustwasm cratetest: Run browser testspack and publish: Create a tarball of your rustwasm pkg and/or publish to a registrywasm-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 buildRead our guide on getting up and running for developing wasm-pack, and
check out our contribution policy.
This project was started by ashleygwilliams and is maintained by drager.
`wasm-opt` download fails with "Unrecognized target!" on Windows ARM64, despite binaryen publishing an arm64-windows build
Add support for `libstd` `optimize_for_size`
Downstream distribution of wasm-bindgen and wasm-pack binaries
add a way to generate `tsconfig.json` files and change the `"target"` property
wasm-opt fail with [parse exception: invalid code after misc prefix: 17 (at 0:61491)]
Have a checksum performed on pre-built binaries being downloaded
Consider support for inline buffer of webassembly memory
`wasm-pack build --release` intermittently fails with `[parse exception: Only 1 table definition allowed in MVP]`
`snippets` are not included in `package.json` `files`
[email protected]: Package no longer supported