I would like to run my fork of rustdoc on a whole repository. It works for a single file without external dependencies, but I don't know how to invoke it on a file that have dependencies, or on a whole crate. I guess that
cargo doc does exactly that, but I didn't figure yet how it does it.
Note: my fork is not build with
x.py, but with
librustdoc compiled as a binary instead of a lib).
If I run it on some file that have external dependencies, I get many errors because my fork cannot find those dependencies.
Try setting the env variable RUSTDOC as the path to your binary, then running cargo doc
Trying to replicate cargo's build flags is not worth it IMO
Perfect, it worked! (or at least it does stuff, I need to work on the visualization part to know if this makes sense).
Last updated: Oct 11 2021 at 22:34 UTC