Skip to content

'cargo tree -i <package>' is empty for windows-only dependency #11315

@RalfJung

Description

@RalfJung

Problem

I am trying to figure out what imports winapi 0.2.8 in https://github.com/iron/iron.

Steps

git clone https://github.com/iron/iron
cd iron
cargo tree -i [email protected]

Strangely, the result is empty, even though this package definitely appears in the lockfile. I tried adding --workspace --all-features -e all, no luck. Maybe there are more flags I need to pass to say --all-and-i-really-mean-all-of-them? Or is it because the package is a windows-only dependency? I don't have a windows machine though and would like to figure out where these dependencies are coming from...

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.64.0 (387270bc7 2022-09-16)
release: 1.64.0
commit-hash: 387270bc7f446d17869c7f208207c73231d6a252
commit-date: 2022-09-16
host: x86_64-unknown-linux-gnu
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: 7.83.1-DEV (sys:0.4.55+curl-7.83.1 vendored ssl:OpenSSL/1.1.1q)
os: Debian n/a (bookworm) [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Error and warning messages generated by Cargo itself.C-enhancementCategory: enhancementCommand-treeE-easyExperience: Easy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions