Configstore
Configstore is a library that allows you to store your configurations locally without having to worry about the directories or the platform
- API Documentation
- Cargo package: configstore
Usage
To use configstore
, add this to your Cargo.toml
:
[]
= "0.1"
Initialize your Configstore
use ;
Set and get values
Configstore supports any value that implements Deserialize and Serialize
use *;
use ;
let config_store = new.unwrap;
let value = Value ;
config_store.set.unwrap;
let same_value: Value = config_store.get.unwrap;
assert_eq!;
Configstore will store the configuration files under your platforms native config directory based on platform-dirs
Contributing
All contributions are welcome, feel free to file an issue or even a pull-request 🤝
License
This project is licensed under the Mozilla Public License 2.0