spielrs_diff 0.1.0

It is a library which compare two tree direcories asynchronously
Documentation

Spielrs Diff

It is a library which compare two tree direcories asynchronously through tokio and return true in case that both are different. Useful to create watchers in the servers

How install it

  1. add the dependency in the Cargo.toml file of the project:
spielrs_diff = "0.1"

Example

use spielrs_diff::dir_diff;
#[tokio::test]
async fn should_return_true_if_both_dir_tree_are_different() {
   let diff = dir_diff(
       "./mocks/dir_one".to_string(),
       "./mocks/dir_three".to_string(),
   )
   .await;
   assert_eq!(diff, true);
}

License

Spielrs Diff is MIT licensed. See license