Generate docs then open the entry page.
Section: Documentation
Build docs and open in a browser
bash
bash
cargo doc --openExplanation
Useful for reviewing APIs while developing.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Documentation
Pass options to rustdoc
Forward arguments to rustdoc for advanced control.
Create project-local Cargo config
Store configuration in the project under `.cargo/config.toml`.