cargo fails to parse generated manifest at publish time when there are conditional features activated on an ignored dev-dependency #12964
Labels
C-bug
Category: bug
Command-package
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Problem
In cargo, it is possible to conditionally activate a feature on a dependency based on the main crate features, using the
crate/feature
syntax:This works if
jpeg-decoder
is in the main[dependencies]
section ofCargo.toml
. However, ifjpeg-decoder
is in the[dev-dependencies]
section, and it is not included at publish time (because path dev-dependencies are ignored, for instance), then it fails with the following error:It looks like cargo auto-generated a faulty Cargo.toml by removing the path dev dependency in the
dev-dependencies
section, but not removing it from thefeatures
section.Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: