A simple CLI tool for visualizing dependencies within projects currently in development.
It relies on Graphviz.
- Install graphviz
- Build from source code:
cargo build --releasedepy -p ../path/to/Cargo.toml > ~/Downloads/output.svgA great feature of the tool is picking the start of the graph (or the top-most element). In complex workspaces, usually, an explosion of dependencies can happen and usually a developer is mostly concerned about a single, or a couple of packages. To do that one can do the following:
depy -p ../path/to/Cargo.toml -t name-of-top-level-target > ~/Downloads/output.svgOne can use the -t flag multiple times to add more targets to the output.
To visualize the output one can use a browser.