rustwasm/wasm-pack

๐Ÿ“ฆโœจ your favorite rust -> wasm workflow tool!

7,284

stars

1,402

commits

Rust

primary language

Aug 12, 2026

updated

wasm-bindgen.github.io/wasm-pack/
cli
npm
package
registry
rust
rust-wasm
wasm

README

๐Ÿ“ฆโœจ 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.

Contributors

(top 30 of 153)

ashleygwilliams

481 commits

drager

266 commits

fitzgen

98 commits

alexcrichton

46 commits

rustwasm/wasm-pack

๐Ÿ“ฆโœจ your favorite rust -> wasm workflow tool!

7,284

stars

1,402

commits

Rust

primary language

Aug 12, 2026

updated

wasm-bindgen.github.io/wasm-pack/
cli
npm
package
registry
rust
rust-wasm
wasm

README

๐Ÿ“ฆโœจ 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.

Contributors

(top 30 of 153)

ashleygwilliams

481 commits

drager

266 commits

fitzgen

98 commits

alexcrichton

46 commits

Languages

Rust

98.4%

JavaScript

1.6%