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§
- Input
Digest - SHA-256 digest of one deterministic artifact-input set.
- 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.
- Watched
Input Snapshot - Exact content digest captured across a set of watched input trees.
Enums§
- 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.
- read_
wasm - Read a compiled Wasm artifact for one crate.
- 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.