macOS
brew install wasm-packlocal Homebrew formula metadata
sudo port install wasm-packMacPorts ports tree · devel/wasm-pack/Portfile · source: api.github.com
brew
Your favorite rust -> wasm workflow tool! Version 0.15.0 via Homebrew; verified 2026-06-08.
install
brew install wasm-packlocal Homebrew formula metadata
sudo port install wasm-packMacPorts ports tree · devel/wasm-pack/Portfile · source: api.github.com
sudo apk add wasm-packAlpine Linux edge package indexes · wasm-pack · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#wasm-packnixpkgs package indexes · pkgs/by-name/wa/wasm-pack/package.nix · source: api.github.com
sudo pacman -S wasm-packArch Linux sync databases · wasm-pack · source: geo.mirror.pkgbuild.com
sudo zypper install wasm-packopenSUSE Tumbleweed package metadata · wasm-pack · source: download.opensuse.org
overview
Your favorite rust -> wasm workflow tool!
history
wasm-pack is the Rust-to-WebAssembly workflow tool that turns a Rust crate into a JavaScript-consumable package. It automates the boring path from Cargo project to WebAssembly binary, wasm-bindgen glue, generated `package.json`, README copy, and npm-ready `pkg` directory.
The wasm-pack repository was created on February 12, 2018. Mozilla introduced it publicly in April 2018 as a tool for assembling and packaging Rust crates that target WebAssembly, explicitly aimed at letting Rust developers produce npm packages and JavaScript developers consume them without installing a Rust toolchain.
From the start, wasm-pack was described as workflow glue rather than a compiler. It adds the `wasm32-unknown-unknown` target when needed, builds Rust in release mode, runs wasm-bindgen, moves generated files into `pkg`, creates a package manifest, and prepares documentation for the JavaScript package ecosystem.
The Rust/Wasm 2019 roadmap made polishing the toolchain and culminating in a 1.0 version of wasm-pack one of its explicit goals. That placed wasm-pack at the center of the working group's push from experimental Rust/Wasm demos toward stable, batteries-included workflows.
wasm-pack became the default tutorial path for Rust used inside web applications. MDN's Rust-to-Wasm guide teaches the workflow with wasm-pack and explains that the resulting package contains WebAssembly and JavaScript code, so downstream users do not need Rust installed and may not know the implementation language.
The tool's ecosystem role is partly historical. The 2025 Rust post sunsetting the old rustwasm organization marked the end of the working-group hub that incubated tools like wasm-pack, while wasm-bindgen itself moved forward under new maintenance. wasm-pack remains useful and packaged, but it belongs to that first generation of Rust/Wasm workflow tools.
A typical project runs `wasm-pack build` from a Rust library crate. The tool compiles for WebAssembly, invokes wasm-bindgen, writes JS and TypeScript-facing artifacts, creates `pkg/package.json`, and can target bundlers, Node.js, or web usage depending on options.
For maintainers, wasm-pack is the packaging bridge: Cargo metadata becomes npm metadata, Rust README material is copied into the package, and the generated JavaScript/Wasm files are laid out so ordinary npm, webpack, or other JavaScript tooling can consume them.
wasm-pack is significant because it translated Rust's package culture into npm's package culture. It made a compiled Rust library look like a normal JavaScript dependency, which was essential for early Rust/WebAssembly adoption in frontend and Node workflows.
security posture
No matching local secret-handling manifest was found for wasm-pack. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
wasm-pack | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/wasm-bindgen/wasm-pack
install metadata
| Package key | brew:wasm-pack |
|---|---|
| Version | 0.15.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/wasm-pack |
| Homepage | https://wasm-bindgen.github.io/wasm-pack/ |
| Repository | https://github.com/wasm-bindgen/wasm-pack |
| Upstream docs | https://wasm-bindgen.github.io/wasm-pack |
| License | Apache-2.0 OR MIT |
| Source archive | https://github.com/wasm-bindgen/wasm-pack/archive/refs/tags/v0.15.0.tar.gz |
| Last updated | 2026-06-08T18:49:58-04:00 |
| Pulse | updated |
| Dependencies | rustup |
| Build dependencies | cmake, rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | wasm-pack |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
wasm-pack
nix profile install nixpkgs#wasm-packwasm-pack 0.15.0-r0
rust to wasm build tool
https://github.com/wasm-bindgen/wasm-pack
sudo apk add wasm-packwasm-pack 0.15.0-1
Your favorite rust -> wasm workflow tool!
https://github.com/rustwasm/wasm-pack
sudo pacman -S wasm-packwasm-pack 0.13.1-1.4
Your favorite Rust → Wasm workflow tool!
https://github.com/rustwasm/wasm-pack
sudo zypper install wasm-packwasm-pack
sudo port install wasm-packsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.