Skip to main content

parse_config

Function parse_config 

Source
pub fn parse_config(contents: &str, path: &Path) -> ConfigFile
Expand description

Parse TOML content into a ConfigFile.

Uses a two-pass strategy: first tries strict parsing (to detect unknown keys), then falls back to lenient parsing if strict fails due to unknown fields.