Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upPer-user compiled artefact cache #5931
Comments
This comment has been minimized.
This comment has been minimized.
|
There's been musings about this historically but never any degree of serious consideration. I've always wanted to explore it though! (I think it's definitely plausible) |
This comment has been minimized.
This comment has been minimized.
|
sccache is one option here - it has a local disk cache in addition to the more exotic options to store compiled artifacts in the cloud. |
This comment has been minimized.
This comment has been minimized.
|
sccache would be good for the compilation time part, but it'd be nice to also get a handle on the disk size part of it. |
This comment has been minimized.
This comment has been minimized.
|
cc #6229 |
This comment has been minimized.
This comment has been minimized.
Vlad-Shcherbina
commented
Nov 23, 2018
|
I think you can put
in But I have no idea if this mode is officially supported. Is it? |
This comment has been minimized.
This comment has been minimized.
|
Yes it is, as is setting it with the corresponding environment variable. However the problems with cargo never deleting the unused artifacts gets to be dramatic quickly. Hence the connection to #6229 |
djc commentedAug 23, 2018
I was wondering if anyone has contemplated somehow sharing compiled crates. If I have a number of projects on disk that often have similar dependencies, I'm spending a lot of time recompiling the same packages. (Even correcting for features, compiler flags and compilation profiles.) Would it make sense to store symlinks in
~/.cargoor equivalent pointing to compiled artefacts?