Skip to main content

write_jsonl

Function write_jsonl 

Source
pub fn write_jsonl(
    nodes: &[NodeInfo],
    edges: &[ExportEdge],
    rules: &[RuleDef],
    dest: &Path,
) -> Result<(), CliError>
Expand description

Write JSONL files to dest: nodes.jsonl, edges.jsonl, rules.jsonl.

nodes must be sorted by key, edges by (edge_type, src, dst), rules by name. Deterministic: same sorted input → byte-identical output.