CARGO-TREE(1) General Commands Manual CARGO-TREE(1) (NAME) cargo-tree - (SYNOPSIS) cargo tree [options] (DESCRIPTION) . "rand" : myproject v0.1.0 (/myproject) `-- rand v0.7.3 |-- getrandom v0.1.14 | |-- cfg-if v0.1.10 | `-- libc v0.2.68 |-- libc v0.2.68 (*) |-- rand_chacha v0.2.2 | |-- ppv-lite86 v0.2.6 | `-- rand_core v0.5.1 | `-- getrandom v0.1.14 (*) `-- rand_core v0.5.1 (*) [build-dependencies] `-- cc v1.0.50 (*) "" . . --no-dedupe . -e . "features" . cargo tree -e features: myproject v0.1.0 (/myproject) `-- log feature "serde" `-- log v0.4.8 |-- serde v1.0.106 `-- cfg-if feature "default" `-- cfg-if v0.1.10 myproject serde log . log ("default") cfg-if . -e features -i . . (Feature Unification) Cargo Cargo.toml . [dependencies] [dev-dependencies] (*) . cargo build cargo tree -e normal,build cargo test cargo tree . Cargo . . (OPTIONS) (Tree Options) -i spec, --invert spec . . (workspace) . --workspace . -p -p . --prune spec () . --depth depth . . workspace . --no-dedupe . (*) . . -d, --duplicates ( --invert ). -p . . . . -e kinds, --edges kinds . : o all -- . o normal -- . o build -- (build). o dev -- (dev). o features -- . . o no-normal -- . o no-build -- . o no-dev -- . o no-proc-macro -- (procedural macro). normal build dev all no-normal no-build no-dev . normal,build,dev . --target triple target triple . . all . --charset charset . "utf8" "ascii" . cargo . -f format, --format format . "{p}" . . : o {p}, {package} -- . o {l}, {license} -- . o {r}, {repository} -- (URL) . o {f}, {features} -- . o {lib} -- use . --prefix prefix . prefix : o indent () -- . o depth -- . o none -- . (Package Selection) ( --manifest-path ). (workspace) . workspace.default-members . ( --workspace) crate . -p spec, --package spec . SPEC cargo-pkgid(1) . glob * ? [] . glob Cargo . --workspace . --exclude SPEC . --workspace . glob * ? [] . glob Cargo . (Manifest Options) --manifest-path path Cargo.toml. Cargo Cargo.toml . --locked Cargo.lock . Cargo : o lock . o Cargo lock . CI . --offline Cargo . Cargo . Cargo . . Cargo crate . cargo-fetch(1) . net.offline . --frozen --locked --offline . . default . . -F features, --features features . (workspace) package-name/feature-name . . --all-features . --no-default-features default . (Display Options) -v, --verbose (verbose). " " . term.verbose . -q, --quiet (log) . term.quiet . --color when . : o auto (): . o always: . o never: . term.color . (Common Options) +toolchain Cargo rustup cargo + (toolchain) rustup ( +stable +nightly). rustup . --config KEY=VALUE PATH Cargo . TOML KEY=VALUE . . . -C PATH . cargo (Cargo.toml) .cargo/config.toml . cargo -C path/to/my-project build. nightly -Z unstable-options ( #10098 ). -h, --help . -Z flag ( nightly) Cargo. cargo -Z help . (ENVIRONMENT) Cargo . (EXIT STATUS) o 0: Cargo . o 101: Cargo . (EXAMPLES) 1. : cargo tree 2. syn : cargo tree -i syn 3. : cargo tree --format "{p} {f}" 4. . semver ( 1.0.0 2.0.0). cargo tree -d 5. syn : cargo tree -e features -i syn -e features . -i syn . : syn v1.0.17 |-- syn feature "clone-impls" | `-- syn feature "default" | `-- rustversion v1.0.2 | `-- rustversion feature "default" | `-- myproject v0.1.0 (/myproject) | `-- myproject feature "default" (command-line) |-- syn feature "default" (*) |-- syn feature "derive" | `-- syn feature "default" (*) |-- syn feature "full" | `-- rustversion v1.0.2 (*) |-- syn feature "parsing" | `-- syn feature "default" (*) |-- syn feature "printing" | `-- syn feature "default" (*) |-- syn feature "proc-macro" | `-- syn feature "default" (*) `-- syn feature "quote" |-- syn feature "printing" (*) `-- syn feature "proc-macro" (*) . "full" rustversion myproject ( ) myproject . syn "default" ("quote" "printing" "proc-macro" ). (*) --no-dedupe . cargo(1), cargo-metadata(1) CARGO-TREE(1)