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§
- Xxh3
Hash64 Hasher - Xxh3Hash64 hasher.
Traits§
- Deterministic
Hash - Signals the implementor can safely be hashed in a replicatable way across platforms and process runs.
- Deterministic
Hasher - 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.