Expand description
Host-side artifact discovery, freshness, and Wasm build helpers.
These functions keep integration-test artifacts in caller-selected target directories and contain no application-specific package or profile policy.
Structs§
- Artifact
Build Transaction - Owned miss transaction holding the recipe and content-key process locks.
- Artifact
Cache Artifact - One logical artifact materialized at its caller-selected destination.
- Artifact
Cache Prune Policy - Caller-selected retention limits for content-addressed artifact entries.
- Artifact
Cache Prune Report - Summary of one lock-coordinated artifact-cache pruning pass.
- Artifact
Cache Record - Details shared by built and reused transactional artifact outcomes.
- Artifact
Cache Spec - Complete caller-owned description of one transactional artifact set.
- Artifact
Cache Timings - Phase timings for one transactional artifact-cache acquisition.
- Cargo
Build Input - One exact local Cargo source or configuration input under a stable logical label.
- Input
Digest - SHA-256 digest of one deterministic artifact-input set.
- Resolved
Cargo Build Inputs - Resolved exact inputs and identity for one
WasmBuildSpec. - Wasm
Build Record - Details shared by built and reused Wasm outcomes.
- Wasm
Build Spec - Complete caller-owned description of one cacheable Cargo Wasm build.
- Wasm
Build Timings - Timings for cache coordination, input resolution, and Cargo execution.
- Wasm
Input Resolution Timings - Detailed timings for exact Wasm build-input resolution.
- Watched
Input Snapshot - Exact content digest captured across a set of watched input trees.
Enums§
- Artifact
Cache Error - Structured failure from transactional artifact caching.
- Artifact
Cache Maintenance - Nonfatal retention attempted as part of a successful cache acquisition.
- Artifact
Cache Outcome - Whether an artifact transaction published or reused its exact output set.
- Artifact
Cache Preparation - Result of preparing a transactional artifact-set acquisition.
- Artifact
Output Validation - Built-in validation applied to one transactional artifact output.
- Wasm
Build Cache Mode - Cargo-target ownership mode for one exact cached Wasm build.
- Wasm
Build Error - Structured failure from a cacheable Wasm build.
- Wasm
Build Outcome - Whether a cacheable Wasm build ran Cargo or reused exact matching artifacts.
- Wasm
Build Phase - External phase associated with a cacheable Wasm build failure.
Functions§
- build_
wasm_ canisters - Build one or more Wasm canisters into the provided target directory.
- build_
wasm_ canisters_ cached - Build or reuse one exact set of Cargo Wasm artifacts.
- icp_
artifact_ ready_ for_ build - Check whether an ICP artifact exists, is nonempty, and is fresh against watched inputs.
- icp_
artifact_ ready_ with_ snapshot - Check one ICP artifact against one already-captured watched-input snapshot.
- prepare_
artifact_ cache - Verify or begin one exact external artifact-set transaction.
- prune_
artifact_ cache - Prune one transactional artifact namespace without acquiring an artifact.
- prune_
wasm_ build_ cache - Prune fingerprint-specific Cargo target directories under
target_dir. - read_
wasm - Read a compiled Wasm artifact for one crate.
- resolve_
cargo_ build_ inputs - Resolve the exact Cargo source, configuration, toolchain, argument, and environment identity.
- resolve_
executable - Resolve one executable exactly as an artifact-cache tool input.
- test_
target_ dir - Return
<workspace>/target/<name>for isolated host-side test artifacts. - wasm_
artifacts_ ready - Check whether every requested Wasm artifact is a regular file.
- wasm_
path - Resolve one crate’s Wasm artifact under a caller-selected Cargo target directory.
- workspace_
root_ for - Resolve the conventional workspace root from a crate manifest directory.
Type Aliases§
- Wasm
Build Cache Maintenance - Wasm-cache compatibility name for generic nonfatal cache maintenance.
- Wasm
Build Cache Prune Policy - Wasm-cache compatibility name for generic artifact-cache retention limits.
- Wasm
Build Cache Prune Report - Wasm-cache compatibility name for a generic artifact-cache pruning report.