#[non_exhaustive]pub enum WasmBuildProgressEvent {
Show 13 variants
Started,
InputsResolved {
fingerprint: InputDigest,
input_digest: InputDigest,
elapsed: Duration,
},
CacheMiss {
fingerprint: InputDigest,
},
CacheHit {
fingerprint: InputDigest,
},
SharedTargetLockStarted {
target_dir: PathBuf,
},
SharedTargetLockAcquired {
target_dir: PathBuf,
wait: Duration,
},
SharedTargetMaintenanceStarted {
target_dir: PathBuf,
},
SharedTargetMaintenanceFinished {
outcome: SharedIncrementalTargetMaintenanceOutcome,
},
CargoStarted {
target_dir: PathBuf,
},
CargoOutput {
stream: WasmBuildOutputStream,
bytes: Vec<u8>,
},
Heartbeat {
phase: WasmBuildProgressPhase,
elapsed: Duration,
},
CargoFinished {
success: bool,
code: Option<i32>,
elapsed: Duration,
},
Finished {
outcome: WasmBuildProgressOutcome,
fingerprint: InputDigest,
elapsed: Duration,
},
}Expand description
Structured progress emitted by an observed cacheable Wasm build.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Started
One build/cache acquisition started.
InputsResolved
One exact Cargo input-resolution pass completed.
Fields
fingerprint: InputDigestComplete exact build fingerprint.
input_digest: InputDigestSemantic selected-source/configuration digest.
CacheMiss
No reusable exact entry existed for this fingerprint.
Fields
fingerprint: InputDigestMissing exact fingerprint.
CacheHit
Exact artifacts were found and materialized when necessary.
Fields
fingerprint: InputDigestReused exact fingerprint.
The build is about to wait for a caller-owned shared Cargo target.
Exclusive shared-target ownership was acquired.
Scheduled shared-target retention is about to be evaluated under lock.
Scheduled shared-target retention completed or was skipped.
CargoStarted
Cargo compilation started.
CargoOutput
One raw Cargo output chunk was read without lossy UTF-8 conversion.
Fields
stream: WasmBuildOutputStreamChild-process stream that produced the bytes.
Heartbeat
The current acquisition phase remained active without another event.
Fields
phase: WasmBuildProgressPhasePhase that is still making or waiting for progress.
CargoFinished
Cargo exited and all captured output was drained.
Fields
Finished
The complete cacheable build operation succeeded.
Fields
outcome: WasmBuildProgressOutcomeWhether Cargo ran or an exact entry was reused.
fingerprint: InputDigestExact fingerprint selected by the operation.