This is a simple example on how to create a WebAssembly native executable on linux using wasmer.
- wasmer
- Node.js + PNPM (or else you can use NPM or Yarn)
Clone this repository and install the dependencies:
git clone https://github.com/ubermanu/web-assembly-to-native-exe
cd web-assembly-to-native-exe
pnpm install
Build the WebAssembly file into a native executable:
make build
Run the executable:
make run