Skip to content

Provide a way to figure out why a specific dependency feature is enabled during build #13289

@SludgePhD

Description

@SludgePhD

Problem

I'm currently trying to disable a feature in a dependency, but Cargo clearly still enables it (the items it gates are still available; there is no other way Cargo communicates this). I've checked all other crates in my dependency graph that depend on that crate, and none of them seem to enable that feature.

There does not seem to be any way, or at least any documented way, or any third-party subcommand, that can help debug this. This is incredibly frustrating.

Proposed Solution

No response

Notes

No response

Metadata

Metadata

Assignees

Labels

A-documenting-cargo-itselfArea: Cargo's documentationA-featuresArea: features — conditional compilationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or review

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions