Skip to main content

load_toml

Function load_toml 

Source
pub fn load_toml(path: &str) -> Result<ConfigSnapshot, ConfigError>
Expand description

Parse a flat TOML-like key=value file into a ConfigSnapshot.

Sections ([name]) are accepted but ignored (values are stored without a section prefix). Comments (# ...) and blank lines are skipped.

This is intentionally a lightweight parser: it does not support multi-line values, inline tables, or dotted keys.