cargo-tree.md 786 B

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}}