Skip to main content

Module checksum

Module checksum 

Source
Expand description

Deterministic content checksums and snapshots of reviewed file sets.

Tree capture intentionally accepts an explicit list instead of discovering a directory. Callers retain control over ignore rules, discovery symlink policy, and the input boundary.

Structsยง

Candidate ๐Ÿ”’
CapturedFile ๐Ÿ”’
Checksum
A BLAKE3 content checksum.
CountingReader ๐Ÿ”’
Error
Failure to checksum a file or capture a tree snapshot.
ParseChecksumError
Failure to parse the canonical hexadecimal representation of a checksum.
TreeEntry
One regular file included in a TreeSnapshot.
TreeSnapshot
A deterministic snapshot of an explicitly reviewed set of regular files.

Enumsยง

ErrorKind ๐Ÿ”’

Constantsยง

ADJACENT_PAIR ๐Ÿ”’
CHECKSUM_BYTES ๐Ÿ”’
CHECKSUM_HEX_LENGTH ๐Ÿ”’
HEX_ALPHA_OFFSET ๐Ÿ”’
HEX_PAIR_BYTES ๐Ÿ”’
NIBBLE_BITS ๐Ÿ”’
SECOND_ITEM ๐Ÿ”’
TREE_DOMAIN ๐Ÿ”’

Functionsยง

bytes
Compute the BLAKE3 checksum of bytes already in memory.
checked_file ๐Ÿ”’
current_executable
Compute the checksum of the currently running executable.
decode_hex ๐Ÿ”’
file
Compute the BLAKE3 checksum of a regular file.
tree_checksum ๐Ÿ”’
update_length ๐Ÿ”’

Type Aliasesยง

Result
Result returned by checksum operations.