Skip to main content

TOCAT_ABI_VERSION

Constant TOCAT_ABI_VERSION 

Source
pub const TOCAT_ABI_VERSION: u32 = 2; // 2u32
Expand description

Bumped for any change to what the host reads or to what a value means: the struct below, the set of exports, or the interpretation of either. A guest reporting a different version is refused when it loads rather than being read as garbage.

The check is exact equality in both directions, which is the point. A host that silently accepted a newer guest would honour the parts of its contract it recognised and ignore the rest, and the one it ignored would be a requirement the guest cannot work without.