Skip to main content

render_composition_driver

Function render_composition_driver 

Source
pub fn render_composition_driver(schema: &CompositionSchema) -> Option<String>
Expand description

Renders the generated per-composition Rust module (Track-B wave-b V2).

The emitted module is the typed seam between the composition’s route schema and the runtime composition dispatcher. It declares:

  • generated producer/effect/input/signal/field identity facts,
  • TypedRoutedInput / TypedRoutedSignal descriptors carrying typed route targets and (FieldId, FieldId) binding pairs,
  • a route_to_input(instance, effect_variant) -> Option<TypedRoutedInput> fact resolver for input-kind routes, and
  • a route_to_signal(instance, effect_variant) -> Option<TypedRoutedSignal> fact resolver for signal-kind routes.

Returns None when the composition declares no driver descriptor; the driver descriptor continues to carry the Rust emission path for xtask consumers.