Depclean is a Rust command-line tool to analyze and optimize project dependencies by parsing Cargo.lock, building dependency graphs, detecting duplicates, and suggesting version alignments.
cargo install depcleanVerify installation:
depclean --help- Clone the repository:
git clone https://github.com/suhasamaresh/depclean.git cd depclean - Build and run:
cargo build --release ./target/release/depclean --help
Analyze dependencies in a Cargo project:
depclean --lockfile Cargo.lockOutput includes:
- Dependency graph visualization
- Duplicate dependency detection
- Version alignment suggestions
- Fork the repository
- Create a feature/bugfix branch
- Add tests for changes
- Submit a PR with
[FEAT]/[FIX]/[DOCS]prefix
MIT License - See LICENSE for details.