Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can WAX be used with WASI (namely wasi_snapshot_preview1)? #31

Open
CRTandKDU opened this issue May 27, 2024 · 0 comments
Open

Can WAX be used with WASI (namely wasi_snapshot_preview1)? #31

CRTandKDU opened this issue May 27, 2024 · 0 comments

Comments

@CRTandKDU
Copy link

While trying to run the WASM produced from the helloworld.wax example with WASMER (wasmer helloworld.wasm) we get the expected error:

error: Unable to instantiate the WebAssembly module
╰─▶ 1: Error while importing "console"."log": unknown import. Expected Function(FunctionType { params: [I32, I32], results: [] })

Is it possible to have WAX use fd_write from WASI instead of console.log? Please advise on what needs to be changed.
Thanks in advance,
JMC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant