colored-diff 0.2.3

Format the difference between two strings with ANSI colors
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate colored_diff;

fn main() {
    let expected = "\
        Roses are red, violets are blue,\n\
        I wrote this library here,\n\
        just for you.\n\
        (It's true).\n\
    ";
    let actual = "\
        Roses are red, violets are blue,\n\
        I wrote this documentation here,\n\
        just for you.\n\
        (It's quite true).\n\
    ";

    println!("{}", colored_diff::PrettyDifference { expected, actual })
}