The Android Team has open sourced our internal Rust Training! It's a four day course covering the full spectrum of Rust, from basic syntax to advanced topics like generics and error handling. It also includes Android-specific content on the last day such as:
- Building Android components in Rust.
- AIDL servers and clients.
- Interoperability with C, C++, and Java.

https://google.github.io/comprehensive-rust/

Welcome to Comprehensive Rust 🦀 - Comprehensive Rust 🦀

@jeffvanderstoep Is any of that Android-specific material relevant to application developers who must use the NDK for native code, or only to those working on the platform itself?
@matt @jeffvanderstoep You can write services in rust and consume them from app code in Kotlin (or Java too). About a year ago I had a consulting gig working an internal launcher - I most likely would have considered using Rust instead of Kotlin at the time for some of these shared services.
@Kents @jeffvanderstoep A complete working example of that, packaged in a way that would be accepted by Google Play, would be super useful. Thanks!
@matt @jeffvanderstoep I'm not sure an example exists - if you wanted to write one start with a repo like this one and replace these Kotlin implementations with Rust https://github.com/LiteKite/Android-AIDL/blob/main/ConnectorLib/ConnectorLib/src/main/kotlin/com/litekite/connector/controller/BankServiceConnector.kt
Android-AIDL/BankServiceConnector.kt at main · LiteKite/Android-AIDL

A sample that makes Inter Process Communication (IPC) via Android Interface Definition Language (AIDL) - Android-AIDL/BankServiceConnector.kt at main · LiteKite/Android-AIDL

GitHub