Skip to main content

write_manifest

Function write_manifest 

Source
pub fn write_manifest(
    manifest: &Manifest,
    final_path: &Path,
    overwrite: bool,
) -> Result<u64, ExportError>
Expand description

Write the manifest atomically (.partial → rename). Returns the byte size on disk after the rename.

§Errors

Returns ExportError::Io for I/O failures, ExportError::Manifest for serialisation failures, and ExportError::OutputExists when the manifest already exists and overwrite is false.