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:
- produced by
prepare, - was not modified,
Failure to adhere to these requirements might lead to crashes and arbitrary code execution.