Go to file
imWildCat 74b0cab9b5 use record exported types 2023-10-21 06:16:07 -04:00
.github/workflows Use new macros system of Uniffi (#11) 2023-09-20 21:35:44 -07:00
.vscode Update with legacy API demo to say greetings 2022-01-24 10:50:05 +08:00
hello use record exported types 2023-10-21 06:16:07 -04:00
uniffi-bindgen Workspace and modern (#10) 2023-08-20 13:37:03 -07:00
.gitattributes Android example (#2) 2022-03-16 08:40:51 +08:00
.gitignore Workspace and modern (#10) 2023-08-20 13:37:03 -07:00
Cargo.lock bump to 0.25 2023-10-21 05:47:48 -04:00
Cargo.toml bump to 0.25 2023-10-21 05:47:48 -04:00
LICENSE Inital commit 2022-01-08 14:15:24 +08:00
Makefile fix toolchain install 2023-08-09 07:33:57 -07:00
README.md Update README.md 2023-09-20 21:35:31 -07:00

README.md

Fullstack Examples of UniFFI-rs

Full documentation of the UniFFI crates can be found here.

Another demo including building Rust for WASM (WebAssembly): https://github.com/imWildCat/rust-mobile-web-demo

If you find this project useful, please consider support me: https://github.com/sponsors/imWildCat. Thanks!

Questions?

https://github.com/imWildCat/uniffi-rs-fullstack-examples/discussions

Prerequisites

Rust

Please read https://www.rust-lang.org/tools/install.

Android

  1. JDK 11.x, Android SDK and NDK, Android Studio is optional. For more details, please visit .github/workflows/build.yml.
  2. Install Rust toolchains for Android: make prepare-android

iOS

  1. Latest Xcode (14.3)
  2. Rust toolchains for iOS: make prepare-apple or rustup target add aarch64-apple-ios-sim --toolchain nightly && rustup target add aarch64-apple-ios x86_64-apple-ios. Check installaion:
    $ 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).
  3. Install uniffi-bindgen: cargo install uniffi_bindgen, details: https://mozilla.github.io/uniffi-rs/tutorial/Prerequisites.html

Get Started

Hello

Please read hello/README.md.

License

MIT