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

#823 in Text processing

Download history 93/week @ 2025-11-04 66/week @ 2025-11-11 61/week @ 2025-11-18 196/week @ 2025-11-25 89/week @ 2025-12-02 164/week @ 2025-12-09 56/week @ 2025-12-16 27/week @ 2025-12-23 223/week @ 2025-12-30 61/week @ 2026-01-06 22/week @ 2026-01-13 46/week @ 2026-01-20 32/week @ 2026-01-27 55/week @ 2026-02-03 66/week @ 2026-02-10 43/week @ 2026-02-17

202 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.5–5MB
~91K SLoC