The best way to return message from external environment to wasm code #2879
Unanswered
changyc9928
asked this question in
Q&A
Replies: 1 comment
-
You'll need to have the WASM code pass a pointer (and length) to the host, and have the host write to the wasm memory. You can either do that manually, or e.g. use wit-bindgen. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm stuck on returning data from the Rust VM to the wasm code since Rust can only return an integer to the wasm code. So, I'm writing here to ask whether there is any good solution to allow me to return any complex data from an external environment back to the wasm code when the exported function is called in the VM?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions