Cargo structure searches for all Cargo.toml
files in your project, outputting a dot graph of the dependencies which can be fed into a renderer such as graphviz.
cargo install cargo-structure
Run cargo structure as a cargo plugin. The root package does not need to be speficied and will default to .
, the current directory.
cargo structure <ROOT PACKAGE PATH>
Specific dependencies can also be ignored with the --ignore
option.
cargo structure --ignore clap toml
If you have subcrates in your crate, they can be filtered out with a fuzzy search over their relative file path.
cargo strucutre --ignore-paths my_local_subcrate
Contributions are always welcome! Simply fork the repo and submit a pull request.