konfiguration 1.2.0

Toml configuration loader with environment variables support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::collections::HashMap;

pub type TomlValue = toml::Value;
pub type TomlMap = toml::map::Map<String, TomlValue>;

pub type ConfigurationManifest = HashMap<String, ConfigurationEntry>;

#[derive(Debug)]
pub enum ConfigurationEntry {
    Simple(TomlValue),
    Env(String),
    UnsetEnv,
    Vec(Vec<ConfigurationEntry>),
    Table(HashMap<String, ConfigurationEntry>),
}