diff

Function diff 

Source
pub fn diff<T: Write>(old: &[u8], new: &[u8], writer: &mut T) -> Result<()>
Expand description

Diff an “old” and a “new” file, returning a legacy BSDIFF40 patch.

This maintains backward compatibility - generates classic BZ2-compressed patches that are identical to the original bsdiff implementation.