The icon are based on
pinia-plugin-persistedstate
and
pinia
A simple configuration file read-write library
persisted-config-rs
## ✨ Quickstart
### 🚚 Install
```bash
cargo add persisted-config-rs
```
### 📦 Usage
```rust
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](./LICENSE)