pub const PLUGIN_TRANSFORM_AST_SCHEMA_VERSION: u32 = 1;
Expand description
Compile-time version constant for the AST struct schema’s version.
NOTE: this is for PARTIAL compatibility only, supporting if AST struct adds new properties without changing / removing existing properties.
- When adding a new properties to the AST struct:
- Create a new feature flag in cargo.toml
- Create a new schema version with new feature flag.
- Create a new AST struct with compile time feature flag with newly added properties. Previous struct should remain with existing feature flag, or add previous latest feature flag.
- When removing, or changing existing properties in the AST struct: TBD