You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm fairly new to this but am really excited about the idea of using wasmer as an embedded scripting language for game engines and embedded systems.
How can I access the symbols that I export as part of my embedded runtime in other languages that will compile down to WASM?
As an example:
I create a wasmer runtime as part of my rust executable. In that executable I add foo() and bar() to the runtime as function that call into the native code.
Now let's say another user wants to write a program that will run within my WASM environment in C#.
Here are my Questions
How can that user make use of the symbols that I added to the runtime?
Do I need to provide library declarations (similar to a C++ header file) to that user so their tooling (e.g. Visual Studio, or their compiler) knows what is available?
Do I need to create a WASM library that wraps my API so they have something to link against?
Is there any automated tooling for exporting language symbols from a WASM binary?
This might be similar to what is being asked in #3206, but I'm not sure.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm fairly new to this but am really excited about the idea of using wasmer as an embedded scripting language for game engines and embedded systems.
How can I access the symbols that I export as part of my embedded runtime in other languages that will compile down to WASM?
As an example:
I create a wasmer runtime as part of my rust executable. In that executable I add
foo()
andbar()
to the runtime as function that call into the native code.Now let's say another user wants to write a program that will run within my WASM environment in C#.
Here are my Questions
This might be similar to what is being asked in #3206, but I'm not sure.
Beta Was this translation helpful? Give feedback.
All reactions