Skip to main content

Module compiler

Module compiler 

Source
Expand description

Flow compiler — compiles FlowConfig YAML into executable CompiledFlow

The compiler transforms declarative flow configurations into a list of executable pipeline operators. Each CompiledFlow contains:

  • An EventMatcher for deciding which events trigger the flow
  • A Vec<Box<dyn PipelineOperator>> for the pipeline steps

§Usage

let config = FlowConfig { ... };
let compiled = compile_flow(&config)?;
// compiled.matcher.matches(&event) → true/false
// for op in &compiled.operators { op.execute(&mut ctx).await? }

Structs§

CompiledFlow
A compiled flow ready for execution

Functions§

compile_flow
Compile a FlowConfig into a CompiledFlow
compile_flows
Compile multiple flows from a list of FlowConfigs