mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-20 20:26:32 +00:00
fix(runtime-c-api) Use get_wasi_version
in non-strict mode.
This commit is contained in:
@ -117,7 +117,7 @@ pub unsafe extern "C" fn wasmer_wasi_get_version(module: *const wasmer_module_t)
|
||||
|
||||
let module = &*(module as *const Module);
|
||||
|
||||
match wasi::get_wasi_version(module) {
|
||||
match wasi::get_wasi_version(module, false) {
|
||||
Some(version) => match version {
|
||||
wasi::WasiVersion::Snapshot0 => Version::Snapshot0,
|
||||
wasi::WasiVersion::Snapshot1 => Version::Snapshot1,
|
||||
|
Reference in New Issue
Block a user