Function tc_executor_wasmtime::create_runtime[][src]

pub fn create_runtime(
    code: &[u8],
    heap_pages: u64,
    host_functions: Vec<&'static dyn Function>,
    allow_missing_func_imports: bool
) -> Result<WasmtimeRuntime, WasmError>

Create a new WasmtimeRuntime given the code. This function performs translation from Wasm to machine code, which can be computationally heavy.