5 releases

0.2.1 May 14, 2025
0.2.0 Aug 15, 2024
0.1.2 Aug 14, 2024
0.1.1 Jun 3, 2023
0.1.0 May 4, 2023

#1007 in Text processing

Download history 220/week @ 2025-11-27 86/week @ 2025-12-04 146/week @ 2025-12-11 61/week @ 2025-12-18 12/week @ 2025-12-25 235/week @ 2026-01-01 54/week @ 2026-01-08 21/week @ 2026-01-15 48/week @ 2026-01-22 46/week @ 2026-01-29 39/week @ 2026-02-05 96/week @ 2026-02-12 17/week @ 2026-02-19 49/week @ 2026-02-26

98 downloads per month
Used in merge3

GPL-2.0+

42KB
974 lines

patiencediff

This package contains the implementation of the patiencediff algorithm for Rust, as first described by Bram Cohen.

Like Python's difflib, this module provides both a convenience unified_diff function for the generation of unified diffs of text files as well as a SequenceMatcher that can be used on arbitrary lists.

Patiencediff provides a good balance of performance, nice output for humans, and implementation simplicity.

The code in this package was extracted from the Bazaar code base, and ported to rust.

Dependencies

~3–5MB
~90K SLoC