A simple CLI tool for visualizing dependencies within projects currently in development.
It relies on Graphviz.
- Install graphviz
- Build from source code:
cargo build --release
depy -p ../path/to/Cargo.toml > ~/Downloads/output.svg
A 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.svg
One can use the -t
flag multiple times to add more targets to the output.
To visualize the output one can use a browser.