Automic VaultAutomic Vault

brew

Install wasm-bindgen with Homebrew, apk, pacman, zypper

Facilitating high-level interactions between Wasm modules and JavaScript. Version 0.2.126 via Homebrew; verified 2026-06-25.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install wasm-bindgen

local Homebrew formula metadata

overview

Package summary

Facilitating high-level interactions between Wasm modules and JavaScript

Commands and aliases

  • wasm-bindgen
  • wasm-bindgen-test-runner
  • wasm2es6js

history

Project history and usage

wasm-bindgen is the central Rust-to-JavaScript binding generator for WebAssembly. It pairs a Rust crate and procedural macro with a command-line postprocessor that emits JavaScript glue, TypeScript declarations, and a processed `.wasm` artifact so Rust code can interact with richer JavaScript values than core WebAssembly's numeric ABI.

Project history

The wasm-bindgen repository was created on December 18, 2017, during the early Rust and WebAssembly working-group push to make Rust a first-class WebAssembly language. In April 2018, Alex Crichton introduced it on Mozilla Hacks as the bridge that hid the boilerplate needed for strings, exceptions, objects, DOM APIs, and JavaScript imports or exports.

The project was built around the `#[wasm_bindgen]` annotation and a CLI postprocessing step. The design let Rust libraries describe binding metadata in the Wasm output, after which the CLI generated JavaScript wrappers and adjusted imports. Its own guide still describes it as both a Rust library and a CLI for high-level interactions between Wasm modules and JavaScript.

In July 2025, the Rust project announced that the old `rustwasm` GitHub organization would be archived after a long inactive period, but wasm-bindgen would be transferred into a dedicated `wasm-bindgen` organization with additional maintainers. That made wasm-bindgen the survivor of the first Rust/Wasm working-group wave rather than only a historical artifact.

Adoption history

wasm-bindgen became the base layer for the higher-level Rust/Wasm web workflow. The 2019 Rust and WebAssembly roadmap treated the ecosystem as moving from usable to stable and production-ready, with wasm-pack, testing, profiling, debugging, and library work all depending on reliable JavaScript interop.

Its adoption spread because it matched JavaScript packaging expectations: generated ECMAScript modules, optional TypeScript declarations, browser, bundler, and Node-oriented output targets, and integration through wasm-pack. MDN's Rust-to-Wasm guide still teaches Rust WebAssembly by using wasm-pack and wasm-bindgen together.

How it is used

A developer writes Rust functions, structs, imports, or exports annotated with `#[wasm_bindgen]`, compiles the crate for `wasm32-unknown-unknown`, then runs `wasm-bindgen` against the `.wasm` file. The CLI's `--out-dir` and `--target` options control where generated bindings go and whether the output is intended for bundlers, the browser, or Node.js.

For package maintainers, wasm-bindgen is often invisible behind wasm-pack, but it is the piece that decides the JavaScript surface area: it emits the `.js` shim, `.d.ts` declarations, processed Wasm file, imports, exports, and metadata needed by downstream JavaScript tooling.

Why package nerds care

wasm-bindgen matters because it turned Rust-generated Wasm from a numeric foreign-function interface into something that could be packaged like JavaScript. It is also a snapshot of WebAssembly ecosystem history: before the component model matures everywhere, it acts as a practical polyfill-like bridge for high-level interop.

Timeline

  • 2017-12-18: Public GitHub repository created.
  • 2018-04-04: Mozilla Hacks publishes a detailed wasm-bindgen introduction.
  • 2019-01-23: Rust/Wasm roadmap calls for a production-ready, batteries-included ecosystem around the tooling.
  • 2025-07-21: Rust announces rustwasm sunsetting and wasm-bindgen transfer to a dedicated organization.
  • 2026-06-24: GitHub releases show active 0.2.x releases continuing under the new organization.

Related projects

  • wasm-pack wraps wasm-bindgen for npm-oriented packages. `js-sys`, `web-sys`, and `wasm-bindgen-futures` provide adjacent bindings and async support in the same ecosystem.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
wasm-bindgencliglobal executable
wasm-bindgen-test-runnercliglobal executable
wasm2es6jscliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.2.126
manager updated2026-06-25
local dataok
upstreamcurrent
latest detected0.2.126

https://github.com/wasm-bindgen/wasm-bindgen

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:wasm-bindgen
Version0.2.126
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/wasm-bindgen
Homepagehttps://wasm-bindgen.github.io/wasm-bindgen/
Repositoryhttps://github.com/wasm-bindgen/wasm-bindgen
Upstream docshttps://wasm-bindgen.github.io/wasm-bindgen
LicenseApache-2.0 OR MIT
Source archivehttps://github.com/wasm-bindgen/wasm-bindgen/archive/refs/tags/0.2.126.tar.gz
Last updated2026-06-25T01:43:55Z
Pulseupdated
Build dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namewasm-bindgen
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

apk95%

wasm-bindgen 0.2.122-r0

Interoperating JS and Rust code

https://github.com/rustwasm/wasm-bindgen

sudo apk add wasm-bindgen
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: wasm-bindgen
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Wasm Bindgen
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: wasm-bindgen from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

wasm-bindgen 0.2.123-1

Interoperating JS and Rust code

https://github.com/rustwasm/wasm-bindgen

sudo pacman -S wasm-bindgen
  • License: Apache-2.0 AND MIT
  • Architecture: x86_64
  • 3 dependencies
  • normalized package name match
  • Matched by: Wasm Bindgen
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: wasm-bindgen from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

wasm-bindgen 0.2.100-1.3

Facilitating high-level interactions between Wasm modules and JavaScript

https://github.com/rustwasm/wasm-bindgen

sudo zypper install wasm-bindgen
  • License: Apache-2.0 OR MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: wasm-bindgen
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Wasm Bindgen
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: wasm-bindgen from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment