pub fn replace_package_file(path: &Path, bytes: &[u8]) -> Result<()>
Replace an owned output by renaming a unique sibling, never truncating the previous inode. Failure removes only this writer’s temporary file.