// Global runtime state initialized once at startup.
// BASE_DIR is derived from the config file's parent directory.
usestd::path::{Path, PathBuf};usestd::sync::OnceLock;pubstaticBASE_DIR:OnceLock<PathBuf>=OnceLock::new();pubfnbase_dir()->&'static Path{BASE_DIR.get().expect("BASE_DIR not initialized before use")}