bytecodealliance/wasmtime-go

Improve wasi support

soulteary opened this issue · 3 comments

Hello maintainer, I don't know if the maintenance team has considered improving the project's support for wasi ? Looks like it hasn't been updated for a while.

https://github.com/bytecodealliance/wasmtime-go/blob/main/wasi.go

In the past six months, the wasi support of wasmer-go has become better. Will it refer to the implementation of functions similar to GenerateImportObject ?

https://github.com/wasmerio/wasmer-go/blob/master/wasmer/wasi.go

Sincerely

Thanks for the report, but do you have a specific issue or problem that can be addressed? If not I'm not sure how best to help with this issue.

Can users refer to wasmer-go and use wasmtime-go invoke wasm program which has the wasi standard?

like this: wasmerio/wasmer-go@49b556b

In the current code, I don’t seem to find an implementation similar to GenerateImportObject function, It may be very troublesome to call the wasi program.

There is a wasi example in the documentation and this crate has its own take on the API for support, inspired by the Rust crate support.

If you've got an issue or a problem I'm happy to help, but otherwise I think the example covers the question here so far.