20 releases (10 breaking)

0.11.0 Mar 19, 2023
0.10.3 Jun 13, 2022
0.10.2 Dec 16, 2021
0.10.1 Sep 5, 2021
0.1.0 Mar 16, 2018

#119 in WebAssembly

Download history 4140/week @ 2022-12-07 3629/week @ 2022-12-14 2729/week @ 2022-12-21 2881/week @ 2022-12-28 3509/week @ 2023-01-04 3847/week @ 2023-01-11 3702/week @ 2023-01-18 4196/week @ 2023-01-25 4478/week @ 2023-02-01 4441/week @ 2023-02-08 4797/week @ 2023-02-15 4936/week @ 2023-02-22 5364/week @ 2023-03-01 4267/week @ 2023-03-08 4984/week @ 2023-03-15 4719/week @ 2023-03-22

20,235 downloads per month
Used in fewer than 6 crates


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


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!


🔮 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.


~755K SLoC