# 使用 Homebrew, apk, pacman 安装 rust-wasm

查看 rust-wasm 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install rust-wasm
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add rust-wasm
```

  证据: Alpine Linux edge package indexes: rust-wasm from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- pacman (92%):

```sh
sudo pacman -S rust-wasm
```

  证据: Arch Linux sync databases: rust-wasm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:rust-wasm
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/rust-wasm>
- **版本:** 1.97.1
- **来源摘要:** Rust standard library and sysroot for WebAssembly targets
- **主页:** <https://www.rust-lang.org/>
- **上游文档:** <https://www.rust-lang.org/>
- **许可证:** Apache-2.0 OR MIT
- **源码归档:** <https://static.rust-lang.org/dist/rustc-1.97.1-src.tar.gz>
- **最后更新:** 2026-07-17T17:57:53Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 依赖

- lld
- rust
- wasi-libc
- wasm-component-ld

## 安装行为

- post-install 钩子: 未定义
- 注意事项: Included targets: wasm32-unknown-unknown, wasm32-wasip1, wasm32-wasip2 To cross-compile for, e.g., wasm32-unknown-unknown: cargo build --config $HOMEBREW_PREFIX/opt/rust-wasm/share/rust-wasm/cargo-config.toml --target wasm32-unknown-unknown
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.97.1
- 管理器更新时间: 2026-07-17
- 本地数据: OK
- 上游仓库: https://www.rust-lang.org/
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

没有找到 rust-wasm 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** rust-wasm
- **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 - rust-wasm - 1.97.0-r0: normalized package name match | Alpine Linux edge package indexes: rust-wasm from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | WebAssembly targets for rust | https://rust-lang.org/what/wasm/
- pacman - rust-wasm - 1:1.97.1-1: normalized package name match | Arch Linux sync databases: rust-wasm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | WebAssembly targets for Rust | https://www.rust-lang.org/
- pacman - rustup - 1.29.0-2: normalized package name match | Arch Linux sync databases: rustup from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The Rust toolchain installer | https://github.com/rust-lang/rustup.rs


## 相关链接

- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Runtime dependency declared by Homebrew.
- [lld](https://pkg.so/zh-hans/brew/lld/) - Runtime dependency declared by Homebrew.
- [wasm-component-ld](https://pkg.so/zh-hans/brew/wasm-component-ld/) - Runtime dependency declared by Homebrew.
- [rust-script](https://pkg.so/zh-hans/brew/rust-script/) - Both packages touch the same language runtime or ecosystem. Shared terms: rust.
- [wasmedge](https://pkg.so/zh-hans/brew/wasmedge/) - Local package facts share a topical domain. Shared terms: lld, wasi, wasm, webassembly.

## 来源

- pkg.so package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
