You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
Hi, I am looking through the cli trying to understand how to use stack graphs. To help with that I am trying to print out the stack graphs that I generate to better understand the structure. I see that in cli/test.rs the StackGraph instance makes a call to to_html_string. However, this method cannot be found when I try calling it directly.
I can see that it is implemented in visualization.rs. Is there some sort of way to import this that I am missing? Sorry I'm new to rust and wasn't able to find a suitable answer.
Hi @quentinchambers! The JSON (and thus HTML) output is hidden behind a feature. Using it requires adding features = ["json"] to the dependency in Cargo.toml. Might that help?
Activity
hendrikvanantwerpen commentedon Feb 6, 2023
Hi @quentinchambers! The JSON (and thus HTML) output is hidden behind a feature. Using it requires adding
features = ["json"]to the dependency inCargo.toml. Might that help?PS. Cargo docs for dependencies with features: https://doc.rust-lang.org/cargo/reference/features.html#dependency-features