Function extism::sdk::extism_plugin_new

source ยท
#[no_mangle]
pub unsafe extern "C" fn extism_plugin_new(
    wasm: *const u8,
    wasm_size: Size,
    functions: *mut *const ExtismFunction,
    n_functions: Size,
    with_wasi: bool,
    errmsg: *mut *mut c_char,
) -> *mut Plugin
Expand description

Create a new plugin with host functions, the functions passed to this function no longer need to be manually freed using

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