-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Document how to use sccache with Cargo #4307
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
Comments
There's a separate Rust doc linked from the README. It's pretty easy to use, though! |
The tl;dr; for Rust is:
The |
So, |
Makes sense to me to add a configuration option for it! |
I disagree about adding a configuration option for it, I think an environment variable is fine. However, when I do specify |
@mqudsi Interesting! If you run with |
@luser thank you for your offer! I've attached the sccache trace to this comment. This was from the 4th or 5th subsequent (though ultimately failed) compilation of sccache itself. There are a lot of unhandled compiles, though I don't think there are enough of them to explain why each time I recompile sccache, my hit count only rises by 3. |
Mention sccache in the guide Closes #4307
Looks like sccache can help quite a bit even with local development, when you are working on different projects, or when you are switching versions of the compiler (#4301 and #4306).
However, it seems to me that nobody knows how to use sccache with Cargo, and that it even exists. At least, I certainly don't know how to set it up :) I guess I'll try to figure this out and write some docs.
@luser are there any other existing docs besides https://users.rust-lang.org/t/sccache-for-caching-rust-compilation/10960 and readme at https://github.com/mozilla/sccache/?
The text was updated successfully, but these errors were encountered: