cargo add "package@*"
evaluates features of wrong version
#14832
Labels
cargo add "package@*"
evaluates features of wrong version
#14832
Problem
My goal is to enable a crate feature on an existing dependency, via the CLI.
If I run:
$ cargo add --dev --features bindgen "aws-lc-sys@*" --package rustls --verbose
(I already have
aws-lc-sys
as a dependency, I want to enable this feature without introducing a different version.)I get:
I think this is because
cargo add
resolves a different version to that which would be selected if I just wroteaws-lc-sys = { version = "*", features = ["bindgen"] }
into theCargo.toml
myself. That means that the features it prints are the wrong ones.Steps
Possible Solution(s)
I think
cargo add
should reuse normal version resolution when asked for version "*"?Notes
No response
Version
The text was updated successfully, but these errors were encountered: