#cargo

bin+lib cargo-udeps

Find unused dependencies in Cargo.toml

7 releases

✓ Uses Rust 2018 edition

new 0.1.6 Dec 1, 2019
0.1.5 Sep 27, 2019
0.1.1 Aug 31, 2019

#50 in Development tools

Download history 182/week @ 2019-08-25 344/week @ 2019-09-01 292/week @ 2019-09-08 143/week @ 2019-09-15 180/week @ 2019-09-22 140/week @ 2019-09-29 84/week @ 2019-10-06 114/week @ 2019-10-13 95/week @ 2019-10-20 128/week @ 2019-10-27 131/week @ 2019-11-03 85/week @ 2019-11-10 109/week @ 2019-11-17 78/week @ 2019-11-24

631 downloads per month

MIT/Apache

27KB
736 lines

cargo-udeps

crates.io dependency status

Find unused dependencies in Cargo.toml.

While compilation of this tool also works on Rust stable, it needs Rust nightly to actually run.

Installation

GitHub Releases

https://github.com/est31/cargo-udeps/releases

cargo install (crates.io)

cargo install cargo-udeps

cargo install (master)

cargo install --git https://github.com/est31/cargo-udeps

Usage

cargo +nightly udeps

It either prints out a "unused crates" line listing the crates, or it prints out a line saying that no crates were unused.

Known bugs

  • Some unused crates might not be detected. This includes crates used by std and its dependencies as well as crates that are already being used by dependencies of the studied crate.

  • Crates are currently only handled on a per name basis. Two crates with the same name but different versions would be a problem.

Trophy case

This is a list of cases where unused dependencies were found using cargo-udeps. You are welcome to expand it:

License

This tool is distributed under the terms of both the MIT license and the Apache License (Version 2.0), at your option.

See LICENSE for details.

License of your contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~36MB
~767K SLoC