Skip to main content

execute_wasm_export

Function execute_wasm_export 

Source
pub fn execute_wasm_export(
    module: &WasmParsedModule,
    export_name: &str,
    args: &[i32],
    config: &WasmSandboxConfig,
) -> Result<WasmExecutionOutput, WasmDynamicError>
Expand description

Executes an exported WebAssembly function inside a fuel-metered, memory-bounded sandbox.

§Arguments

  • &WasmParsedModule - Validated .wasm module.
  • &str - Exported function name (e.g. "euv_render", "euv_on_event", "euv_abi_version").
  • &[i32] - Positional i32 arguments passed to the export.
  • &WasmSandboxConfig - Fuel and memory limits.

§Returns

  • Result<WasmExecutionOutput, WasmDynamicError> - Execution output including emitted native UI spec or bundle.