welly87
1
Hi All,
I found the discussion before about creating dependencies graph for crate here.
I try the rust-analyzer via vscode but i can't find the way to store the graph.
Is there any resources where i can find how to do this on VSCode or IntellijIDEA Rust?
Thanks a lot
1 Like
I normally use the cargo deps
command to generate a visual representation of my dependency tree.
It's just a command-line program that generates a file graphviz can compile into an image (in this case I asked for PNG).
$ cargo graph | dot -Tpng > dependencies.png
Running it on the include_dir
crate shows this:

The output can get a bit unmanageable for projects with a larger number of dependencies (e.g. 388), but then that's kinda what you'd expect 
3 Likes
welly87
3
thanks. finally i can view the diagram from vscode using rust analyzer but i can't save it to png.
also use the command above before, but it's throwing errror
https://github.com/jplatte/cargo-depgraph/issues/10
system
Closed
4
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.