zbsdiff-cli-1.5.3 is not a library.
zbsdiff
Fast and memory saving bsdiff 4.x compatible delta compressor and patcher, fork of qbsdiff.
This project is a Rust workspace containing:
zbsdiff: The core library for diffing and patching.zbsdiff-cli: Command-line tools for manual operations.zbsdiff-test-utils: Internal testing and benchmarking helpers.
Add library dependency to Cargo.toml:
[]
= "1.5"
Features
- Performance: Optimized for speed and low memory usage.
- Parallelization: Supports multi-threaded diffing with fixed-size or Content-Defined Chunking (CDC) schemes.
- Extensibility: Decoupled diffing engine and storage format via
PatchWriterandPatchReadertraits. Use another compressor or container format by implementing the traits.
Installation
You can install zbsdiff binaries using Zoi:
Build commands
Build the zbsdiff and zbspatch CLI tools:
cargo build --release -p zbsdiff-cli
cd target/release
./zbsdiff --help
./zbspatch --help
Install commands to $CARGO_HOME/bin:
cargo install zbsdiff-cli
Examples
Produce the target stream by applying patch to source:
use io;
use Bspatch;
Produce the patch data by comparing source with target:
use io;
use Bsdiff;
Note that zbsdiff would not generate exactly the same patch file as bsdiff.
Only the patch file format is promised to be compatible.
License
Licensed under either of these licenses at your option.
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)