Skip to main content

write_jsonl_v1

Function write_jsonl_v1 

Source
pub fn write_jsonl_v1<W: Write>(
    writer: &mut W,
    entries: &[IndexEntryV1],
) -> Result<(), Error>
Expand description

Serialize a slice of entries into JSON Lines, one entry per line in the given order, written to writer. Callers wanting a specific ordering (e.g. sorted by path) should sort entries beforehand — this function preserves input order rather than imposing one.