-
Notifications
You must be signed in to change notification settings - Fork 8
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
Cache libstd artifacts between projects #84
Comments
@rustbot claim |
I just want to warn you that this is a huge change that has some history (not to dissuade you, just to clarify what it means). There's an overview of the tasks at rust-lang/cargo#11429 (comment). Each one is quite large and needs some design work. |
I hope this doesn't clog up my I update nightly more often than I start new cross-build projects, so I don't want the libstd of a bunch of nightly versions hanging out in my C drive. So hopefully this will include something to make it be cleaned by |
Hmm, good point, I hadn't thought about how the cache would grow without bound. So I don't lose it, my work so far is https://github.com/rust-lang/cargo/compare/master...jyn514:cargo:build-std-cache?expand=1 |
This is marked "plan before stabilization", but I don't think it should be a stabilization blocker. It would be nice to have, but caching stuff more often seems like a quality of implementation detail, not an essential part of build-std. |
Right now, cargo rebuilds std for each target directory:
It would be nice to cache this (in
CARGO_HOME
/.cargo
?) so that it's not duplicated. This should follow all of cargo's normal caching rules, so e.g. changing RUSTFLAGS orprofile.dev.debug
would rebuild.The text was updated successfully, but these errors were encountered: