Function wasmer_wasix::run_wasi_func_start
source · pub(crate) fn run_wasi_func_start(
func: &Function,
store: &mut impl AsStoreMut,
) -> Result<(), WasiRuntimeError>
Expand description
Run a main function.
This is usually called “_start” in WASI modules. The function will not receive arguments or return values.
An exit code that is not 0 will be returned as a WasiError::Exit
.