1 # difference.rs [![](https://travis-ci.org/johannhof/difference.rs.svg?branch=master)](https://travis-ci.org/johannhof/difference.rs) [![](https://ci.appveyor.com/api/projects/status/n1nqaitd5uja8tsi/branch/master?svg=true)](https://ci.appveyor.com/project/johannhof/liquid-rust/branch/master) [![](https://coveralls.io/repos/johannhof/difference.rs/badge.svg?branch=master&service=github)](https://coveralls.io/github/johannhof/difference.rs?branch=master) [![](https://img.shields.io/crates/v/difference.svg)](https://crates.io/crates/difference)
2 A Rust text diffing library with built-in diffing assertion.
4 __[Documentation](https://johannhof.github.io/difference.rs)__
6 __[Examples](/Examples.md)__
9 use difference::Changeset;
11 let changeset = Changeset::new("test", "tent", "");
13 assert_eq!(changeset.diffs, vec![
14 Difference::Same("te".to_string()),
15 Difference::Rem("s".to_string()),
16 Difference::Add("n".to_string()),
17 Difference::Same("t".to_string())
21 ![](https://raw.githubusercontent.com/johannhof/difference.rs/master/assets/fox.png)
22 ![](https://raw.githubusercontent.com/johannhof/difference.rs/master/assets/github-style.png)
27 Add the following to your Cargo.toml:
34 Now you can use the crate in your code
36 extern crate difference;
42 difference can also be used as a command-line application. The best way to install it is using:
45 $ cargo install --features=bin