#cargo-subcommand #show #struct #user-defined #data #dot

nightly app src-graph

cargo subcommand which shows struct dependencies

1 unstable release

0.1.4 Jun 26, 2022
0.1.3 Jun 26, 2022
0.1.2 Jun 26, 2022
0.1.1 Jun 26, 2022
0.1.0 Jun 25, 2022

#443 in Cargo plugins

MIT license

34KB
219 lines

src-graph

Cargo subcommand which shows user-defined data type dependencies.

(supports struct, enum, and union for now)

If you found a bug, please open an issue.

screenshot1

Requirement

  • Cargo
  • Graphviz (for generating an image)

Install

From crates.io

$ cargo install src-graph

From source code

$ git clone https://github.com/tamaroning/src-graph.git
$ cd src-graph
$ cagro install --path .

Usage

Run in your rust project

$ cargo src-graph

then generate an image from the dot file

$ dot -Tpng -o ./.src_graph/adt_deps.png ./.src_graph/adt_deps.dot

Dependencies