https://github.com/siketyan/iosrs
An example iOS App with Swift using Rust as a static library.
https://github.com/siketyan/iosrs
example ffi ios-app rust-library swiftui
Last synced: 10 months ago
JSON representation
An example iOS App with Swift using Rust as a static library.
- Host: GitHub
- URL: https://github.com/siketyan/iosrs
- Owner: siketyan
- License: apache-2.0
- Created: 2021-09-07T12:51:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-07T12:56:57.000Z (over 4 years ago)
- Last Synced: 2025-03-25T00:56:41.447Z (10 months ago)
- Topics: example, ffi, ios-app, rust-library, swiftui
- Language: Rust
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🦀 iosrs
An example iOS App with Swift using Rust as a static library.
## 🚚 Prerequisites
- Rust Toolchain v1.53.0+
- cargo-lipo
- Xcode v12.5.1+
## 📦 Usage
1. In `lib` directory, build the static library using cargo-lipo.
```
$ cargo lipo --release
```
2. Open `app` directory with Xcode, then build the project.
3. Try on your an iOS device or an emulator!
## 🔗 References
- Building and Deploying a Rust library on iOS
https://mozilla.github.io/firefox-browser-architecture/experiments/2017-09-06-rust-on-ios.html