Skip to main content

SETTING_KEYS

Constant SETTING_KEYS 

Source
pub const SETTING_KEYS: &[SettingKey];
Expand description

Canonical registry of operational setting keys accepted by config set.

Single source of truth shared by set_setting validation and the config doctor knob listing. Keeping exactly one list prevents the divergence class recorded as GAP-SG-79, where help text advertised db.default_path while crate::paths::AppPaths::resolve has always read db.path.

Every entry MUST have a matching get_setting reader somewhere in the crate. Adding a key here without a reader recreates the silent no-op this registry exists to prevent; GAP-SG-90 adds the test that enforces it.

Literal defaults that mirror a constant are asserted against that constant in this module’s tests, so the two cannot drift apart in silence.

Kept sorted so the emitted diagnostics are stable across runs.