Function wasmer_wasix::utils::get_wasi_version

source ยท
pub fn get_wasi_version(module: &Module, strict: bool) -> Option<WasiVersion>
Expand description

Detect the version of WASI being used based on the import namespaces.

A strict detection expects that all imports live in a single WASI namespace. A non-strict detection expects that at least one WASI namespace exists to detect the version. Note that the strict detection is faster than the non-strict one.