A faster implementation of librsync in pure Rust.
This crate offers three major APIs:
- Signature::calculate(), which takes a block of data and returns a "signature" of that data which is much smaller than the original data.
- diff(), which takes a signature for some block A, and a block of data B, and returns a delta between block A and block B. If A and B are "similar", then the delta is usually much smaller than block B.
- apply(), which takes a block A and a delta (as constructed by diff()), and (usually) returns the block B.
Indicates that a delta could not be calculated, generally because the provided signature was invalid or unsupported.
A signature with a block index, suitable for calculating deltas.
An rsync signature.
Options for Signature::calculate.
Indicates that a signature was not valid.
Indicates that a delta could not be applied because it was invalid.
Calculate a delta and write it to