Crates.io | src-graph |
lib.rs | src-graph |
version | 0.1.4 |
source | src |
created_at | 2022-06-25 13:39:44.342571 |
updated_at | 2022-06-26 10:22:04.679199 |
description | cargo subcommand which shows struct dependencies |
homepage | |
repository | https://github.com/tamaroning/src-graph |
max_upload_size | |
id | 613040 |
size | 42,481 |
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.
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 .
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