cargo should avoid building things it doesn't need #4280
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Z-build-plan
Nightly: --build-plan feature
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: