xfa-layout-engine 1.0.0-beta.5

Box-model and pagination layout engine for XFA forms. Experimental — part of the PDFluent XFA stack, under active development.
Documentation
//! Schema version for the LayoutTreeIR.
//!
//! ## Compatibility policy
//!
//! - **Field additions** to existing structs in [`crate::ir`] bump
//!   [`SCHEMA_VERSION`] by one and append a migration line below.
//! - **Field removals or semantic-changing renames** are breaking and
//!   require either a new major (e.g. v2) on top of v1 with a translation
//!   shim, or coordinated update of every consumer in the same PR. M1
//!   ships v1; anything past v1 must justify the bump in this file's
//!   migration log.
//! - **Snapshots committed under tests/ir_snapshots/** carry the version
//!   they were captured under via the `schema_version` field at the root
//!   of the JSON. Tests that load older snapshots must reject mismatched
//!   versions explicitly rather than silently re-interpret.
//!
//! ## Migration log
//!
//! - v1 (M1) — initial schema. Fields: `schema_version`, `root` with
//!   `children`, `field_kind`, `form_node_id`, `id`, `kind`, `overflow`,
//!   `page_index`, `presence`, `rect`, `som`, `value_hash`.

/// Current LayoutTreeIR schema version.
pub const SCHEMA_VERSION: u32 = 1;