23 unstable releases

0.12.1 Jun 27, 2023
0.11.1 May 11, 2023
0.11.0 Mar 19, 2023
0.10.3 Jun 13, 2022
0.1.0 Mar 16, 2018

#41 in WebAssembly

Download history 5925/week @ 2023-12-23 8572/week @ 2023-12-30 11166/week @ 2024-01-06 12186/week @ 2024-01-13 17088/week @ 2024-01-20 19653/week @ 2024-01-27 18757/week @ 2024-02-03 16550/week @ 2024-02-10 16107/week @ 2024-02-17 16348/week @ 2024-02-24 17424/week @ 2024-03-02 18176/week @ 2024-03-09 15312/week @ 2024-03-16 15341/week @ 2024-03-23 17656/week @ 2024-03-30 13781/week @ 2024-04-06

64,794 downloads per month
Used in 7 crates

MIT/Apache

425KB
3.5K SLoC

📦✨ wasm-pack

Your favorite Rust → Wasm workflow tool!

Build Status crates.io

Docs | Contributing | Chat

Built with 🦀🕸 by The Rust and WebAssembly Working Group

About

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 is a part of the rust-wasm group. You can find more info by visiting that repo!

demo

🔮 Prerequisities

This project requires Rust 1.30.0 or later.

⚡ Quickstart Guide

Visit the quickstart guide in our documentation.

🎙️ Commands

  • 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

📝 Logging

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

👯 Contributing

Read our guide on getting up and running for developing wasm-pack, and check out our contribution policy.

🤹‍♀️ Governance

This project is part of the rustwasm Working Group.

This project was started by ashleygwilliams and is maintained by drager and the Rust Wasm Working Group Core Team.

Dependencies

~0–13MB
~130K SLoC