Sharing Code between iOS & Android with Rust
summary
Benchmarks show Rust can be tiny and fast: a CSV-like split/trim/sum example runs near-instant versus Kotlin’s ~1.8s and C++ ~0.1s, and a 27 MB JSON parse is 0.17s JSON parse using 6 MB RAM versus Kotlin’s ~15.9s and 3331 MB; code compiles into a C library for iOS via C ABI + Objective‑C bridge and into Java via JNI/SWIG, and parallelism uses Rayon’s parallel iterators. Rust works and builds cleanly for substantial shared model logic; skip it for trivial JSON-passing-only cases.
AI-written summary · about
chapters (7)
- 0:00Intro
- 3:40Why use Rust
- 7:03What is Rust
- 8:13Rust Language
- 16:50Sharing code between iOS Android
- 22:11Rust Concurrency
- 25:43Rust Features
related talks
37mSharing Code between iOS & Android with Rust
37mUsing Rust in Your Next KMP App
39mSeamless Multiplatform – Kotlin-Rust-Multiplatform?!
30mShipping production ready Rust for Android
28mUsing Rust in your next Flutter SDK
43mOxidize Your Kotlin by Adding Some Rust
19mHow to use a Rust library inside the JVM application
28mRust and Scala, Sitting in a Tree….
