trail-config 0.4.0

A Rust library for reading config files with path-based access, typed deserialization, environment overlays, deep merging, env variable interpolation, and hot reload support.
Documentation
mod accessors;
mod env_vars;
mod escape;
mod formatting;
mod internals;
#[cfg(feature = "json")]
mod json;
mod loading;
mod macros;
mod merge;
mod reload;
mod structs;
#[cfg(feature = "toml")]
mod toml;

use super::Config;
use crate::ConfigError;

pub(super) const YAML: &str = "
db:
    redis:
        server: 127.0.0.1
        port: 6379
        key_expiry: 3600
    sql:
        driver: SQL Server
        server: 127.0.0.1
        database: my_db
        username: user
        password: Pa$$w0rd!
sources:
    - one
    - two
    - three
app:
    debug: true
    max_retries: 5
    timeout: 2.5
";