Crate turbo_tasks_hash

Source
Expand description

Hashing and encoding functions for turbopack.

An example use of this module is hashing a file’s content for cache invalidation, and encoding the hash to an hexadecimal string for use in a file name.

Structs§

Xxh3Hash64Hasher
Xxh3Hash64 hasher.

Traits§

DeterministicHash
Signals the implementor can safely be hashed in a replicatable way across platforms and process runs.
DeterministicHasher
Signals the implementor can safely hash in a replicatable way across platforms and process runs.

Functions§

encode_hex
Encodes a 64-bit unsigned integer into a hex string.
hash_xxh3_hash64
Hash some content with the Xxh3Hash64 non-cryptographic hash function.
hash_xxh3_hash128
Hash some content with the Xxh3Hash128 non-cryptographic hash function. This longer hash is useful for avoiding collisions.

Derive Macros§

DeterministicHash