# wasm-bindgen を Homebrew, apk, pacman, zypper でインストール

wasm-bindgen のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:wasm-bindgen
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install wasm-bindgen
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add wasm-bindgen
```

  証拠: Alpine Linux edge package indexes: wasm-bindgen from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- pacman (92%):

```sh
sudo pacman -S wasm-bindgen
```

  証拠: Arch Linux sync databases: wasm-bindgen from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install wasm-bindgen
```

  証拠: openSUSE Tumbleweed package metadata: wasm-bindgen from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:wasm-bindgen
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/wasm-bindgen>
- **バージョン:** 0.2.126
- **ソース概要:** Facilitating high-level interactions between Wasm modules and JavaScript
- **ホームページ:** <https://wasm-bindgen.github.io/wasm-bindgen/>
- **リポジトリ:** <https://github.com/wasm-bindgen/wasm-bindgen>
- **上流ドキュメント:** <https://wasm-bindgen.github.io/wasm-bindgen/>
- **ライセンス:** Apache-2.0 OR MIT
- **ソースアーカイブ:** <https://github.com/wasm-bindgen/wasm-bindgen/archive/refs/tags/0.2.126.tar.gz>
- **最終更新:** 2026-06-25T01:43:55Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- wasm-bindgen (cli)
- wasm-bindgen-test-runner (cli)
- wasm2es6js (cli)
- wasm-bindgen (エイリアス)
- wasm-bindgen-test-runner (エイリアス)
- wasm2es6js (エイリアス)

## ビルド依存関係

- rust

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.2.126
- マネージャ更新日: 2026-06-25
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/wasm-bindgen/wasm-bindgen
- 検出された最新: 0.2.126 (最新)
## プロジェクトの歴史と使われ方

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.

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

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

### ソース

- <https://api.github.com/repos/wasm-bindgen/wasm-bindgen>
- <https://blog.rust-lang.org/inside-rust/2025/07/21/sunsetting-the-rustwasm-github-org/>
- <https://developer.mozilla.org/en-US/docs/WebAssembly/Guides/Rust_to_Wasm>
- <https://hacks.mozilla.org/2018/04/javascript-to-rust-and-back-again-a-wasm-bindgen-tale/>
- <https://rustwasm.github.io/rfcs/007-2019-roadmap.html>
- <https://wasm-bindgen.github.io/wasm-bindgen/>
- <https://wasm-bindgen.github.io/wasm-bindgen/reference/cli.html>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** wasm-bindgen
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- apk - wasm-bindgen - 0.2.126-r0: normalized package name match | Alpine Linux edge package indexes: wasm-bindgen from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Interoperating JS and Rust code | https://github.com/rustwasm/wasm-bindgen
- pacman - wasm-bindgen - 0.2.126-1: normalized package name match | Arch Linux sync databases: wasm-bindgen from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Interoperating JS and Rust code | https://github.com/rustwasm/wasm-bindgen
- zypper - wasm-bindgen - 0.2.100-1.5: normalized package name match | openSUSE Tumbleweed package metadata: wasm-bindgen from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Facilitating high-level interactions between Wasm modules and JavaScript | https://github.com/rustwasm/wasm-bindgen


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://pkg.so/ja/brew/rust/) - Build dependency declared by Homebrew.
- [fnm](https://pkg.so/ja/brew/fnm/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, rust.
- [emscripten](https://pkg.so/ja/brew/emscripten/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, webassembly.
- [wasm-tools](https://pkg.so/ja/brew/wasm-tools/) - Shares pkgdb curated category or tags: cli, developer-tools, rust, webassembly.
- [oxlint](https://pkg.so/ja/brew/oxlint/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, rust.
- [oxfmt](https://pkg.so/ja/brew/oxfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, rust.
- [wasm-pack](https://pkg.so/ja/brew/wasm-pack/) - Shares pkgdb curated category or tags: cli, developer-tools, rust, webassembly.
- [bindgen](https://pkg.so/ja/brew/bindgen/) - Shares pkgdb curated category or tags: bindings, cli, developer-tools, rust.
- [cbindgen](https://pkg.so/ja/brew/cbindgen/) - Shares pkgdb curated category or tags: bindings, cli, developer-tools, rust.

## Combined YAML source

View the package source record on GitHub. [combined/wasm-bindgen.yml](https://github.com/mxcl/pkgdb/blob/main/combined/wasm-bindgen.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
