wasmerio/wasmer-ruby

WASI / import function support ?

ljulliar opened this issue · 4 comments

I have a number of import statement in my WASM code to declare WASI functions and wahen I instantiate Wasmer and try to execute, I get the following error

RuntimeError: Failed to instantiate the module:
    5 link errors:
(1 of 5) Import not found, namespace: wasi_unstable, name: args_sizes_get
(2 of 5) Import not found, namespace: wasi_unstable, name: args_get
(3 of 5) Import not found, namespace: wasi_unstable, name: fd_write
(4 of 5) Import not found, namespace: wasi_unstable, name: fd_read
(5 of 5) Import not found, namespace: wasi_unstable, name: proc_exit

Wasmer is supposed to support WASI so I was wondering if this could be something to modify in ruby-ext-wasm to "make the connection" with imported functions ? (Not specifically WASI functions by the way....)

Thanks!

Hywan commented

Sorry for the late reply. Wasmer supports WASI but not the integration inside Ruby. It'll come in the next release. Thanks for your patience.

Hywan commented

WASI support has been introduced in #48. Closing this issue :-).

Great. Thanks!