Skip to main content

Module format

Module format 

Source
Expand description

Format detection, parsing and emission.

Both directions cross the IR boundary here and nowhere else: parse yields a Value, emit takes one. The conversions themselves live in crate::value.

Enums§

Format
v1 ships JSON and TOML only. Adding a format is one arm of these matches; removing one is a breaking change.
SourceName
Which input a parse error came from. Names an input being read, so there is no variant for --set: a bad --set expression is rejected by PathLeaf during argument parsing, long before anything reaches here.

Functions§

emit
Converts the merged IR into format and serializes it.
parse
Parses one layer into the merge IR.