persisted-config-rs 0.2.1

A simple configuration file read-write library
Documentation
  • Coverage
  • 83.33%
    5 out of 6 items documented3 out of 4 items with examples
  • Size
  • Source code size: 84.03 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 321.55 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • xiaochen0517

✨ Quickstart

🚚 Install

cargo add persisted-config-rs

📦 Usage

use persisted_config_rs::PersistedConfig;

#[tauri::command]
fn set_item(key: String, value: String) {
    let mut config = PersistedConfig::new("config");
    config.set_item(key, value);
}

#[tauri::command]
fn get_item(key: String) -> String {
    let config = PersistedConfig::new("config");
    config.get_item(key)
}

License

MIT