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