Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 1.36 KB

README.md

File metadata and controls

55 lines (42 loc) · 1.36 KB

logo

The icon are based on pinia-plugin-persistedstate and pinia

A simple configuration file read-write library

persisted-config-rs

npm License

✨ 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.save_config(key, value);
}

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

License

MIT