pub const NROS_CODEGEN_VERSION: u32 = 1;Expand description
The codegen version this runtime emits and accepts.
Bump this deliberately when the interface between generated code and the runtime changes: a trait signature generated code implements, a symbol it defines, a layout rule it obeys. Do NOT bump it for a cosmetic template edit — that moves the fingerprint, which is a different question (see the module docs).
Bumping invalidates every generated tree. That is affordable here because
generated/ is never committed (CLAUDE.md), so regeneration is always
available — and it is exactly why the value must not move on cosmetics.
Gated by check-codegen-version-surface, which fails when the surface
generated code names changes and this constant does not.