cardinal-config
Configuration loader and validator for the gateway. It uses the config crate to merge sources, then maps them into strongly typed builders.
Features
- Load from multiple TOML files and
CARDINAL__...environment variables - Validate server address formats, whitelisted methods, and plugin references
- Emit descriptive
ConfigErrors when validation fails
API sketch
let paths = vec!;
let cfg = load_config?;
assert_eq!;
CardinalConfigBuilder and friends remain available if you need to construct configs programmatically (e.g., tests or higher-level control planes).