cargo-udeps
« Back to VersTracker
Description:
Find unused dependencies in Cargo.toml
Type: Formula  |  Latest Version: 0.1.60@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: rust cargo dependencies linting development-tools
Install: brew install cargo-udeps
About:
cargo-udeps is a Cargo subcommand that analyzes your Rust project's dependency graph to identify unused dependencies declared in Cargo.toml. It leverages the Rust compiler's internal APIs to accurately track which crates are actually used during compilation. This helps developers maintain lean, efficient projects by removing unnecessary dependencies that bloat build times and binary size.
Key Features:
  • Accurate detection of unused dependencies via compiler analysis
  • Support for both normal and development dependencies
  • Integrates seamlessly as a Cargo subcommand
  • Provides actionable output for easy cleanup
Use Cases:
  • Cleaning up legacy Rust projects with many unused dependencies
  • Reducing CI build times by minimizing the dependency graph
  • Auditing Cargo.toml files before publishing a crate
Alternatives:
  • cargo-deps – Generates dependency graphs but does not detect unused packages.
  • Manual auditing – Checking Cargo.toml against source code is error-prone and misses transitive uses.
License: Apache-2.0 OR MIT
Dependencies: libgit2, libssh2, openssl@3
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 22, 2025 2:23am 0 VERSION_BUMP 573ccd3e
Jan 10, 2025 2:16am 0 VERSION_BUMP 444a7a68
Nov 17, 2024 8:34pm 0 VERSION_BUMP b433fd63
Oct 27, 2024 11:42pm 0 VERSION_BUMP d5bf37f7
Oct 27, 2024 12:33am 0 VERSION_BUMP 5d795015