binconf
Save and load from a binary configuration file with ease.
The data is hashed (XXH3) during serialization and validated when deserializing, so you can be sure that the data is not corrupted.
Crate used for XXH3: xxhash-rust
Deprecated Features
The serde_yaml library is currently unmaintained. Although it still functions, I recommend using serde_json or serde_toml as alternatives while a new replacement is being developed.
You can also save the configuration using toml, json, yaml and ron. You need to enable the respective feature for this. (hash validation is not supported for toml, json, yaml or ron)
Optional Features
bincode-conf: Enables saving and loading configurations in binary. (Enabled by default)toml-conf: Enables saving and loading configurations usingtoml.json-conf: Enables saving and loading configurations usingjson.yaml-conf: Enables saving and loading configurations usingyaml.ron-conf: Enables saving and loading configurations usingron.full: Enables all configuration types. This gives you the ability to save and load usingtoml,json,yaml,ronas well as binary.
Disabling Default Features
If you want to only use one of the features, you can disable the default features and enable the feature you want to use.
Only using toml, for example:
[dependencies.binconf]
features = ["toml-conf"]
default-features = false
Usage
use ;
use ;
License
This project is licensed under the MIT License - see the LICENSE file for details.