-
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 should avoid building things it doesn't need #4280
Comments
This is an actual blocker/problem for us: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=276225818&repo=try&lineNumber=26061 What happens is that a @carols10cents could we prioritize this please? It looks like a (potentially blocker) bug to me, not a feature request. Unless there is a way to work around this that I don't see. |
@kvark I'm not on the cargo team anymore, but hi @rust-lang/cargo! Yinz should take a look at this! |
We discussed this briefly at the cargo meeting yesterday, and we are currently uncertain if this is a breaking change or not. If it is not a breaking change then we can likely "just do this", but if this is a breaking change then it needs to be approached with much more care. The breaking change we were thinking may be here (we're unsure) is if a To actually implement this issue as stated investigation will need to be done about the current state of affairs. We'd then want to take a look at the results of the investigation to see whether it's a breaking change or not, and then move forward from there. |
Any news about this? I would love to be able to remove our local patchs to avoid the issue in the Servo tree. |
Say you have crate A depending on crate B, and crate B has
crate-type = ["staticlib", "rlib"]
.You're building crate A, so, the only thing you really need is the rlib of crate B. But cargo still builds both the staticlib and the rlib.
As of now, at least for a combination of staticlib and rlib, it doesn't seem to be a problem, but in an hypothetical future where rust-lang/rust#43212 is implemented, it could make a significant difference.
The text was updated successfully, but these errors were encountered: