-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cargo stopped including optional dependencies into build scripts #5475
Comments
alexcrichton
added a commit
to alexcrichton/cargo
that referenced
this issue
May 4, 2018
This commit fixes an issue where an optional dependency was listed multiple times in a manifest (multiple sections). This regression was introduced by rust-lang#5415 and happened because in the resolver we didn't record a `Dependency` as it was accidentally deduplicated too soon. The fix here was to ensure that all `Dependency` annotations make their way into `Resolve` now that we rely on the listed `Dependency` values for correctness. Closes rust-lang#5475
bors
added a commit
that referenced
this issue
May 4, 2018
Fix optional deps in multiple sections This commit fixes an issue where an optional dependency was listed multiple times in a manifest (multiple sections). This regression was introduced by #5415 and happened because in the resolver we didn't record a `Dependency` as it was accidentally deduplicated too soon. The fix here was to ensure that all `Dependency` annotations make their way into `Resolve` now that we rely on the listed `Dependency` values for correctness. Closes #5475
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With
rust-toolchain = nightly-2018-04-30
, it's possible to have an optional dependency specified inCargo.toml
as, say,and in
build.rs
as, say,Then
cargo
invokesrustc
withHowever, with
rust-toolchain = nightly-2018-05-03
,cargo
invokesrustc
without the--extern serde
flag:This causes a build error, since the crate can't be found any more.
The text was updated successfully, but these errors were encountered: