dumbo-config
dumbo-config is a config loader.
Features
- Load project configurations
Quick Start
Your configuration file.
name: "test config"
value: 32
configuration file name
The following file names is qualified.
- config.yml
- config.yaml
- config.{ENV}.yml
- config.{ENV}.yaml
Where
ENVis the value of the environment variable "ENV". If "ENV" is not set, it defaults to searchingconfig.ymlandconfig.yaml.
You can also use load_named_config with specified config file.
Rust file for loading TestConfig
use ;
use Deserialize;
...
let config: = load_config;
let config_path: Path = ...;
let config: = load_named_config;