niffler_precompiled/toml
A deliberately small TOML reader for niffler.toml.
Supported: single-level tables, bare keys, basic/literal strings, arrays, booleans, and integers. Comments and multi-line arrays are supported. This is enough for niffler’s own configuration and keeps the runtime dependency surface at zero.
Types
Values
pub fn get_optional_string(
entries: List(#(String, Value)),
key: String,
) -> Result(option.Option(String), String)
pub fn get_optional_string_array(
entries: List(#(String, Value)),
key: String,
) -> Result(option.Option(List(String)), String)
pub fn get_string(
entries: List(#(String, Value)),
key: String,
) -> Result(String, String)
pub fn get_string_array(
entries: List(#(String, Value)),
key: String,
) -> Result(List(String), String)
pub fn parse_value(raw: String) -> Result(Value, String)
pub fn table_names(document: Document) -> List(String)