Skip to main content

PIPE_SPECS

Constant PIPE_SPECS 

Source
pub const PIPE_SPECS: &[PipeSpec];
Expand description

The complete set of pipes recognised by the Prosaic engine.

This registry is the single source of truth shared between prosaic-core::engine::apply_pipe (dispatch) and prosaic-derive::prosaic_template! (compile-time validation).

Adding a new pipe: add a PipeSpec here, add a match arm in prosaic-core::engine::apply_pipe, and the prosaic_template! macro will automatically recognise it.

Feature-gated pipes: relative and since_last are listed unconditionally so templates targeting time-enabled builds still validate. When prosaic-core is compiled without the time feature, using either pipe produces an InvalidPipe error at render time.