# 使用 Homebrew 安装 ic-wasm

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ic-wasm
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:ic-wasm
- **软件包管理器:** Homebrew
- **版本:** 0.11.0
- **来源摘要:** CLI tool for performing Wasm transformations specific to ICP canisters
- **主页:** <https://github.com/dfinity/ic-wasm>
- **仓库:** <https://github.com/dfinity/ic-wasm>
- **最后更新:** 2026-07-23T21:00:03Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ic-wasm (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.11.0
## 项目历史与用法

ic-wasm is a DFINITY Rust library and CLI for transforming WebAssembly canisters that run on the Internet Computer.

### 项目历史

The README describes ic-wasm as a library for transforming Internet Computer canister Wasm modules and documents a CLI that edits metadata, prints module information, shrinks modules, invokes wasm-opt, limits resources, checks Candid endpoints, and instruments execution tracing.

### 采用历史

ic-wasm is adopted inside the ICP canister development ecosystem rather than as a general WebAssembly optimizer. Its installation paths span npm, precompiled installers, cargo-binstall, `cargo install`, and Homebrew, which makes it reachable from both Rust-native and JavaScript-oriented canister workflows.

### 使用方式

Developers use ic-wasm after compiling a canister to inspect or transform the Wasm artifact before deployment. The README calls out metadata management, `wasm-opt` optimization levels, preservation of `icp` metadata during shrink and optimize operations, endpoint checks against Candid, and profiling instrumentation for stable-memory or heap-memory trace storage.

### 为什么软件包爱好者会关心

ic-wasm is interesting because it packages blockchain-specific WebAssembly post-processing as a normal CLI. It bridges Rust crates, npm global installs, shell installers, Homebrew bottles, Binaryen's `wasm-opt`, Candid interface checks, and Internet Computer canister semantics in one small developer tool.

### 时间线

- 2022: The changelog records 0.2.0 with a decoupled library API using walrus.
- 0.3.0-0.7.0: The changelog groups releases that added profiling support, wasm-opt optimization, and JSON output for `info`.
- 0.8.x: The tag history shows an expanded release train before the 0.9 series.
- 0.9.11: Homebrew packages this stable version.

### Related projects

- The README names wasm-opt as the optimizer behind `optimize`, refers to Candid endpoint checks, and presents the tool as part of the Internet Computer canister toolchain maintained by DFINITY.

### 来源

- <https://formulae.brew.sh/formula/ic-wasm>
- <https://github.com/dfinity/ic-wasm>
- <https://github.com/dfinity/ic-wasm/blob/main/CHANGELOG.md>
- <https://github.com/dfinity/ic-wasm/releases>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
