cargo-deps-list

Crates.iocargo-deps-list
lib.rscargo-deps-list
version2.1.0
sourcesrc
created_at2022-01-18 13:05:36.322522
updated_at2024-09-02 17:01:34.407331
descriptionCargo subcommand to get a list of dependencies in a typical build
homepagehttps://codeberg.org/alpha-tango-kilo/cargo-deps-list
repositoryhttps://codeberg.org/alpha-tango-kilo/cargo-deps-list
max_upload_size
id516194
size42,342
Atk (alpha-tango-kilo)

documentation

README

cargo-deps-list

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

Installation

Install using Cargo:

cargo install cargo-deps-list

Usage

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
Commit count: 0

cargo fmt