Skip to main content

check_driver_interface

Function check_driver_interface 

Source
pub fn check_driver_interface(
    transport: &str,
    name: &str,
    version: &str,
    contracts: Option<&WitContracts>,
) -> Result<(), RuntimeError>
Expand description

Checks the inference driver’s exports against the transport that names it.

Under process the driver’s exports must include PROCESS_DRIVER_IFACE under that exact name — a neighbouring version does not satisfy it, and other instances alongside it are ignored. Under http it must export no version of the process interface. contracts is what murmur_artifact::extract_wit_contracts read out of the driver’s wasm; None (a core module, or bytes it could not read) counts as exporting nothing. Any other transport passes.