WasmKit

slim

[fork] WebAssembly Runtime written in Swift
kabiroberai/WasmKit

WAKit Icon

WasmKit

A WebAssembly runtime written in Swift. Originally developed and maintained by @akkyie.

Implements all of WebAssembly 2.0 binary parsing and execution core spec, with an exclusion of SIMD instructions. The validation and text format parts of the spec are not implemented yet.

It also has rudimentary support for WASI with only a few WASI imports implemented currently, with a goal of eventual full support for wasi_snapshot_preview1. See WASI module for more details.

Usage

Command Line Tool

$ # Usage: wasmkit-cli run <path> <functionName> [<arguments>] ...
$ swift run wasmkit-cli run Examples/wasm/fib.wasm fib i32:10
[I32(89)]

As a Library

Swift Package Manager

Add the URL of this repository to your Package.swift manifest. Then add the WasmKit library product as dependency to the target you'd like to use it with.

Testing

To run the core spec test suite run this:

$ make spectest   # Prepare core spec tests and check their assertions with WasmKit

Description

  • Swift Tools 5.8.0
View More Packages from this Author

Dependencies

Last updated: Sat Dec 21 2024 15:23:36 GMT-1000 (Hawaii-Aleutian Standard Time)