cargo-depgraph

Creates dependency graphs for cargo projects using cargo metadata and graphviz.

Installation

cargo install cargo-depgraph

If you are using Arch Linux, you can alternatively install the AUR package cargo-depgraph.

Usage

cargo depgraph [options] | dot -Tpng > graph.png

The full list of options can be seen by running

cargo depgraph --help

Commonly useful options:

cargo-depgraph's dependency graph

cargo-depgraph's dependency graph with transitive dependency edges de-duplicated

Output explanation