#cargo #dependencies

app cargo-deps-list

Cargo subcommand to get a list of dependencies in a typical build

3 stable releases

2.0.0 Sep 24, 2023
1.0.1 Jan 19, 2022
1.0.0 Jan 18, 2022

#133 in Cargo plugins

Download history 4/week @ 2023-11-01 3/week @ 2023-11-08 6/week @ 2023-11-15 8/week @ 2023-11-22 23/week @ 2023-11-29 1/week @ 2023-12-06 6/week @ 2023-12-13 5/week @ 2023-12-20 10/week @ 2023-12-27 5/week @ 2024-01-03 11/week @ 2024-01-10 5/week @ 2024-01-17 11/week @ 2024-01-24 11/week @ 2024-01-31 4/week @ 2024-02-07 37/week @ 2024-02-14

63 downloads per month


59 lines


Codeberg CI Crates.io

The quick-and-dirty successor to cargo-real-deps

Same features, but way simpler, and compiles fast

Born out of my annoyance that cargo doesn't have a way to give you a straight answer about the number of dependencies your project has. Now, it does

What it does

It processes the output of cargo tree to get a list of all the unique dependencies, and gives you a count of them. It is not a sophisticated program lol


Install using Cargo:

cargo install cargo-deps-list


Refer to cargo tree --help, as all cargo-deps-list does is pass your arguments to cargo tree. Don't provide --prefix or --format though, as that's managed by cargo-deps-list

Recommended use cases:

  • cargo deps-list - all the dependencies used for everything
  • cargo deps-list --edges normal - dependencies used in your final binary
  • cargo deps-list --manifest-path=PATH - for checking the dependencies of a project not in your current working directory. PATH must point to a Cargo.toml file

No runtime deps