Skip to content

Glossary: Rust Basics

cargo doc

Also written: cargo doc --open

Builds documentation pages for your own project and its dependencies from their doc comments, and `--open` shows them in your browser.

Where the book teaches it

Related terms

Doc commentdocs.rs