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
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
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
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.