//! Configuration loader.
//!
//! Loads `AppConfig` from TOML files with automatic validation.
use crateAppConfig;
use cratevalidation;
use Result;
use Path;
/// Loads an `AppConfig` from a TOML file at the given path.
///
/// # Steps
/// 1. Reads the file.
/// 2. Parses TOML into `AppConfig`.
/// 3. Validates the configuration using `validation::validate()`.
///
/// # Errors
/// - I/O error if the file cannot be read.
/// - TOML parse error if the file is malformed.
/// - Validation error if the configuration is semantically invalid.