Visualizing an existing project with a flowgraph / pipeline graph / flowchart (GraphViz)

In the early stages of Rust learnings but diving into an existing project where I'm trying to visualize how each of the components in the project are working together. Rust nightly used to provide the following:

rustc +nightly -Zunpretty="flowgraph=main" src/main.rs

It doesn't appear to be an option anymore?

A similar utility that I've used before in Ruby is: https://github.com/zeisler/visualize_ruby

For those familiar with GStreamer, it provides pipeline graphs that can be generated: https://gstreamer.freedesktop.org/documentation/tutorials/basic/debugging-tools.html?gi-language=c#getting-pipeline-graphs

Appreciate the help in advance!

Hello,

The sad news is that this kind of visualization is hard. There aren't many tools. Some coordination will be required to build it. These are some links looking for something similar:

  1. Visualizing Rust AST - Help -needed
  2. What would be the best approach for writing a lifetime visualizer?
  3. Best way to visualize structure of a Rust program
  4. https://github.com/robinmoussu/cargo-callgraph

callgraph may interest you.

Good luck.

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.