Function init_from_env

Source
pub fn init_from_env()
Expand description

Initialize the global configuration from environment variables.

Reads values from process environment variables, using each key’s CONFIG.env_name (from @meta(CONFIG = ConfigAttr { … })) to determine its mapping. The resulting values are installed as the Source::Env layer. Keys without a corresponding environment variable fall back to defaults or higher-priority sources.

Typically invoked once at process startup to overlay config values from the environment. Repeated calls replace the existing Env layer.