1 个不稳定版本
0.1.4 | 2022年6月26日 |
---|---|
0.1.3 |
|
0.1.2 |
|
0.1.1 |
|
0.1.0 |
|
#443 in Cargo 插件
34KB
219 行
src-graph
cargo 子命令,显示用户定义的数据类型依赖关系。
(目前支持结构体、枚举和联合体)
如果发现错误,请提交问题。
要求
- Cargo
- Graphviz(用于生成图像)
安装
从 crates.io
$ cargo install src-graph
从源代码
$ git clone https://github.com/tamaroning/src-graph.git
$ cd src-graph
$ cagro install --path .
使用方法
在你的 rust 项目中运行
$ cargo src-graph
然后从 dot 文件生成图像
$ dot -Tpng -o ./.src_graph/adt_deps.png ./.src_graph/adt_deps.dot