Expand description
Explicit, coordinate-addressed reuse for descriptor-phase Cargo builds.
Cargo still owns freshness. This cache never discovers outputs by walking a
target directory: every reuse decision starts from the exact
compiler-artifact messages emitted by the current Cargo invocation. Each
cached unit’s rustc-observed source/environment inputs and exact
--extern bytes are validated before a descriptor object is admitted into
the linked invocation. Package-local files that are not inputs to that unit
remain under Cargo and build-script freshness tracking, so editing docs,
styles, or other unrelated assets does not invalidate the entire descriptor
target. Cached descriptor objects remain in their immutable,
content-addressed cache slots under the retained cache lease instead of
being copied into fresh staging. Cargo’s fresh bit is authoritative for
other target outputs; the cache deliberately does not reread every emitted
file.
Structs§
- Cached
Descriptor Cargo Lease - Cache/descriptor-target lease retained by the linked pipeline until every shared target byte has been consumed into an immutable plan.
Enums§
- Cache
Unit File Kind - Kind of immutable per-unit cache file.
- Descriptor
Cache Error - Fail-closed descriptor-cache error.
Constants§
Functions§
- run_
descriptor_ cargo_ cached - Run Cargo’s descriptor compilation and reuse exact units from an explicit persistent cache when Cargo reports artifacts as fresh.