use-config-layer
Primitive shallow configuration map layering and merging.
use-config-layer pairs a ConfigSource with a deterministic map of ConfigPath to ConfigValue. Merge helpers apply layers in ascending priority order, preserving caller order for equal priorities, so higher-priority or later layers replace earlier values.
Merge behavior is shallow in this first version. If two layers contain the same path, the winning ConfigValue replaces the previous value as a whole, including map values.
use ConfigPath;
use ;
use ;
use ConfigValue;
let path = parse.unwrap;
let mut defaults = new;
let mut overrides = new;
defaults.insert;
overrides.insert;
let merged = merge_layers;
assert_eq!;
This crate does not load, parse, watch, or manage application settings.