Skip to main content

Module hash

Module hash 

Source
Expand description

FNV-1a interface hashing for compile-time ABI drift detection.

The proc macro computes an interface_hash from the sorted required method signatures of a trait. The host checks this hash at load time to reject plugins compiled against a different interface.

Functionsยง

fnv1a
Compute the FNV-1a 64-bit hash of a byte slice.
interface_hash
Compute the interface hash from a set of method signatures.