Skip to main content

write_manifest

Function write_manifest 

Source
pub fn write_manifest(path: &Path, manifest: &Value) -> Result<(), String>
Expand description

Atomically write the checkpoint manifest (tmp file + rename), pretty (indent 2), sorted-key JSON + trailing newline, matching Python’s json.dumps(manifest, indent=2, sort_keys=True) + "\n".