Function wasmer_wasi::get_wasi_version[][src]

pub fn get_wasi_version(module: &Module, strict: bool) -> Option<WasiVersion>

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 exits to detect the version. Note that the strict detection is faster than the non-strict one.