Cargo Machete (Rust Dependency Auditor)
Identifies and removes unused Rust dependencies to streamline Cargo.toml files and accelerate build times.
cargo-machete is a high-performance Rust development utility designed to audit project dependencies by scanning source code for crates declared in Cargo.toml but never utilized. It provides a faster, stable-compatible alternative to cargo-udeps, offering a seamless way to reduce project bloat and minimize binary sizes. The skill is particularly valuable during refactoring or CI/CD integration, as it includes an automated fix feature to instantly prune unnecessary crates while supporting complex workspace configurations and ignore patterns for false positives like proc-macros.
Características Principales
01High-speed detection of unused crates in Rust projects
02Works on stable Rust without requiring nightly toolchains
03Automated Cargo.toml cleanup using the --fix command
04Full support for Rust workspaces and multi-crate projects
05Configurable ignore rules for false positives and re-exports
063 GitHub stars
Casos de Uso
01Auditing legacy Rust codebases to remove technical debt and unused library bloat
02Maintaining workspace hygiene by ensuring sub-crates only declare required dependencies
03Optimizing CI/CD pipeline speeds by reducing dependency download and compile times