6 ms·
`cargo doc` docs.rs runs it for every crate (rust library) uploaded to crates.io. When actually working with rust, I recommend running `cargo doc --open` semi
by gpm 5y ago
`cargo doc`
docs.rs runs it for every crate (rust library) uploaded to crates.io.
When actually working with rust, I recommend running `cargo doc --open` semi frequently. It generates that documentation from all your dependencies, and your own code, links it all together (with search no less) and opens it in a browser.
Note that it only uses doc comments, which are distinct from normal comments (/// instead of //, only allowed in certain places, //! Instead of /// to apply to the parent item instead of the next item).