26 releases (13 breaking)

0.14.0 Jan 20, 2026
0.13.1 Oct 29, 2024
0.13.0 Jul 1, 2024
0.12.1 Jun 27, 2023
0.1.0 Mar 16, 2018

#343 in WebAssembly

Download history 24561/week @ 2025-11-18 18858/week @ 2025-11-25 23784/week @ 2025-12-02 20588/week @ 2025-12-09 21077/week @ 2025-12-16 15112/week @ 2025-12-23 18006/week @ 2025-12-30 24860/week @ 2026-01-06 26444/week @ 2026-01-13 32969/week @ 2026-01-20 33333/week @ 2026-01-27 37758/week @ 2026-02-03 34866/week @ 2026-02-10 35525/week @ 2026-02-17 34444/week @ 2026-02-24 45397/week @ 2026-03-03

156,570 downloads per month
Used in fewer than 9 crates

MIT/Apache

440KB
3.5K SLoC

📦✨ wasm-pack

Your favorite Rust → Wasm workflow tool!

Build Status crates.io

Docs | Contributing | Chat

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.

demo

🔮 Prerequisites

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 was started by ashleygwilliams and is maintained by drager.

Dependencies

~22–56MB
~847K SLoC