Skip to main content

run_build_pipeline

Function run_build_pipeline 

Source
pub async fn run_build_pipeline(
    args: &ModeArgs,
    reload_tx: Option<&Sender<ReloadEvent>>,
) -> Result<String, EuvError>
Expand description

Executes a full build pipeline: euv fmt, build wasm, generate HTML. After the serial pipeline completes, hyperlane-cli fmt is spawned in the background so it does not block the caller. Notifies the reload channel on build success or failure.

§Arguments

  • &ModeArgs - The CLI arguments.
  • Option<&broadcast::Sender<ReloadEvent>> - Optional reload channel for notifying clients.

§Returns

  • Result<String, EuvError> - The generated HTML with reload script injected on success.