# 使用 Homebrew 安装 cargo-instruments

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

## 安装

```sh
sudo av install brew:cargo-instruments
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cargo-instruments
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:cargo-instruments
- **软件包管理器:** Homebrew
- **版本:** 0.4.17
- **来源摘要:** Easily generate Instruments traces for your rust crate
- **主页:** <https://github.com/cmyr/cargo-instruments>
- **仓库:** <https://github.com/cmyr/cargo-instruments>
- **最后更新:** 2026-06-22T14:02:58-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cargo-instruments (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

cargo-instruments is a Cargo subcommand for profiling Rust binaries with Apple's Xcode Instruments. Its README describes it as glue between Cargo and Xcode's profiling suite, producing trace files that can be opened in Instruments.app.

### 项目历史

The crate first appeared on crates.io in March 2019 and remains a macOS-focused tool: the official README says it requires macOS because it uses Instruments, selecting either the older instruments command or xcrun xctrace depending on the macOS version.

### 采用历史

Homebrew packages cargo-instruments as a formula, and the official README presents brew install cargo-instruments as the simplest installation path. Crates.io metadata reported 47,159 downloads and version 0.4.17 when checked on 2026-06-30.

### 使用方式

Users run cargo instruments against a package binary, example, or benchmark target, choose an Instruments template such as Allocations or Time Profiler, and inspect the generated .trace output under target/instruments or another requested path.

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

It is a niche but useful bridge between the Rust package workflow and Apple's native profiler, notable because it exposes Instruments through a cargo subcommand instead of requiring users to manually stage and launch binaries.

### 时间线

- 2019: First crates.io release 0.1.0.
- 2026: Crates.io latest version 0.4.17 and Homebrew stable version 0.4.17.

### Related projects

- Related tooling includes Cargo itself and Xcode Instruments; cargo-instruments delegates profiling to Apple's Instruments/xctrace tooling.

### 来源

- <https://api.github.com/repos/cmyr/cargo-instruments>
- <https://github.com/cmyr/cargo-instruments>
- <https://github.com/cmyr/cargo-instruments#readme>
- <https://crates.io/api/v1/crates/cargo-instruments>
- <https://formulae.brew.sh/api/formula/cargo-instruments.json>


## 安全说明

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



## Combined YAML source

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


## 来源

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