Skip to main content

Module diff

Module diff 

Source
Expand description

Per-file diff (bsdiff) apply support.

A diff is a binary delta in bsdiff 4.x format that transforms the beforeHash bytes of a file into the afterHash bytes. We store diffs grouped by patch UUID — see crate::patch::package for the tar.gz archive layout.

Functions§

apply_diff
Apply a bsdiff delta to before and return the resulting bytes.