Skip to content
Find unused dependencies in Cargo.toml
Rust
Branch: master
Clone or download
Latest commit c9aabae Sep 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Support for running multiple times Sep 11, 2019
.editorconfig Initial commit with cargo check clone Aug 25, 2019
.gitignore This accidentially landed in git Sep 11, 2019
CHANGELOG.md CHANGELOG for 0.1.4 Sep 11, 2019
Cargo.lock Release 0.1.4 Sep 11, 2019
Cargo.toml Release 0.1.4 Sep 11, 2019
LICENSE add license file Aug 28, 2019
README.md This is implemented now Sep 11, 2019

README.md

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:

cargo install cargo-udeps

Then run it using:

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.

You can’t perform that action at this time.