Expand description
Layered configuration loader.
Minimal env-var loader for the Gateway. Adds layered file (yaml/toml) and CLI-flag merging in later iterations when those callers exist.
§Reading
use tt_config::Config;
let cfg = Config::from_env().expect("env vars valid");§Conventions
- Required vars return
ConfigError::Missingwhen absent. - Optional vars return
Nonewhen absent andSome(_)when present. - Parse failures (e.g.
PORT="abc") returnConfigError::Parse.
Structs§
- Config
- Gateway runtime configuration.
Enums§
- Config
Error - Top-level errors from config loading.