pub struct WasmBuildRecord { /* private fields */ }Expand description
Details shared by built and reused Wasm outcomes.
Implementations§
Source§impl WasmBuildRecord
impl WasmBuildRecord
Sourcepub const fn fingerprint(&self) -> InputDigest
pub const fn fingerprint(&self) -> InputDigest
Exact build fingerprint used by the atomic cache stamp.
Sourcepub const fn input_digest(&self) -> InputDigest
pub const fn input_digest(&self) -> InputDigest
Semantic digest of selected package sources and configuration inputs.
Sourcepub fn exact_cache_path(&self) -> &Path
pub fn exact_cache_path(&self) -> &Path
Immutable content-addressed cache directory for this exact build.
The directory is selected by the build fingerprint and contains the cached Wasm artifacts and their stamps. The record and its clones retain this entry against pruning until their last drop. A copied path alone does not retain ownership. Treat the contents as read-only.
Sourcepub fn artifacts(&self) -> &[PathBuf]
pub fn artifacts(&self) -> &[PathBuf]
Exact, read-only Wasm paths retained until this record and its clones drop.
Keep a record alive throughout post-link processing and reading. Configured materialization destinations remain mutable and are not retained.
Sourcepub const fn timings(&self) -> WasmBuildTimings
pub const fn timings(&self) -> WasmBuildTimings
Phase timings captured by the cacheable build operation.
Sourcepub const fn maintenance(&self) -> Option<&ArtifactCacheMaintenance>
pub const fn maintenance(&self) -> Option<&ArtifactCacheMaintenance>
Cache maintenance attempted under the build lock, when configured.
Scheduled caller-owned shared-target maintenance, when configured.