Crate get_dir_hash

Crate get_dir_hash 

Source
Expand description

Deterministic directory hashing with simple glob ignores.

Design:

  • Build a file list by walking root and filtering via globset.
  • 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 root using opts, returning a lowercase hex digest.