RSCONFIG
Simple configuration library to help programs manage their config.
Importing
If just using RSCONFIG, you can do this:
[]
= "0.1.0" # replace with latest version
Examples
CommandlineConfig
use CommandlineConfig;
use ;
// our config class that we can expand upon to add different values
// to expand upon it, simply add more fields and update the import function(s)
YamlConfig
// import YamlConfig and files
// files has some useful load functions
use YamlConfig;
use files;
use yaml_rust;
// our config class that we can expand upon to add different values
// to expand upon it, simply add more fields and update the import function(s)
JsonConfig
// import JsonConfig and files
// files has some useful load functions
use JsonConfig;
use files;
use serde_json;
// our config class that we can expand upon to add different values
// to expand upon it, simply add more fields and update the import function(s)