Skip to main content

ic_testkit/artifacts/
mod.rs

1//! Host-side artifact discovery, freshness, and Wasm build helpers.
2//!
3//! These functions keep integration-test artifacts in caller-selected target
4//! directories and contain no application-specific package or profile policy.
5
6mod cache_fs;
7mod digest;
8mod icp;
9mod transaction;
10mod wasm;
11mod wasm_cache;
12mod workspace;
13
14#[cfg(test)]
15mod test_support;
16
17mod tool;
18mod transaction_batch;
19mod wasm_batch;
20
21pub use cache_fs::{ArtifactCacheMaintenance, ArtifactCachePrunePolicy, ArtifactCachePruneReport};
22pub use digest::InputDigest;
23pub use icp::{
24    WatchedInputSnapshot, icp_artifact_ready_for_build, icp_artifact_ready_with_snapshot,
25};
26pub use tool::resolve_executable;
27pub use transaction::{
28    ArtifactBuildTransaction, ArtifactCacheArtifact, ArtifactCacheError, ArtifactCacheOutcome,
29    ArtifactCachePreparation, ArtifactCacheRecord, ArtifactCacheSpec, ArtifactCacheTimings,
30    ArtifactOutputValidation, prepare_artifact_cache, prune_artifact_cache,
31};
32pub use transaction_batch::{
33    ArtifactCacheBatchError, ArtifactCacheBatchOutcome, build_artifact_caches_batch,
34};
35pub use wasm::{build_wasm_canisters, read_wasm, wasm_artifacts_ready, wasm_path};
36pub use wasm_batch::{
37    WasmBuildBatchError, WasmBuildBatchOutcome, WasmBuildBatchProgressEvent,
38    build_wasm_canisters_cached_batch, build_wasm_canisters_cached_batch_with_progress,
39};
40pub use wasm_cache::{
41    CargoBuildInput, ResolvedCargoBuildInputs, SharedIncrementalTargetInspection,
42    SharedIncrementalTargetMaintenance, SharedIncrementalTargetPrunePolicy,
43    WasmBuildCacheMaintenance, WasmBuildCacheMode, WasmBuildCachePrunePolicy,
44    WasmBuildCachePruneReport, WasmBuildError, WasmBuildOutcome, WasmBuildOutputStream,
45    WasmBuildPhase, WasmBuildProgressConfig, WasmBuildProgressEvent, WasmBuildProgressOutcome,
46    WasmBuildRecord, WasmBuildSpec, WasmBuildTimings, WasmInputResolutionTimings,
47    build_wasm_canisters_cached, build_wasm_canisters_cached_with_progress,
48    inspect_shared_incremental_target, maintain_shared_incremental_target, prune_wasm_build_cache,
49    resolve_cargo_build_inputs,
50};
51pub use workspace::{test_target_dir, workspace_root_for};