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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I've ran into same strange behavior and can't figure out if this is a bug in trybuild or if I'm overlooking something:
trybuild
If I have a Cargo.toml of a crate mycrate containing this:
Cargo.toml
mycrate
[dev-dependencies] trybuild = "1.0.43" somecrate = { path = "../somecrate/" } [features] somefeature = ["somecrate/foobar"]
I get this error when running cargo test (without any features enabled!):
cargo test
the package `mycrate-tests` depends on `mycrate`, with features: `somecrate` but `mycrate` does not have these features.
It works if I either remove the features section or move the somecrate dependency to [dependencies].
features
somecrate
[dependencies]
Any thoughts?
The text was updated successfully, but these errors were encountered:
Found rust-lang/cargo#6915, which was created by yours truly @dtolnay 🙈.
The issue is that features for dev-dependencies currently cannot be enabled by parent crates.
Sorry, something went wrong.
No branches or pull requests
I've ran into same strange behavior and can't figure out if this is a bug in
trybuild
or if I'm overlooking something:If I have a
Cargo.toml
of a cratemycrate
containing this:I get this error when running
cargo test
(without any features enabled!):It works if I either remove the
features
section or move thesomecrate
dependency to[dependencies]
.Any thoughts?
The text was updated successfully, but these errors were encountered: