Super simple OTP (Time-based One-Time Password) app showcasing how to build a mobile app core in Rust.




This is a sample app demonstrating an architecture where the core of the mobile app is written in Rust, and the UI is implemented natively using Compose and SwiftUI.
For more details, please refer to the following blog entries:
- Mobile-app core in Rust #1: Overview - typester.dev
- Mobile-app core in Rust #2: Setup environment - typester.dev
- Setup environment by following "Setup environment" entry linked above.
- Follow the platform specific instruction listed below:
cd ./core
./build-android-lib.sh
Once the build completes without errors, you should be able to open the =android= directory in Android Studio and run the app.
cd ./core
cargo lipo --release
cargo build --release --target aarch64-apple-ios-sim
Once this completes without errors, you should be able to open =ios/Auth2.xcodeproj= in Xcode and run the app.
Daisuke Murase [email protected]