Skip to main content

host_import_signatures

Function host_import_signatures 

Source
pub fn host_import_signatures() -> Vec<(&'static str, Vec<u8>, Vec<u8>)>
Expand description

Every host import as (name, params, results), in canonical order — the SHAPE of the ABI, not just its spelling.

host_import_names froze the names, and a name is the half that a rename breaks loudly. The other half — how many arguments an import takes and what it gives back — was written down three times in two crates and read by no test at all, so changing one host’s arity left the emitted module and its hand-written JS host disagreeing, and the module simply failed to instantiate with nothing to point at.