https://pantsbuild.org/ logo
a

average-vr-56795

01/06/2019, 9:43 PM
Things in that dir (which I should maybe write down as a comment in a file somewhere): •
~/.cache/pants/rust/cargo/git
- checkouts of non-released rust dependencies we have. These are super slow to clone, so really useful to cache. We should be able to only be depending on released stuff in maybe a month, at which point we can stop caching these. •
~/.cache/pants/rust/cargo/registry
- downloads of released rust dependencies (as source). Not a huge amount of use in caching these, as they’re just downloaded from crates.io if they’re missing, as far as I know, but maybe they play into some other caching. •
~/.cache/pants/rust/cargo/.crates.toml
- metadata about what extra binaries we’ve downloaded, compiled, and installed to: •
~/.cache/pants/rust/cargo/bin
- a combination of things we’ve downloaded using rustup, and extra binaries we’ve downloaded, compiled, and installed. The rustup ones (currently everything except
cargo-ensure-installed
, though I’m about to add another) we could stop caching, and just download with rustup if we wanted. The non-rustup ones take a non-trivial amount of time to compile, so caching them is useful.