cargo-shear
« Back to VersTracker
Description:
Detect and remove unused dependencies from `Cargo.toml` in Rust projects
Type: Formula  |  Latest Version: 1.9.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: rust dependencies cargo cleanup productivity developer-tools
Install: brew install cargo-shear
About:
cargo-shear is a command-line tool designed to identify and eliminate unused dependencies in Rust projects' Cargo.toml files. It analyzes your codebase to detect which declared dependencies are actually being used, helping to reduce build times and simplify project maintenance. The tool provides a safe way to clean up dependency lists without risking runtime errors.
Key Features:
  • Automated detection of unused dependencies
  • Safe removal suggestions with verification
  • Fast analysis of Rust project codebases
  • Integration with Cargo workflow
  • Minimal false positives
Use Cases:
  • Cleaning up legacy Rust projects with accumulated unused dependencies
  • Reducing CI/CD build times by minimizing dependency overhead
  • Auditing dependency health before major version updates
  • Maintaining lean Cargo.toml files in active development
Alternatives:
  • cargo-udeps – cargo-udeps requires nightly Rust toolchain, while cargo-shear works with stable Rust
  • cargo-machete – cargo-machete uses different detection algorithms and may have different false positive rates
License: MIT
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Dec 15, 2025 2:00pm 0 VERSION_BUMP 039b7201
Dec 13, 2025 4:53pm 0 VERSION_BUMP 225732da
Dec 3, 2025 6:00pm 0 VERSION_BUMP 1e5eb1a0
Nov 26, 2025 4:53am 0 VERSION_BUMP 7df5a004
Nov 24, 2025 4:56pm 0 VERSION_BUMP ebfd4f24
Nov 22, 2025 7:53am 0 VERSION_BUMP c1d8ef77
Sep 12, 2025 5:35pm 0 VERSION_BUMP a65e3702