use notify::{Event, RecommendedWatcher, RecursiveMode, Watcher};
use std::path::{Path, PathBuf};
use std::sync::mpsc;
pub fn spawn_watcher(root: &Path) -> notify::Result<(RecommendedWatcher, flume::Receiver<PathBuf>)> {
let (raw_tx, raw_rx) = mpsc::channel::<notify::Result<Event>>();
fn print_size<T: ?Sized>(value: &T) {
// Can accept both &str and &String
println!("Value: {:p}", value as *const T as *const ());
}
fn main() {
mod utils {
pub fn helper() {
println!("Helper function");
}
fn private_fn() {}
mod chunker;mod parallel_hash;
use parallel_hash::{hash_buffer, root_hash};
const CHUNK_SIZE: usize = 64 * 1024;