[−][src]Function sc_executor_wasmi::create_runtime
pub fn create_runtime(
code: &[u8],
heap_pages: u64,
host_functions: Vec<&'static dyn Function>,
allow_missing_func_imports: bool
) -> Result<WasmiRuntime, WasmError>
Create a new WasmiRuntime
given the code. This function loads the module and
stores it in the instance.