Skip to main content

load_file_config

Function load_file_config 

Source
pub fn load_file_config(path: &Path) -> Result<FileConfig, String>
Expand description

Load + parse a TOML config file. A missing file resolves to Ok(FileConfig::default()) (built-in default fallback, per module doc); any other IO error or a parse error is Err — a malformed config file must not be silently ignored (fail-loud).