-
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
Add a synthetic dependency on num-traits #5188
Conversation
Right now the rust-lang/rust integration is compiling Cargo twice on dist builds, once for Cargo and once for the RLS. This is due to a dependency of Cargo being recompiled with different features when used from the RLS or not. For now paper over this problem with a synthetic dependency to prevent Cargo from being compiled twice.
r? @matklad (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ Hehe, I still hope that one day RLS will just call cargo metadata :) |
📌 Commit 841f20a has been approved by |
Add a synthetic dependency on num-traits Right now the rust-lang/rust integration is compiling Cargo twice on dist builds, once for Cargo and once for the RLS. This is due to a dependency of Cargo being recompiled with different features when used from the RLS or not. For now paper over this problem with a synthetic dependency to prevent Cargo from being compiled twice.
☀️ Test successful - status-appveyor, status-travis |
This notably includes * rust-lang/cargo#5152 * rust-lang/cargo#5188 The first one switches cargo from docopt to clap ( we also update to the latest calp in this repository), the second one should help us to unify feature flags for Cargo itself and RLS, and build Cargo libray only once.
I strongly disagree that we should be doing things like this. Now that you're intentionally doing a workaround, we should instead reopen and resolve #4048. |
@ishitatsuyuki if you'd like please open a feature request and not a bug report |
@alexcrichton How does that differ? Also I think #4048 is in the format of a feature request. |
Ok, in that case mind opening a new issue anyway with fresh information? |
Done as #5210. |
Right now the rust-lang/rust integration is compiling Cargo twice on dist
builds, once for Cargo and once for the RLS. This is due to a dependency of
Cargo being recompiled with different features when used from the RLS or not.
For now paper over this problem with a synthetic dependency to prevent Cargo
from being compiled twice.