patch
Unified diff and patch library for Rust. Parse, create, and apply patches.
Features
- Parse: Unified, context, and side-by-side diffs
- Create: Generate diffs from text or structured data
- Apply: Apply patches with conflict detection
- Merge: Three-way merge with conflict markers
Installation
[]
= { = "https://github.com/KooshaPari/patch" }
Usage
use ;
let old = "hello world";
let new = "hello rust";
let diff = diff?;
apply?;
License
MIT