Figment
Figment is a semi-hierarchical configuration library for Rust so con-free, it's unreal.
use Deserialize;
use ;
let config: Config = new
.merge
.merge
.merge
.join
.extract?;
See the documentation for a detailed usage guide and information.
Usage
Add the following to your Cargo.toml
, enabling the desired built-in providers:
[]
= { = "0.9", = ["toml", "env"] }
License
Figment is licensed under either of the following, at your option:
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)