WasmKit is a standalone and embeddable WebAssembly runtime implementation written in Swift.
The best way to learn how to use WasmKit is to look at the Examples directory.
WasmKit provides a command line tool to run WebAssembly binaries compliant with WASI.
$ git clone https://github.com/swiftwasm/WasmKit.git $ cd WasmKit $ swift run wasmkit-cli run ./Examples/wasm/hello.wasm Hello, World!
You can use WasmKit as a Swift Package Manager dependency by adding the following to your Package.swift
file:
dependencies: [ .package(url: "https://github.com/swiftwasm/WasmKit.git", from: "0.1.0"), ],
You can find API documentation on the Swift Package Index.
WasmKit engine works on all major platforms supported by Swift. It is continuously tested on macOS, Ubuntu, and Windows, and should work on the following platforms:
The minimum supported Swift version of WasmKit is 5.8, which is the version used to bootstrap the Swift toolchain in ci.swift.org.
To run the WasmKit test suite, you need to checkout the test suite repositories first.
# Checkout test suite repositories $ ./Vendor/checkout-dependency # Run tests $ swift test
This project was originally developed by @akkyie, and is now maintained by the community.
On a 2020 Mac mini (M1, 16GB RAM) with Swift 5.10. Measured by swift package resolve && swift package clean && time swift build --product PrintAdd
. ↩
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4