Compile Swift to Wasm WASI
Thanks to the great work of Swift WASM we can now compile Swift to WebAssembly WASI.
Wasienv makes very easy to get started with Swift and WebAssembly.
You will need the latest version of version of Wasienv installed.
If you don't have wasienv installed in your system, or want to upgrade it please follow the instructions here
Once that's done, just create an example Swift file:
Now let's Compile it!
Once the program finishes, you will have a new example.wasm
file ready to be executed with your favorite WebAssembly runtime!
Last updated