mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

* cargo-verify-project: add page * cargo-pkgid: add page * cargo-tree: add page * cargo-vendor: add page * cargo-tree: fix typo Co-authored-by: Darío Hereñú <magallania@gmail.com> * cargo-verify-project: "correctness" => "the correctness" Co-authored-by: Juri Dispan <juri.dispan@posteo.net> --------- Co-authored-by: Darío Hereñú <magallania@gmail.com> Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
25 lines
767 B
Markdown
25 lines
767 B
Markdown
# cargo tree
|
|
|
|
> Display a tree visualization of a dependency graph.
|
|
> Note: in the tree, dependencies of packages marked with `(*)` have already been shown elsewhere in the graph, and so are not repeated.
|
|
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-tree.html>.
|
|
|
|
- Show a dependency tree of the current project:
|
|
|
|
`cargo tree`
|
|
|
|
- Only show dependencies up to the specified depth (e.g. when `n` is 1, display only direct dependencies):
|
|
|
|
`cargo tree --depth {{n}}`
|
|
|
|
- Do not display the given package (and its dependencies) in the tree:
|
|
|
|
`cargo tree --prune {{package_spec}}`
|
|
|
|
- Show all occurrences of repeated dependencies:
|
|
|
|
`cargo tree --no-dedupe`
|
|
|
|
- Only show normal/build/development dependencies:
|
|
|
|
`cargo tree --edges {{normal|build|dev}}`
|