25 unstable releases

0.13.1 Oct 29, 2024
0.13.0 Jul 1, 2024
0.12.1 Jun 27, 2023
0.11.0 Mar 19, 2023
0.1.0 Mar 16, 2018

#45 in WebAssembly

Download history 20334/week @ 2024-08-02 20559/week @ 2024-08-09 20684/week @ 2024-08-16 21366/week @ 2024-08-23 21644/week @ 2024-08-30 21201/week @ 2024-09-06 19458/week @ 2024-09-13 19151/week @ 2024-09-20 19666/week @ 2024-09-27 19314/week @ 2024-10-04 19372/week @ 2024-10-11 22417/week @ 2024-10-18 21054/week @ 2024-10-25 19954/week @ 2024-11-01 19942/week @ 2024-11-08 16861/week @ 2024-11-15

81,893 downloads per month
Used in 11 crates

MIT/Apache

430KB
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

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

~19–31MB
~480K SLoC