Skip to main content

Module config

Module config 

Source
Expand description

Runtime config-load wrapper. Both driver and doctor parse user config through Config::load_validated so unknown-key warnings ride alongside the parsed config (or the parse error). Doctor’s read is documented in docs/specs/doctor.md §Config.

Pre-routing, doctor used bare toml::from_str and silently accepted typos like [segmnts.echo] that the runtime warned about — the parity gap this module closes.

Enums§

ConfigLoadOutcome
Outcome of loading the user config from a resolved path. Five variants; runtime and doctor render each differently.

Functions§

load_config
Single config-load entry both runtime and doctor route through. Calls Config::load_validated so unknown-key warnings flow to the caller via the ConfigLoadOutcome::Loaded variant rather than being collected by side effect on a sink.