pub const PLUGIN_TRANSFORM_AST_SCHEMA_VERSION: u32 = 1; // 1u32
Available on crate feature __common only.
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:
  1. Create a new feature flag in cargo.toml
  2. Create a new schema version with new feature flag.
  3. 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