Skip to main content

load_wasm

Function load_wasm 

Source
pub fn load_wasm(
    path: &Path,
    limits: &WasmLimits,
) -> Result<RuntimePlugin, LoadError>
Expand description

Load a WASM plugin with these limits.

Refused when the file is too large or not valid WASM, when the module imports anything, when its memory starts above the cap, and when its manifest cannot be read within the limits or is not a valid PluginAbi.