Creating JSON/HTML output - Question #188
-
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 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. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @quentinchambers! The JSON (and thus HTML) output is hidden behind a feature. Using it requires adding PS. Cargo docs for dependencies with features: https://doc.rust-lang.org/cargo/reference/features.html#dependency-features |
Beta Was this translation helpful? Give feedback.
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