Skip to main content

Module artifacts

Module artifacts 

Source
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§

InputDigest
SHA-256 digest of one deterministic artifact-input set.
WasmBuildRecord
Details shared by built and reused Wasm outcomes.
WasmBuildSpec
Complete caller-owned description of one cacheable Cargo Wasm build.
WasmBuildTimings
Timings for cache coordination, input resolution, and Cargo execution.
WatchedInputSnapshot
Exact content digest captured across a set of watched input trees.

Enums§

WasmBuildError
Structured failure from a cacheable Wasm build.
WasmBuildOutcome
Whether a cacheable Wasm build ran Cargo or reused exact matching artifacts.
WasmBuildPhase
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.