~/talk

Shipping production ready Rust for Android

Talkat Droidcon London 2023 · 2023-10-26..10-27· [rust, android]
slides:none on file

Rust eliminates most memory‑safety bugs and industry teams report ~65–70% of severe vulnerabilities are memory related, so Mozilla compiles Rust into Android native libraries, merges crates into a Megazord to avoid duplicate std libs, uses a Rust Android Gradle plugin to build, and generates safe JNI glue from a single UDL with an open source tool called UniFi. The system ships in Firefox Sync and works but requires careful handling of threads, forbids bundling async runtimes (calls block the caller), and still causes developer friction crossing between Kotlin/JVM and native layers.

AI-written summary · about

  1. 0:00Introduction to Rust on Android
  2. 1:31What is Rust and why it matters
  3. 8:36Memory safety in Rust vs industry
  4. 10:22When to use Rust in Android
  5. 12:49How to integrate Rust in Android
  6. 13:31Problems with Rust integration
  7. 15:39Megazord and Rust libraries
  8. 16:21The FFI sandwich explained
  9. 20:53Cotlin layer for Rust FFI
  10. 22:20Solving FFI complexity with UniFi
  11. 25:11Mozilla's Rust integration system
  12. 26:58Limitations of Rust in Android
  13. 28:50Threading and async challenges
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.