docs.rs failed to build file_diff-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: file_diff-1.0.0

File Diff

This module provides an atomic file diffing function for use in unit tests.

The diff_files() function takes two file handles and determines returns true if they point to identical files.

use file_diff::{diff_files};
use std::io::{File};

let mut file1 = match File::open(&Path::new("./src/lib.rs")) {
    Ok(f) => f,
    Err(e) => panic!("{}", e),
};
let mut file2 = match File::open(&Path::new("./src/lib.rs")) {
    Ok(f) => f,
    Err(e) => panic!("{}", e),
};

diff_files(file1, file2); // true

The diff() function takes string representations of the files and returns true if the strings represent real files and those files are identical.

use file_diff::{diff};

diff("./src/lib.rs", "./src/lib.rs"); // true