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 {