# Install cargo-udeps with Homebrew, apk, Nix, pacman

Find unused dependencies in Cargo.toml. Version 0.1.61 via Homebrew; verified 2026-06-22. Also installable with nix: nix profile install nixpkgs#cargo-udeps.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

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

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:cargo-udeps
- **Package manager:** Homebrew
- **Version:** 0.1.61
- **Source summary:** Find unused dependencies in Cargo.toml
- **Homepage:** <https://github.com/est31/cargo-udeps>
- **Repository:** <https://github.com/est31/cargo-udeps>
- **Last updated:** 2026-06-22T14:02:58-07:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cargo-udeps (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.1.61
## Project history and usage

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

### Project history

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

### Adoption history

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.

### How it is used

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

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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
## Other Package-Manager Records

- 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


## Related links

- [cargo-udeps](https://pkg.so/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)


## Sources

- 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
