Inspect the dependency graph for the package.

Section: Inspection and troubleshooting

Show the dependency tree

bash
bash
cargo tree
Explanation

Great for understanding duplicate versions and feature activation.

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 Inspection and troubleshooting
See reverse dependencies
Show what depends on a specific crate.
OpenIn sheetbashsame section
Inspect feature activation
Show the tree with features included.
OpenIn sheetbashsame section
Generate or refresh Cargo.lock
Create a lockfile without building.
OpenIn sheetbashsame section
Update dependency lockfile
Refresh locked dependency versions.
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