pub const FORMAT_VERSION: u16 = 3;Expand description
Current container-format version.
- v1 (v0.9.0 ..): the tagged-section container as documented above.
- v2 (v2.0.0 “Timebase” rc.1, ADR 0028): marks the MAJOR-boundary
line. The container’s own on-wire layout is unchanged (this field
only guards forward-compat – a reader rejects any blob whose
format_versionexceeds its ownFORMAT_VERSION); the real v2.0.0-line rejection happens per-section, via the strict version equality checks each chip’s snapshot module already enforces (seerustynes_cpu::CPU_SNAPSHOT_VERSION’s v3 bump for the concrete example). This bump exists so a.rnsfile’s header alone signals which release line produced it, without needing to inspect every section. - v3 (v2.9.8, ADR 0042): the second epoch. The layout is unchanged
again; what changes is that a reader now also refuses any blob OLDER
than
MIN_FORMAT_VERSION, withSnapshotError::FormatTooOld. v2.9.8 removed every legacy-format reader in the section decoders (BUS section 2, and the PPU, APU and mapper upconversions), and several sections kept their version numbers because their layouts did not move, so without a container check a v2.9.7 file would be refused only at whichever section happened to come first. One header check gives one clear message.