Skip to main content

Module config

Module config 

Source
Expand description

Layered configuration loading for Aro applications.

Before loading, dotenvy::dotenv() reads a .env file into the process environment (non-fatal if missing). Config crate sources, lowest to highest:

  1. File: config/{environment}.toml (environment from ARO_ENV, default "development")
  2. Environment variables with prefix APP_ (separator __)

Enums§

ConfigError
Represents all possible errors that can occur when working with configuration.

Functions§

load_config
Load configuration into T using layered sources.