Packages / rupm

diff-tools 0.1.0

Line diff via longest common subsequence, with unified diff output

Install

cargo add diff-tools --registry rupm

In Ruststudio: Packages, search for diff-tools, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.

Versions

README

# diff-tools

Line diff via longest common subsequence, with unified diff output

Add it with `rupm add diff-tools` (or `cargo add diff-tools --registry rupm`).

```rust
let ops = diff_tools::diff_lines("a\nb\nc", "a\nx\nc");
println!("{}", diff_tools::unified("old", "new", "a\nb\nc", "a\nx\nc", 3));
```