ic_testkit/artifacts/
mod.rs1mod cache_fs;
47mod digest;
48mod icp;
49mod transaction;
50mod transaction_batch;
51mod wasm;
52mod wasm_batch;
53mod wasm_cache;
54mod workspace;
55
56#[cfg(test)]
57mod test_support;
58
59#[cfg(all(test, unix))]
60mod host_tests;
61
62pub use cache_fs::{ArtifactCacheMaintenance, ArtifactCachePrunePolicy, ArtifactCachePruneReport};
63pub use digest::InputDigest;
64pub use icp::{
65 WatchedInputSnapshot, icp_artifact_ready_for_build, icp_artifact_ready_with_snapshot,
66};
67pub use transaction::{
68 ArtifactBuildTransaction, ArtifactCacheArtifact, ArtifactCacheError, ArtifactCacheOutcome,
69 ArtifactCachePreparation, ArtifactCacheRecord, ArtifactCacheSpec, ArtifactCacheTimings,
70 ArtifactOutputValidation, prepare_artifact_cache, prune_artifact_cache,
71};
72pub use transaction_batch::{
73 ArtifactCacheBatchContractError, ArtifactCacheBatchEntry, ArtifactCacheBatchFailedEntry,
74 ArtifactCacheBatchFailure, ArtifactCacheBatchFailurePhase, ArtifactCacheBatchFailureTimings,
75 ArtifactCacheBatchMetrics, ArtifactCacheBatchOutcomeEntry, ArtifactCacheBatchReport,
76 LabeledArtifactCacheSpec, build_artifact_caches_batch,
77};
78pub use wasm::{read_wasm, wasm_artifacts_ready, wasm_path};
79pub use wasm_batch::{
80 LabeledWasmBuildSpec, WasmBuildBatchConfig, WasmBuildBatchContractError, WasmBuildBatchEntry,
81 WasmBuildBatchFailure, WasmBuildBatchMaintenanceEntry, WasmBuildBatchMetrics,
82 WasmBuildBatchOutcomeEntry, WasmBuildBatchProgressEvent, WasmBuildBatchReport,
83 WasmBuildInputSnapshot, WasmBuildInputSnapshotMetrics, WasmBuildSession,
84 WasmBuildSessionMetrics, build_wasm_canisters_cached_batch,
85 build_wasm_canisters_cached_batch_with_config,
86 build_wasm_canisters_cached_batch_with_config_and_progress,
87 build_wasm_canisters_cached_batch_with_progress,
88};
89pub use wasm_cache::{
90 CargoBuildInput, ResolvedCargoBuildInputs, SharedIncrementalTargetInspection,
91 SharedIncrementalTargetMaintenance, SharedIncrementalTargetMaintenanceConfig,
92 SharedIncrementalTargetMaintenanceFailureMode, SharedIncrementalTargetMaintenanceOutcome,
93 SharedIncrementalTargetPrunePolicy, WasmBuildCacheMode, WasmBuildError,
94 WasmBuildFailureDetails, WasmBuildFailurePhase, WasmBuildFailureTimings, WasmBuildOutcome,
95 WasmBuildOutputStream, WasmBuildPhase, WasmBuildProgressConfig, WasmBuildProgressEvent,
96 WasmBuildProgressOutcome, WasmBuildProgressPhase, WasmBuildRecord, WasmBuildSpec,
97 WasmBuildTimings, WasmInputResolutionTimings, build_wasm_canisters_cached,
98 build_wasm_canisters_cached_with_progress, inspect_shared_incremental_target,
99 maintain_shared_incremental_target, maintain_shared_incremental_target_at_most_every,
100 prune_wasm_build_cache, resolve_cargo_build_inputs,
101};
102pub use workspace::{test_target_dir, workspace_root_for};