diff --git a/crates/wasmtime-host/README.md b/crates/wasmtime-host/README.md new file mode 100644 index 000000000..14118343b --- /dev/null +++ b/crates/wasmtime-host/README.md @@ -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. diff --git a/crates/wasmtime-plugin/README.md b/crates/wasmtime-plugin/README.md new file mode 100644 index 000000000..ce1a3b410 --- /dev/null +++ b/crates/wasmtime-plugin/README.md @@ -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. \ No newline at end of file