Section: Documentation

Document only your crate

bash
bash
cargo doc --no-deps
Explanation

Often much faster for day-to-day crate docs.

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
Build documentation
Generate docs for the package and dependencies.
OpenIn sheetbashsame section
Build docs and open in a browser
Generate docs then open the entry page.
OpenIn sheetbashsame section
Pass options to rustdoc
Forward arguments to rustdoc for advanced control.
OpenIn sheetbashsame section
Create project-local Cargo config
Store configuration in the project under `.cargo/config.toml`.
OpenIn sheettoml1 tag match
Enable Cargo debug logging
Emit tracing logs from Cargo itself.
OpenIn sheetbash1 tag match
Show the dependency tree
Inspect the dependency graph for the package.
OpenIn sheetbash1 tag match