How to use rustc-ap-graphviz

I tried to complie the 1st example from rust-ap-graphviz doc.
I have add rustc-ap-graphviz = "662.0.0" in to Cargo.toml. but I got unresolved import graphviz error. How can i fix this?

It looks like the documentation for this crate is out of sync with the auto-published version. Instead of graphviz, the auto-published crate uses the library name rustc_ap_graphviz:

use rustc_ap_graphviz as dot;

Also, as you have probably discovered, it requires a nightly build of the Rust toolchain.

1 Like

Got it. thank you very much for your help

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.