You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A WebAssembly runtime written in Swift. Originally developed and maintained by [@akkyie](https://github.com/akkyie).
6
-
7
-
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.
8
-
9
-
It also has rudimentary support for [WASI](https://wasi.dev) 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.
5
+
**WasmKit** is a standalone WebAssembly runtime written in Swift.
10
6
11
7
## Usage
12
8
13
9
### Command Line Tool
14
10
11
+
WasmKit provides a command line tool to run WebAssembly binaries compliant with WASI.
12
+
15
13
```sh
16
-
$ # Usage: wasmkit-cli run <path> <functionName> [<arguments>] ...
17
-
$ swift run wasmkit-cli run Examples/wasm/fib.wasm fib i32:10
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.
24
+
You can use WasmKit as a [Swift Package Manager](https://www.swift.org/documentation/package-manager/) dependency by adding the following to your `Package.swift` file:
0 commit comments