Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Cache usage meta tracking issue #7150
This issue is to help provide an overview of the different issues around Cargo's excessive disk usage, and tangentially, reducing compile time by reusing artifacts in a shared cache.
Cleaning outdated artifacts
Various issues and links of interest:
I think a way forward here is to experiment and investigate different ways for tracking artifacts and last-use timestamps.
Cargo currently tracks a variety of things in different ways. It has a
Cleaning cargo's home
Cargo's home directory
The main issue tracking this is #3289 — cargo clean
There has not been much discussion about this. Ideally cargo would have this capability built in, perhaps with some of the easier/safer tasks automated on a periodic basis.
Reusing shared dependencies
Since this has the potential to use a substantial amount of disk space, it would be desirable to have better support for pruning as listed above.
There are a fairly large number of tools which dig into the