prefs 0.1.1

Type-safe macOS preferences library
docs.rs failed to build prefs-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

Type-safe macOS preferences with typed keys and derive macro support.

Wraps Core Foundation CFPreferences in a safe, ergonomic API.

Quick start

use prefs::{Key, Preferences};

const VOLUME: Key<f64> = Key::new("volume");

# fn main() -> prefs::Result<()> {
let prefs = Preferences::new("com.example.MyApp")?;
prefs.set(VOLUME, &0.8)?;
let volume = prefs.get_or(VOLUME, 1.0)?;
# Ok(())
# }