Skip to main content

NROS_CODEGEN_VERSION_MIN

Constant NROS_CODEGEN_VERSION_MIN 

Source
pub const NROS_CODEGEN_VERSION_MIN: u32 = 1;
Expand description

The oldest codegen version this runtime still accepts.

Equal to NROS_CODEGEN_VERSION at introduction: no window, because generated/ is never committed and regeneration is therefore always available. Raise the floor only when a real migration needs one, and lower it never.

The range [NROS_CODEGEN_VERSION_MIN, NROS_CODEGEN_VERSION] is expressed to C and C++ as a SET OF DEFINED SYMBOLS rather than as a comparison — see nros-build-helpers’ codegen-version anchor — so there is no range check on that side that could itself be wrong.