pub fn check_stream_interface(
name: &str,
version: &str,
contracts: Option<&WitContracts>,
) -> Result<(), RuntimeError>Expand description
Checks a runtime: driver artifact’s imports against the stream interface this host serves.
Refuses a component importing any murmur:text/* instance, or any murmur:stream/* instance
other than exactly WIT_STREAM_EVENTS_IFACE: the host serves neither, so the driver would
fail to instantiate on its first turn. contracts is what
murmur_artifact::extract_wit_contracts read out of the driver’s wasm; None, and a
component importing neither package, pass.