| Crates.io | persisted-config-rs |
| lib.rs | persisted-config-rs |
| version | 0.2.1 |
| created_at | 2023-12-02 04:44:47.123288+00 |
| updated_at | 2023-12-28 08:46:11.824571+00 |
| description | A simple configuration file read-write library |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1055928 |
| size | 84,332 |
The icon are based on pinia-plugin-persistedstate and pinia
A simple configuration file read-write library
cargo add persisted-config-rs
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)
}