Using Rust in Your Next KMP App
summary
Rust gets integrated into a Kotlin Multiplatform app to move performance‑sensitive logic into a safe native layer, using rustup and cargo to build a static lib, Kotlin/Native C interop plus the Android NDK and JNI to bridge JVM code, and Xcode to link the iOS framework. The demo compiles for four Android ABIs and three iOS targets, required copying liḃshared.so into jniLibs, and wires a simple add_numbers function end‑to‑end; native breakpoints hit in Rust but continuation is limited, and unsafe glue is necessary for FFI.
AI-written summary · about
chapters (11)
- 0:00Rust in KMP apps
- 2:07Why choose Rust
- 7:45Simple Rust library
- 14:52Kotlin Multiplatform config
- 18:02Rust to iOS bridge
- 20:32Android native library
- 25:49JNI bridge for Android
- 28:41Live calculator demo
- 31:29Rust worth the effort
- 33:17Debug Rust in Xcode
- 35:26Rust getting started
related talks
43mOxidize Your Kotlin by Adding Some Rust
39mSeamless Multiplatform – Kotlin-Rust-Multiplatform?!
37mSharing Code between iOS & Android with Rust
40mKMP with non-Kotlin languages
29mKMP for Mobile Developers
19mHow To Integrate Rust Into A React Native App
30mSharing Code between iOS & Android with Rust
30mShipping production ready Rust for Android
