Can I run embedded wasmer on a wasm client? #2617
Replies: 2 comments
-
Seconding this, any way to get wasmer working as embedded library when targeting |
Beta Was this translation helpful? Give feedback.
-
tldr: I think that this is possible but painful and requires an overhaul of the If you are working with I saw in-tree that wasmer/api/src/js was recently added so that This only worked for I did not want to use a web worker at this stage, so I had to work around a few things:
To get this to work, I had to build the I hacked out a patch and an example repository but I am not maintaining or working with that library. It does not properly handle results returned from |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
My environment is webassembly itself (wasmtime). I write programs in rust, compile them to
wasm32-unknown-unknown
and then execute them. This flow works fine.But now I need to write a program which can take another wasm program as an input, execute it and process the result. Such a wasmception!
How could I achieve that?
Additional details
I tried to compile hello_world to
wasm32-unknown-unknown
, but it looks like it can't be compiled that way.Beta Was this translation helpful? Give feedback.
All reactions