We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem
cargo check --features foo implicitly enables optional dependency bar given this manifest:
cargo check --features foo
bar
[features] foo = ["bar/foo"] [dependencies] bar = { version = "0.1", path = "bar", optional = true }
The behaviour I would expect is bar not being enabled unless it's also specified in the --features.
--features
If feature foo did in fact depend on bar, that could be specified like foo = ["bar", "bar/foo"].
foo
foo = ["bar", "bar/foo"]
Notes
Output of cargo version:
cargo version
cargo 1.40.0-nightly (a429e8c 2019-10-04)
The text was updated successfully, but these errors were encountered:
Thanks for the report! This seems to be a duplicate of #3494, so I'm going to close in favor of that.
Sorry, something went wrong.
No branches or pull requests
Problem
cargo check --features foo
implicitly enables optional dependencybar
given this manifest:The behaviour I would expect is
bar
not being enabled unless it's also specified in the--features
.If feature
foo
did in fact depend onbar
, that could be specified likefoo = ["bar", "bar/foo"]
.Notes
Output of
cargo version
:cargo 1.40.0-nightly (a429e8c 2019-10-04)
The text was updated successfully, but these errors were encountered: