# 使用 Homebrew, apk, Nix, pacman 安装 cargo-udeps

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cargo-udeps
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cargo-udeps
```

  证据: Alpine Linux edge package indexes: cargo-udeps from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-udeps
```

  证据: nixpkgs package indexes: pkgs/by-name/ca/cargo-udeps/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cargo-udeps
```

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

## 软件包事实

- **软件包键:** brew:cargo-udeps
- **软件包管理器:** Homebrew
- **版本:** 0.1.61
- **来源摘要:** Find unused dependencies in Cargo.toml
- **主页:** <https://github.com/est31/cargo-udeps>
- **仓库:** <https://github.com/est31/cargo-udeps>
- **最后更新:** 2026-06-22T14:02:58-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cargo-udeps (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

cargo-udeps is a Cargo subcommand for finding unused dependencies declared in Cargo.toml.

### 项目历史

The official README says cargo-udeps finds unused dependencies in Cargo.toml and needs Rust nightly to run, while compiling on stable.

### 采用历史

GitHub records the repository as created in August 2019, and crates.io records the first release shortly after. The README lists Nix/NixOS, Arch Linux, and Homebrew packages; the input package facts also list Alpine.

### 使用方式

The README documents `cargo +nightly udeps`, package and workspace Cargo.toml metadata for ignore lists, and pre-commit hook usage.

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

cargo-udeps is useful to maintainers because unused dependencies affect build time, dependency graphs, packaging policy, and audit surface; its README trophy case records real projects where unused dependencies were removed.

### 时间线

- 2019: GitHub repository created and first crates.io release recorded.
- 2026: crates.io records max_version 0.1.61.

### Related projects

- The README links deps.rs status and lists downstream projects where cargo-udeps found unused dependencies.

### 来源

- <https://api.github.com/repos/est31/cargo-udeps>
- <https://github.com/est31/cargo-udeps>
- <https://docs.rs/crate/cargo-udeps/latest>
- <https://github.com/est31/cargo-udeps#readme>
- <https://crates.io/api/v1/crates/cargo-udeps>
- <https://formulae.brew.sh/api/formula/cargo-udeps.json>


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: Cargo.toml
## 其他软件包管理器记录

- Nix - cargo-udeps: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-udeps/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cargo-udeps - 0.1.61-r0: normalized package name match | Alpine Linux edge package indexes: cargo-udeps from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Find unused dependencies in Cargo.toml | https://github.com/est31/cargo-udeps
- apk - cargo-udeps-doc - 0.1.61-r0: normalized package name match | Alpine Linux edge package indexes: cargo-udeps-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Find unused dependencies in Cargo.toml (documentation) | https://github.com/est31/cargo-udeps
- pacman - cargo-udeps - 0.1.61-1: normalized package name match | Arch Linux sync databases: cargo-udeps from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Find unused dependencies in Cargo.toml | https://github.com/est31/cargo-udeps


## 相关链接

- [cargo-udeps](https://pkg.so/zh-hans/pkg/cargo/cargo-udeps/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
