origin-settings
Typed user settings for Origin, backed by any Storage implementation.
Part of Origin, a Rust/Tauri platform for building desktop applications from a shared set of domain crates. See the workspace documentation for how the pieces fit together, and ARCHITECTURE.md for the rules this crate follows.
Example
use ;
use MemoryStorage;
use Arc;
const THEME: = new;
// `MemoryStorage` is an in-memory `Storage` implementation from `origin-storage`;
// swap in a persistent one in production. `clock` is an `Arc<dyn Clock>`.
let store = new;
let settings = new;
settings.set.await?;
let theme = settings.get.await?;
Stability
Pre-1.0 (0.2.0). Public types, enums and field sets may still change between minor
versions; pin an exact version if that matters to you.