Skip to content

cargo-tree: Panic with -Zfeatures and "all" targets #8109

Closed
@ehuss

Description

@ehuss

A manifest with:

[target.'cfg(windows)'.dependencies]
log = {version="*", features=["serde"]}

Running cargo tree --target=all -Zfeatures=all panics with:

thread 'main' panicked at 'features did not find PackageId { name: "log", version: "0.4.8", source: "registry `https://github.com/rust-lang/crates.io-index`" } false', src/cargo/core/resolver/features.rs:231:17

The problem is that the FeatureResolver needs to be taught what "all" means.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-features2Area: issues specifically related to the v2 feature resolverC-bugCategory: bugCommand-tree

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions