Skip to main content

Module record

Module record 

Source
Expand description

The on-disk record format.

One JSON object per line, keys sorted, stored as a git note on the commit the measurement describes. Line-oriented and order-independent so that git’s cat_sort_uniq notes merge strategy resolves concurrent CI writers without conflicts — see crate::notes.

Serialisation goes through Record::to_line rather than plain serde_json::to_string because cat_sort_uniq dedupes on exact bytes: two writers emitting the same measurement must produce byte-identical lines.

Structs§

Record

Constants§

SCHEMA_VERSION
Bumped when the record shape changes incompatibly. Readers skip lines whose version they do not understand rather than failing the whole history.

Functions§

parse_note
Parse a whole note body, skipping lines that fail to parse.