Skip to main content

describe_process_driver_wasm

Function describe_process_driver_wasm 

Source
pub fn describe_process_driver_wasm(
    wasm: &[u8],
) -> Result<Description, RuntimeError>
Expand description

Compiles wasm as a process driver on a fresh engine, instantiates it with no grants, and returns what its describe reports.

For tests and tools that hold a driver’s bytes outside any capsule. It blocks on its own current-thread runtime, so it must not be called from inside one. Errors name the driver as <wasm> with an empty version, since the bytes carry no artifact name.