Skip to content

xiaochen0517/persisted-config-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple configuration file read-write library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages