From edf8a3121bc56479a7c07dfc451bc6254894949c Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sat, 10 Apr 2021 17:15:44 +0530 Subject: [PATCH] rename modules --- Cargo.toml | 3 +++ src/{map.rs => filemap.rs} | 4 ++-- src/lib.rs | 8 ++++---- src/{hash.rs => processor.rs} | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) rename src/{map.rs => filemap.rs} (98%) rename src/{hash.rs => processor.rs} (99%) diff --git a/Cargo.toml b/Cargo.toml index b9114e2..51a9a0b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,8 +19,11 @@ path = "src/lib.rs" [dependencies] mime_guess = "2.0.3" mime = "0.3.16" + sha2 = "0.9.3" + derive_builder = "0.10.0" + data-encoding = "2.3.2" walkdir = "2" diff --git a/src/map.rs b/src/filemap.rs similarity index 98% rename from src/map.rs rename to src/filemap.rs index ff6ffeb..f5daeb8 100644 --- a/src/map.rs +++ b/src/filemap.rs @@ -71,8 +71,8 @@ impl Files { #[cfg(test)] mod tests { - use crate::hash::tests::cleanup; - use crate::hash::*; + use crate::processor::tests::cleanup; + use crate::processor::*; use super::*; use std::path::Path; diff --git a/src/lib.rs b/src/lib.rs index cf9b8ab..a467842 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -32,7 +32,7 @@ //! } //! ``` -pub mod hash; -pub use hash::BusterBuilder; -pub mod map; -pub use map::Files; +pub mod processor; +pub use processor::BusterBuilder; +pub mod filemap; +pub use filemap::Files; diff --git a/src/hash.rs b/src/processor.rs similarity index 99% rename from src/hash.rs rename to src/processor.rs index 3a8b9d7..6c83d9e 100644 --- a/src/hash.rs +++ b/src/processor.rs @@ -12,7 +12,7 @@ use std::{fs, path::PathBuf}; use derive_builder::Builder; use walkdir::WalkDir; -use crate::map::Files; +use crate::Files; #[derive(Debug, Clone, Builder)] pub struct Buster {