pub fn hash_source(source: &Path) -> Result<Hash>
Hash a file or directory tree with a stable, content-addressed scheme.
Returns an error if the source does not exist, is neither a file nor a directory, or cannot be read.