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

Find unused dependencies in Cargo.toml. Version 0.1.61 via Homebrew; verified 2026-06-22.

## 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
- **Package manager page:** <https://formulae.brew.sh/formula/cargo-udeps>
- **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>
- **Upstream docs:** <https://docs.rs/crate/cargo-udeps/latest>
- **License:** Apache-2.0 OR MIT
- **Source archive:** <https://github.com/est31/cargo-udeps/archive/refs/tags/v0.1.61.tar.gz>
- **Last updated:** 2026-06-22T14:02:58-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cargo-udeps (cli)
- cargo-udeps (alias)

## Dependencies

- libgit2
- libssh2
- openssl@3

## Build dependencies

- pkgconf
- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.1.61
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/est31/cargo-udeps
- Upstream latest detected: v0.1.61 (current)
## 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cargo-udeps
- **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

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

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Package ecosystem packages](https://www.automicvault.com/pkg/package-ecosystem-tools/) - Matched package manager, installer, dependency, registry, or publishing metadata.
- [libgit2](https://www.automicvault.com/pkg/brew/libgit2/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [cargo-c](https://www.automicvault.com/pkg/brew/cargo-c/) - Package names and metadata indicate a similar tool family. Shared terms: cargo, libgit2, libssh2, openssl, openssl-3.
- [cargo-generate](https://www.automicvault.com/pkg/brew/cargo-generate/) - Package names and metadata indicate a similar tool family. Shared terms: cargo, libgit2, libssh2, openssl, openssl-3.
- [cargo-udeps](https://www.automicvault.com/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/automic-vault/db/blob/main/combined/cargo-udeps.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
