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
@jeffvanderstoep sick! 100% what I've been looking for
@jeffvanderstoep This looks amazing, thank you for releasing it.
@jeffvanderstoep Great link, thank you for posting.
@jeffvanderstoep Do you see a feasible development of #Android apps in #Rust at the horizon?
#rustlang
@jeffvanderstoep Been learning rust for a ~month now, and love it so far.
@jeffvanderstoep I wanted to report that memory layout figures are not fully visible in dark mode, but somebody has already fixed it. Thanks!
@jeffvanderstoep The most clear and crispy tutorial for Android...Ahh NOT EVEN Android developers!
I've just finished this Rust course (except for the Android parts). It really takes 4 days, but at least it's comprehensive!