pub fn hash_directory(root: impl AsRef<Path>) -> Result<ContentHash, HashError>
Walks root and computes the deterministic content hash of the module directory, skipping non-module content and spec-defined exclusions.
root