Safe, idiomatic Rust bindings for the libxdiff
C library.
Add this to your Cargo.toml
:
toml
[dependencies]
libxdiff = "0.2"
```rust use core::str::from_utf8; use libxdiff::MMFile;
let mut f1 = MMFile::frombytes(b"hello world\n");
let mut f2 = MMFile::frombytes(b"hello world!\n");
let mut difflines = Vec::
Upstream libxdiff
is small and has no dependencies, so this crate links it statically.