Local rustdoc: Include std in results?

I'm thinking I should really use rustdoc more (I hear Jon Gjengset talking about how great the search is). Okay, so I do cargo doc --open and I can browse and search my code, and all the crates I use. Cool!

Except not std.

Is there a way to say something like cargo doc --withstd?

Thanks,

-kb

The most convenient way to view the docs of the standard library on your machine would be to run rustup doc --std in your terminal I'd say. I'm not aware of a Cargo feature that would allow you to build the std docs as part of your crate's documentation.

3 Likes