Skip to main content

Module key

Module key 

Source
Expand description

Declaration keys, shared by external checkers.

A unit is one declaration, or one inductive block, and its key is the blake3 hash of a canonical encoding of the unit that names every constant it mentions from an earlier unit by that unit’s key. So a key covers its unit’s whole dependency closure, and does not depend on id numbering, record order or which file a unit came from.

Structs§

Keyed
A declaration and the key of its unit, None when the unit has none.
Keys
A Sink that computes the key of every declaration in an export.

Type Aliases§

Key