example-package-fisheryates icon indicating copy to clipboard operation
example-package-fisheryates copied to clipboard

Add support for SwiftWasm

Open yonihemi opened this issue 5 years ago • 0 comments

Use WASILibc module for random when running in SwiftWasm.

How to run

git clone https://github.com/apple/example-package-dealer.git
  • Using the SwiftWasm toolchain, build the package:
cd example-package-dealer
swift build -c release --triple wasm32-unknown-wasi
  • Install a runtime such as Wasmer.
  • Run the WebAssembly module:
wasmer .build/wasm32-unknown-wasi/release/Dealer.wasm

yonihemi avatar Apr 07 '21 03:04 yonihemi