Add readme.

This commit is contained in:
yuroitaki
2025-10-08 18:58:05 +08:00
parent bb4868aeb3
commit d5cfbae2cc
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
# Info
This crate builds a wasmtime binary to be run in iOS. The binary loads and run a wasm component model plugin. UniFFI is used to generate Swift bindings and allow the binary's future to be driven by iOS' async executor.
# Step
1. Build this crate by running [build.sh](build.sh). The build script assumes the following to be available.
- `aarch64-apple-ios-sim`, `aarch64-apple-ios` rust targets
- `xcodebuild` CLI tool
2. Drag and drop the `wasmtime_host.xcframework/`, `uniffi/` built into Xcode.

View File

@@ -0,0 +1,8 @@
# Info
This crate builds a wasm component model plugin. It has an async main function that calls some host functions.
# Step
1. Build this crate by running [build.sh](build.sh). The build script assumes the following to be available.
- `wasm32-unknown-unknown` rust target
- [`wasm-tools`](https://github.com/bytecodealliance/wasm-tools)
2. Drag and drop the `wasmtime_plugin_component.wasm` built into Xcode.