prefstore
A rust crate to Easily store and retrieve preferences in rust.
Installation
Install the crate as a dependency in your app's Cargo.toml file:
[]
= "0.5.0"
Then you can use it in your code like this:
// Import prefstore
use *;
Features
- Supports any type that implements
[Display]for values - Stores each preference in separate file, ensuring quick access and minimum disk read/write operations.
- Provides methods for setting, getting, removing preferebces.
- Provides methods for loading and saving preference from and to a file.
- Provides methods for clearing.
License
This project is licensed under the MIT license. See the LICENSE file for more details.