sapphire_framework_settings/lib.rs
1//! The settings registry: which settings exist, who owns them, and what they resolve to.
2//!
3//! Each process that has settings (the bridge, an app server) is a [`SettingsOwner`]. A
4//! [`Registry`] merges the owners' definitions into one namespace keyed by TOML path;
5//! [`list`] and [`get`] read the scope files and resolve each key's effective value;
6//! [`apply`] writes a batch of changes, validated as a whole, keeping comments.
7
8mod error;
9mod owner;
10mod read;
11mod registry;
12mod store;
13
14pub use error::{Error, Result, describe_toml_error};
15pub use owner::{FieldError, SettingsOwner, Staged};
16pub use read::{StartState, get, list};
17pub use registry::Registry;
18pub use sapphire_bridge_api::settings::*;
19pub use store::{Applied, Op, apply, check, write_atomic, write_private};