persisted-config-rs

Crates.iopersisted-config-rs
lib.rspersisted-config-rs
version0.2.1
sourcesrc
created_at2023-12-02 04:44:47.123288
updated_at2023-12-28 08:46:11.824571
descriptionA simple configuration file read-write library
homepage
repository
max_upload_size
id1055928
size84,332
MoChenYa (xiaochen0517)

documentation

README

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

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

License

MIT

Commit count: 0

cargo fmt