Refine README

This commit is contained in:
WildCat 2022-01-09 11:34:25 +08:00
parent d1c8b0fd1e
commit fe37f73103
2 changed files with 23 additions and 1 deletions

View File

@ -1,7 +1,24 @@
# Fullstack Examples of uniffi-rs
# Fullstack Examples of UniFFI-rs
Full documentation of the UniFFI crates can be found [here](https://mozilla.github.io/uniffi-rs/Overview.html).
Working in progress
## Prerequisites
### iOS
1. Latest Xcode (13.x)
1. Rust toolchains for iOS: `rustup target add aarch64-apple-ios-sim --toolchain nightly && rustup target add aarch64-apple-ios x86_64-apple-ios`. Check installaion:
```shell
$ rustup target list --installed | grep ios
aarch64-apple-ios
aarch64-apple-ios-sim
x86_64-apple-ios
```
Please note that `aarch64-apple-ios-sim` requries the nightly toolchain (<https://doc.rust-lang.org/nightly/rustc/platform-support/aarch64-apple-ios-sim.html>).
1. Install `uniffi-bindgen`: `cargo install uniffi_bindgen`, details: <https://mozilla.github.io/uniffi-rs/tutorial/Prerequisites.html>
## License
MIT

View File

@ -2,11 +2,16 @@
A shared library for the todo list application, which can be used for Android, iOS and other platforms.
## Prerequisites
Please refer to the root [README.md](../README.md).
## Binary Size
### iOS
- Generate binaries, xcframework and Swift binding: `make all`
#### With Rust binary: 503K
```shell