Back to directory
wasm-bindgen avatar

wasm-pack

📦✨ your favorite rust -> wasm workflow tool!. Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/wasm-bindgen/wasm-pack.git

7,278

Stars

489

Forks

48

Watchers

Apache-2.0

License

📦✨ 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.

Releases

May 15, 2026

🌷 v0.15.0

Download .zip

✨ Features

Add wasm64-unknown-unknown target support - audreyt, pull/1553 Parameterizes the target triple in cargo_build_wasm() and cargo_build_wasm_tests(), extracts --target from extra options, a...

Jan 20, 2026

🌻 v0.14.0

Download .zip

✨ Features

Support arbitrary wasm targets (WASI support) - RReverser, pull/1524 Allows building for targets other than wasm32-unknown-unknown, enabling WASI and other custom wasm targets.

macOS A...

Oct 29, 2024

☀️ v0.13.1

Download .zip

✨ Features

Requests using proxy settings from env - jjyr, pull/1438 This enables ureq to use proxy settings from env, it solves lots of pain in network restricted environments.

🤕 Fixes

Updat...

Jul 1, 2024

☀️ v0.13.0

Download .zip

✨ Features

Add option to skip optimization with wasm-opt - sisou, pull/1321 This feature introduces the --no-opt option to wasm-pack, providing a significant improvement in build efficiency for pro...

Jun 27, 2023

☀️ v0.12.1

Download .zip

🤕 Fixes

Restore --version command - lynn, issue/1301, pull/1305 The --version command got lost in space in v0.12.0. It's now brought back!

Fix value parser for Option - Myriad-Dreamin, issue/1304...

Contributors

ashleygwilliams avatar ashleygwilliams 481 commits drager avatar drager 266 commits fitzgen avatar fitzgen 98 commits alexcrichton avatar alexcrichton 46 commits mgattozzi avatar mgattozzi 27 commits dependabot[bot] avatar dependabot[bot] 24 commits huangjj27 avatar huangjj27 23 commits daubaris avatar daubaris 17 commits printfn avatar printfn 16 commits mstallmo avatar mstallmo 15 commits

153 contributors by commits. Profile dekhne ke liye kisi bhi developer par click karein.