Skip to main content

CURRENT_SCHEMA_VERSION

Constant CURRENT_SCHEMA_VERSION 

Source
pub const CURRENT_SCHEMA_VERSION: u32 = 2;
Expand description

Current on-disk schema version. Bump when a field changes shape in a way a reader needs to special-case; additive fields don’t need a bump because serde #[serde(default)] already handles missing keys.

v2: dropped api_base and network — both derived from environment at runtime via crate::Environment::api_base and crate::Environment::network. Files at v1 with either key present hard-error in Config::load with a migration hint.