pub fn get_version(module: Module, strict: Boolean) -> Version
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 exits to detect the version. Note that the strict detection is faster than the non-strict one.