Redundant Dependency Builds #9658
kumawatdarshan
started this conversation in
Ideas / Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Many crates in the project declare the same dependencies with slightly different versions or feature sets. This causes Cargo to build multiple separate copies of the same crate, which:
Increases build times.
Increases disk usage for
target/
.Can lead to transitive dependency bloat.
For example, the project has crates using
serde = "1.0.219"
,serde = "1.0"
, some with featurederive
while some withderive
andrc
, resulting in dozens of redundant builds.`Proposed Improvement
Trade-offs
Feature union
Beta Was this translation helpful? Give feedback.
All reactions