Example of how to use wasm2lua to embed typical programs on Windows.
This embeds:
Make sure you have the wasi-sdk installed, with the path at %WASI_SDK_PATH%
Get it from the releases (mingw)
- Run
build.bat. - Edit
build.batto comment out the line with lua-webidl. (Put 'rem' or '::' before it) - Run it again
- Lua should be generated in
waddon.lua - See the src-lua folder for example usage from lua.