Function sc_executor_wasmtime::create_runtime[][src]

pub fn create_runtime(
    blob: RuntimeBlob,
    config: Config,
    host_functions: Vec<&'static dyn Function>
) -> Result<WasmtimeRuntime, WasmError>
Expand description

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