Function sc_executor_wasmtime::create_runtime
source ยท pub fn create_runtime<H>(
blob: RuntimeBlob,
config: Config,
) -> Result<WasmtimeRuntime, WasmError>where
H: HostFunctions,
Expand description
Create a new WasmtimeRuntime
given the code. This function performs translation from Wasm to
machine code, which can be computationally heavy.
The H
generic parameter is used to statically pass a set of host functions which are exposed
to the runtime.