# htmldiff Rust port of [myobie/htmldiff](https://github.com/myobie/htmldiff). ## Installation ### Cargo ```sh $ cargo install htmldiff ``` ### Manual You can download prebuilt binaries in the [releases section](https://github.com/Aaronepower/tokei/releases), or create from source. ```sh $ git clone https://github.com/seikichi/htmldiff.git $ cd htmldiff $ cargo build --release ``` ## Run ```sh $ cat old.html

Hello, world!

$ cat new.html

Hello, seikichi!

$ htmldiff old.html new.html

Hello, world!seikichi!

``` ## Use as Library Add the following to your Cargo.toml file: ```toml [dependencies] htmldiff = "0.1" ``` Next, call `htmldiff::htmldiff` function in your code: ```rst extern crate htmldiff; fn main() { let old = "

Hello, world!

"; let new = "

Hello, seikichi!

"; println!("{}", htmldiff::htmldiff(old, new)); } ``` ## License MIT