- rust-cache: a saving leg's crates entry is <job>-crates-<os>-<arch>-<parent run>-0, from
.ci-cache-meta/entry, so of two runs that restored the same entry only the first to finish
saves (GitHub refuses an existing key). Nothing restored gives -0-0; a cold build writes
-<run>-<attempt>. A saving leg gets CRAFT_CACHE_UNITS, a file for the build's Cargo JSON
messages; the name is outside the prefixes rust-cache hashes into its key.
- cache-trim: deletes every unit directory (<profile>/build/<package>/<hash>/) the record does
not name, before rust-cache's post step saves; rust-cache's own cleanup matches package names
only and keeps older builds of updated dependencies. No record, no change.
- cache-prune: for a caller job with actions: write. Keeps the newest rolling crates entry per
job/OS/arch, and of other rust-cache entries and named <name>-<sha256> entries removes an older
one once nothing used it since the newest was created. watch: prunes as the run's saving jobs
finish and ends when none is queued or running.