1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.ko/common/cargo-tree.md

26 lines
786 B
Markdown
Raw Normal View History

# cargo tree
> Display a tree visualization of a dependency graph.
> 참고: 트리에서, `(*)`로 표시된 패키지의 종속성은 이미 그래프의 다른 곳에 표시되었으므로, 반복되지 않음.
> 더 많은 정보: <https://doc.rust-lang.org/cargo/commands/cargo-tree.html>.
- 현재 프로젝트의 종속성 트리를 표시:
`cargo tree`
- 지정된 깊이까지의 종속성만 표시 (예: `n`이 1인 경우, 직접적인 종속성만 표시):
`cargo tree --depth {{n}}`
- 지정된 패키지(및 해당 종속성)를 트리에 표시하지 않음:
`cargo tree --prune {{패키지_스펙}}`
- 반복되는 종속 항목을 모두 표시:
`cargo tree --no-dedupe`
- 일반/빌드/개발 종속성만 표시:
`cargo tree --edges {{normal|build|dev}}`