Skip to main content

build_wasm_canisters_cached_with_progress

Function build_wasm_canisters_cached_with_progress 

Source
pub fn build_wasm_canisters_cached_with_progress<F>(
    spec: &WasmBuildSpec,
    config: WasmBuildProgressConfig,
    observer: F,
) -> Result<WasmBuildOutcome, WasmBuildError>
Expand description

Build or reuse one exact Wasm set while streaming structured progress.

Cargo output remains captured for WasmBuildError::CommandFailed and is additionally forwarded as raw chunks when enabled. Potentially long input resolution, lock waits, maintenance, Cargo, and publication phases emit periodic heartbeats, so a legitimate acquisition need not appear stalled. Observer panics propagate after joining active phase work, terminating the Cargo child when applicable, and preserving normal cleanup.