referrerpolicy=no-referrer-when-downgrade

create_runtime_from_artifact_bytes

Function create_runtime_from_artifact_bytes 

Source
pub unsafe fn create_runtime_from_artifact_bytes(
    compiled_artifact_blob: &[u8],
    executor_params: &ExecutorParams,
) -> Result<WasmtimeRuntime, WasmError>
Expand description

Constructs the runtime for the given PVF, given the artifact bytes.

§Safety

The caller must ensure that the compiled artifact passed here was:

  1. produced by prepare,
  2. was not modified,

Failure to adhere to these requirements might lead to crashes and arbitrary code execution.