pub fn tree_digest(path: &Path) -> Result<Sha256, BuildError>Expand description
Content digest of the source tree rooted at path.
Hashes each file’s path-relative-to-root and its bytes, in a stable
(sorted) order so two machines agree. Honors .gitignore; always
skips .git/ and target/.
§Errors
BuildError::Io when the root cannot be walked. Individual
unreadable entries are folded into the digest as a marker rather than
aborting: a permission-denied file is a real input state, and failing
the whole plan over one unreadable path would be worse than rebuilding.