text-diff

A word-level diff for showing what a rewrite changed, with protected ranges reported as locked rather than as edits.

With cargo

cargo add cratefield-text-diff

What it is

text-diff.

A word-level diff for showing what a rewrite changed. Segments come back as removed, added or same — and as locked for the protected ranges that came through unchanged, so a span that text-guard found and held is not drawn as if a model had touched it. Without that last state a diff says a protected name was edited when it was merely carried.

From the crate’s own README.

History

Changelog.

This crate has no CHANGELOG.md in the harness yet. Every published version is listed on crates.io.

One of 76 crates in the harness, all of them MIT and all of them in one repository.