37 lines
1.2 KiB
Rust
37 lines
1.2 KiB
Rust
//! Strict TOML schemas and semantic validation for fader_master.
|
|
//!
|
|
//! Parsing produces validated documents: callers cannot accidentally activate
|
|
//! a profile whose identifiers, references, MIDI ranges, or capabilities are
|
|
//! invalid. Persistence and migration live in separate modules in later M2
|
|
//! increments.
|
|
|
|
#![forbid(unsafe_code)]
|
|
|
|
mod active;
|
|
mod checkpoint;
|
|
mod device;
|
|
mod document;
|
|
mod error;
|
|
mod files;
|
|
mod paths;
|
|
mod profile;
|
|
mod state;
|
|
|
|
pub use checkpoint::{CheckpointCoordinator, CheckpointSink, Clock, StateFileSink, SystemClock};
|
|
pub use device::{DeviceCapabilities, DeviceProfile};
|
|
pub use document::{ProfileDocument, SelectorDraft, SelectorPattern};
|
|
pub use error::ConfigError;
|
|
pub use files::{AtomicFile, MigrationError, PersistenceError, StateLoad, migrate_profile};
|
|
pub use paths::{XdgEnvironment, XdgPaths};
|
|
pub use profile::{
|
|
Action, Adapter, Application, Audio, Binding, Fader, FaderDensity, Group, MessageKind,
|
|
MixerLayoutEntry, NewStreamPolicy, Profile, Selector, SelectorField, StartupPolicy, Surface,
|
|
TargetKind,
|
|
};
|
|
pub use state::{
|
|
CachedObservation, DesiredWrite, PersistedState, ProfileState, StartupState, UiView,
|
|
};
|
|
|
|
pub(crate) const SCHEMA_VERSION: u16 = 1;
|
|
pub use active::ActiveConfig;
|