Skip to main content

Module parser

Module parser 

Source
Expand description

Canonical reader for the snapshot file format.

Produces Snapshot<Canonical> only when the input parses and is in canonical order. Non-canonical input is a hard error so we never silently accept a hand-edited snapshot that has drifted out of order.

Functionsยง

parse
parse_header
Parses only the leading # header block, so a caller that needs the provenance of a snapshot does not pay for its body.