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    ArtifactCacheBatchFailure, ArtifactCacheBatchMetrics, ArtifactCacheBatchReport,
33    build_artifact_caches_batch,
34};
35pub use wasm::{read_wasm, wasm_artifacts_ready, wasm_path};
36pub use wasm_batch::{
37    WasmBuildBatchConfig, WasmBuildBatchMetrics, WasmBuildBatchProgressEvent, WasmBuildBatchReport,
38    build_wasm_canisters_cached_batch, build_wasm_canisters_cached_batch_with_config,
39    build_wasm_canisters_cached_batch_with_config_and_progress,
40    build_wasm_canisters_cached_batch_with_progress,
41};
42pub use wasm_cache::{
43    CargoBuildInput, ResolvedCargoBuildInputs, SharedIncrementalTargetInspection,
44    SharedIncrementalTargetMaintenance, SharedIncrementalTargetMaintenanceConfig,
45    SharedIncrementalTargetMaintenanceFailureMode, SharedIncrementalTargetMaintenanceOutcome,
46    SharedIncrementalTargetPrunePolicy, WasmBuildCacheMode, WasmBuildError, WasmBuildOutcome,
47    WasmBuildOutputStream, WasmBuildPhase, WasmBuildProgressConfig, WasmBuildProgressEvent,
48    WasmBuildProgressOutcome, WasmBuildProgressPhase, WasmBuildRecord, WasmBuildSpec,
49    WasmBuildTimings, WasmInputResolutionTimings, build_wasm_canisters_cached,
50    build_wasm_canisters_cached_with_progress, inspect_shared_incremental_target,
51    maintain_shared_incremental_target, maintain_shared_incremental_target_at_most_every,
52    prune_wasm_build_cache, resolve_cargo_build_inputs,
53};
54pub use workspace::{test_target_dir, workspace_root_for};