Figment Directory

Figment provider for config values split into multiple files in a directory, working with any Format.
use Deserialize;
use ;
use FormatExt as _;
let config: Config = new
.merge
.extract?;
Directory structure:
- config
- database.toml
- pubsub.toml
# database.toml
= "some/url"
# pubsub.toml
= "some/url"
Overview
This crate contains the Directory provider for Figment, to allow loading
configuration values a directory containing (possibly nested) files in a consistent file format.
It is wrapped around a Format implementation like figment::providers::Json or figment::providers::Toml.
This might be helpful if you have a lot of configuration values and wish to organize it using the file system.
See the documentation for a detailed usage guide and more information.
Usage
Add the following to your Cargo.toml:
[]
= { = "0.10" }
= { = "0.1" }
License
figment-directory is licensed under the BSD-3-Clause License