-
Notifications
You must be signed in to change notification settings - Fork 789
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't handle multiple output using wasmer. #1067
Comments
Looking forward to Wasmer integrating the multi-value proposal! Any updates on this? |
We are working on it. It should land soon :-). |
@syrusakbary @Hywan |
In which branch is the work in progress ? |
|
The main reason this is taking a bit more than expected is because one of the backends that we are using (cranelift) doesn't handle well the System-V ABI for doing transparent native calls between the host and the wasm (without trampolines). Here's the link if you would like to get more info: |
This should be solved in the refactor :) |
@syrusakbary I assume this issue has been resolved in the refactor. But I wanted to know |
@AchalaSB According to the docs: the environment variable RUSTFLAGS can be used to pass options for code generation to the Rust compiler. These flags will affect all compiled crates. So
can help you. P.S. Also it may be usefull to use build.rustflags |
@michaelvoronov Nope this command won't work.
but wasm file is broken, when I tries to open wasm file its shown errors
|
Closing issue since multivalues is now fully supported in Wasmer :) |
Hi,
It would be nice if we are able to return multiple output from source code through wasmer.
(wasm is currenlty accepting single output and they are working on multi-value output)
Tryed to return multiple result using go-wasmer. Here is sample code
When I try to call test function from wasmer
It is returning result as 0. And if I call sub_main function
It is returning error
The text was updated successfully, but these errors were encountered: