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 tool;
10mod transaction;
11mod transaction_batch;
12mod wasm;
13mod wasm_batch;
14mod wasm_cache;
15mod workspace;
16
17#[cfg(test)]
18mod test_support;
19
20pub use cache_fs::{ArtifactCacheMaintenance, ArtifactCachePrunePolicy, ArtifactCachePruneReport};
21pub use digest::InputDigest;
22pub use icp::{
23    WatchedInputSnapshot, icp_artifact_ready_for_build, icp_artifact_ready_with_snapshot,
24};
25pub use tool::resolve_executable;
26pub use transaction::{
27    ArtifactBuildTransaction, ArtifactCacheArtifact, ArtifactCacheError, ArtifactCacheOutcome,
28    ArtifactCachePreparation, ArtifactCacheRecord, ArtifactCacheSpec, ArtifactCacheTimings,
29    ArtifactOutputValidation, prepare_artifact_cache, prune_artifact_cache,
30};
31pub use transaction_batch::{
32    ArtifactCacheBatchError, ArtifactCacheBatchOutcome, build_artifact_caches_batch,
33};
34pub use wasm::{build_wasm_canisters, read_wasm, wasm_artifacts_ready, wasm_path};
35pub use wasm_batch::{
36    WasmBuildBatchError, WasmBuildBatchOutcome, WasmBuildBatchProgressEvent,
37    build_wasm_canisters_cached_batch, build_wasm_canisters_cached_batch_with_progress,
38};
39pub use wasm_cache::{
40    CargoBuildInput, ResolvedCargoBuildInputs, SharedIncrementalTargetInspection,
41    SharedIncrementalTargetMaintenance, SharedIncrementalTargetMaintenanceOutcome,
42    SharedIncrementalTargetPrunePolicy, WasmBuildCacheMaintenance, WasmBuildCacheMode,
43    WasmBuildCachePrunePolicy, WasmBuildCachePruneReport, WasmBuildError, WasmBuildOutcome,
44    WasmBuildOutputStream, WasmBuildPhase, WasmBuildProgressConfig, WasmBuildProgressEvent,
45    WasmBuildProgressOutcome, WasmBuildRecord, WasmBuildSpec, WasmBuildTimings,
46    WasmInputResolutionTimings, build_wasm_canisters_cached,
47    build_wasm_canisters_cached_with_progress, inspect_shared_incremental_target,
48    maintain_shared_incremental_target, maintain_shared_incremental_target_at_most_every,
49    prune_wasm_build_cache, resolve_cargo_build_inputs,
50};
51pub use workspace::{test_target_dir, workspace_root_for};