1 2 3 4 5 6 7 8
use similar::TextDiff; fn main() { let x = "abc".repeat(2000); let y = "abd".repeat(2000); let diff = TextDiff::from_chars(&x, &y); println!("{}", diff.unified_diff()); }