Function extism_runtime::sdk::extism_plugin_new
source · #[no_mangle]
pub unsafe extern "C" fn extism_plugin_new(
ctx: *mut Context,
wasm: *const u8,
wasm_size: Size,
functions: *mut *const ExtismFunction,
n_functions: Size,
with_wasi: bool
) -> PluginIndexExpand description
Create a new plugin with additional host functions
wasm: is a WASM module (wat or wasm) or a JSON encoded manifest
wasm_size: the length of the wasm parameter
functions: an array of ExtismFunction*
n_functions: the number of functions provided
with_wasi: enables/disables WASI