Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

30
cargo-tree Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`