Expand description
Deterministic directory hashing with simple glob ignores.
Design:
- Build a file list by walking
rootand filtering viaglobset. - Sort files by normalized relative path to guarantee stable order.
- For each file: stream its content into an inner blake3 hasher, then feed the outer hasher with record-framed data: b“F\0“ + path + b“\0“ + content_digest + [metadata?].
- Finally, return the outer digest as lowercase hex.
This crate intentionally keeps ignore semantics minimal (no ! negations).
Structs§
- Options
- Options controlling hashing behavior.
Functions§
- get_
dir_ hash - Compute dir hash for
rootusingopts, returning a lowercase hex digest.