Skip to main content

CURRENT_VERSION

Constant CURRENT_VERSION 

Source
pub const CURRENT_VERSION: u32 = 3;
Expand description

The format version this build writes, and the guard against reading a file from a newer one. Bumped whenever a change would make an older reader misinterpret a file rather than fail on it.

  1. The original format: a nested tree, blocks in a list, loc: "w1".
  2. Asset ids became content-derived.
  3. Flat and id-keyed: the Document is the file (docs/json-format.md).