I’ve been wondering if
rustup doc or
cargo should be extended with a command to build and open documentation for a crate installed as an dependency. My current approach to do that is to enter the
.cargo directory, look for the crate + version and invoke
cargo doc --open.
I think it would be a helpful extension to just invoke something like
rustup doc CRATE [--version VERSION] as we already use
rustup doc to view the std documenation/book offline. This shouldn’t be too hard to implement and I’d be willing to do this if there’s interest from the community. Any opinions on this? Or is there already a different approach (I looked but couldn’t find one)?