swiftwasm / WasmKit

WebAssembly Runtime written in Swift
https://swiftpackageindex.com/swiftwasm/WasmKit/main/documentation/wasmkit
MIT License
226 stars 8 forks source link

global variable initialization isn't allow with throw in swift6 compiler - adds boilerplate main() around the examples showing use of WasmKit #114

Closed heckj closed 2 months ago

heckj commented 2 months ago

I was exploring WasmKit this morning with Xcode 16 beta 5 (Swift 6 compiler), and none of the examples would compile smoothly there. I thought this PR would resolve this for others trying to do the same.