pub fn parse_toml(
input: &str,
) -> Result<BTreeMap<String, TomlValue>, KernelError>Expand description
Parse a TOML string into a nested BTreeMap<String, TomlValue>.
Supports:
- Key-value pairs:
key = "value",key = 42,key = true - Sections:
[section] - Arrays:
["a", "b", "c"] - Inline tables:
{ key = "value", key2 = 42 }