Open IgorKhomenko opened 8 months ago
As specified in the externref
crate readme, you must post-process compiled WASM either programmatically or using the CLI tool. This will replace surrogate imports like externref::insert
you're having problems with, with local functions; see here for a more detailed description of what the processor does.
I have a rust module defined like this
and compile it like this
cargo build --target wasm32-wasi --releas
Then, I try to use this module in a host app written in C, but when I compile and run it via
gcc main.c -lwasmedge && ./a.out
, it produces an error:Is there any additional things I need to do to make it works?