Swift Package Index

WAKit

https://github.com/akkyie/WAKit.git

WebAssembly Runtime written in Swift.


Compatibility

  • 0.0.1 and master
    5.3
    5.2
    5.1
    5.0
    4.2
  • 0.0.1 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS

WAKit

GitHub Workflow Status

A WebAssembly runtime written in Swift.

🚧 Highly experimental. Do not expect to work.

Usage

Command Line Tool

$ swift build # or prefix `swift run` before the command below
$ # Usage: wakit run <path> <functionName> [<arguments>] ...
$ wakit run Examples/wasm/fib.wasm fib i32:10
[I32(89)]

As a Library

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/akkyie/WAKit", .branch("master")),
],

Development

$ make bootstrap  # Install tools through Mint
$ make generate   # Run Sourcery to generate source code from templates
$ make build      # or `swift build`