Skip to content

Added cargo cache improvements 2025H2 goal #317

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ranger-ross
Copy link

I'd like to revive the Cargo user wide cache project goal from 2024H2.
Many sections remain unchanged, but some have been updated as there was some progress towards this in 2025H1.

Rendered

Comment on lines +55 to +59
* Stabilize Cargo `build-dir` which allows users to move intermediate build artifacts out of `target` (rust-lang/cargo#14125)
* Rework the build directory layout so that we have more easily cacheable "units" (rust-lang/cargo#15010)
* Work towards a user wide build cache that can be reused across projects/workspaces. (rust-lang/cargo#5931)
* Explore possibilities of extending this build cache to support remote storage enabling continuous integration use cases.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something we discussed today in the cargo team meeting is that this seems a little ambitious for a 6-month goal. I'm not sure what changes would be appropriate, but maybe @epage has some ideas.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My thought was to scale this down to the build directory layout re-work + experiments with an alternative locking scheme to try to help with r-a today and inform the locking scheme we use on the shared cache.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, seems reasonable. I suppose nothing is stopping us from continuing towards the shared cache if things go quicker than expected.

I'll update this goal later this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants