-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
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
Don't pass --features
from dev-dependencies
to dependencies
#4664
Comments
I have a similar issue, but with Basically, |
I have this problem too, working with serde in project with optional std support: https://github.com/radix/uom/blob/serde/Cargo.toml If I'm building this uom branch with Shouldn't this be a bug instead of a feature-request? |
btw this seems related to, or maybe the same as #4361 |
it's related yeah. 4361 is about build-deps, we're about dev-deps, but a fix for one should probably fix the other. |
This appears to be related to #2589 |
Also duplicated by #4866. |
Duplicate of #4866 |
#4866 is referring to |
Our dev-dependency on trybuild enables serde's "derive" feature, which we don't want affecting `cargo build`.
Non-unification of dev-dependency features has been implemented and is available as a nightly-only feature on the latest nightly 2020-02-23. See the tracking issue at #7916. If people following this issue could try it out, and leave your feedback on the tracking issue (#7916), I would appreciate it. Particularly we'd like to know if it helps your project, does it cause any breakage, and is it a problem that binaries are still unified with |
Working on a smallish project.
The main reason this came up was
nom
. Which has a feature flag that gates its new errors linky. If I include a dependency my whole build breaks as adev-dependency
is building nom with verbose errors.The text was updated successfully, but these errors were encountered: