macOS
brew install wasm-bindgenlocal Homebrew formula metadata
安装
brew install wasm-bindgenlocal Homebrew formula metadata
sudo apk add wasm-bindgenAlpine Linux edge package indexes · wasm-bindgen · 来源: dl-cdn.alpinelinux.org
sudo pacman -S wasm-bindgenArch Linux sync databases · wasm-bindgen · 来源: geo.mirror.pkgbuild.com
sudo zypper install wasm-bindgenopenSUSE Tumbleweed package metadata · wasm-bindgen · 来源: download.opensuse.org
概览
Facilitating high-level interactions between Wasm modules and JavaScript
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
wasm-bindgen | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
wasm-bindgen-test-runner | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
wasm2es6js | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:wasm-bindgen |
|---|---|
| 版本 | 0.2.126 |
| 软件包管理器 | Homebrew |
| 主页 | https://wasm-bindgen.github.io/wasm-bindgen/ |
| 仓库 | https://github.com/wasm-bindgen/wasm-bindgen |
| 最后更新 | 2026-06-25T01:43:55Z |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
wasm-bindgen 0.2.126-r0
Interoperating JS and Rust code
https://github.com/rustwasm/wasm-bindgen
sudo apk add wasm-bindgenwasm-bindgen 0.2.126-1
Interoperating JS and Rust code
https://github.com/rustwasm/wasm-bindgen
sudo pacman -S wasm-bindgenwasm-bindgen 0.2.100-1.5
Facilitating high-level interactions between Wasm modules and JavaScript
https://github.com/rustwasm/wasm-bindgen
sudo zypper install wasm-bindgen来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.