More Configuration

More Configuration is a configuration library for Rust.
You may be looking for:
Features
This crate provides the following features:
- default - Abstractions for configuration, including the std features
- std - Standard configuration implementation
- async - Use configuration in an asynchronous context
- mem - An in-memory configuration source
- env - An environment variables configuration source
- cmd - A command-line argument configuration source
- json - A *.json file configuration source
- xml - A *.xml file configuration source
- ini - An *.ini file configuration source
- chained - Chain multiple configuration sources
- binder - Bind a configuration to strongly-typed values and structs
Configuration in Action
Consider the following demo.json file:
The configuration can be loaded, merged, and accessed from multiple sources:
use ;
Raw configuration values can be used, but they are much more interesting when we data bind them to strongly-typed values:
use Deserialize;
use ;
License
This project is licensed under the MIT license.