3 unstable releases
0.2.1 | Dec 28, 2023 |
---|---|
0.2.0 | Dec 17, 2023 |
0.1.0 | Dec 2, 2023 |
#359 in Configuration
21 downloads per month
78KB
67 lines
The icon are based on pinia-plugin-persistedstate and pinia
A simple configuration file read-write library
persisted-config-rs
✨ 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)
}