use blake3::Hash; use std::path::Path; /// Get the Blake3 hash of a file, without reading it all into memory pub async fn hash_file>(input: &P) -> Result { let mut hasher = blake3::Hasher::new(); hasher.update_mmap_rayon(input)?; Ok(hasher.finalize()) }