3 releases

new 0.1.2 Mar 12, 2025
0.1.1 Mar 12, 2025
0.1.0 Mar 12, 2025

#2321 in Command line utilities

MIT/Apache

22KB
230 lines

Depclean

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.

Installation

Via Cargo

cargo install depclean

Verify installation:

depclean --help

From Source

  1. Clone the repository:
    git clone https://github.com/suhasamaresh/depclean.git
    cd depclean
    
  2. Build and run:
    cargo build --release
    ./target/release/depclean --help
    

Usage

Analyze dependencies in a Cargo project:

depclean --lockfile Cargo.lock

Output includes:

  • Dependency graph visualization
  • Duplicate dependency detection
  • Version alignment suggestions

Contributing

  1. Fork the repository
  2. Create a feature/bugfix branch
  3. Add tests for changes
  4. Submit a PR with [FEAT]/[FIX]/[DOCS] prefix

License

MIT License - See LICENSE for details.

Dependencies

~18–32MB
~462K SLoC