https://source.android.com/docs/setup/build/rust/building-rust-modules/overview
https://docs.rs/jni/0.19.0/jni/#getting-started
URL: https://sal.dev/android/intro-rust-android-uniffi/
The star of the show is Mozilla’s UniFFI library that does a lot of the hard work. A high level view is that it generates Rust and Kotlin1 that are made for each other. That way your Kotlin code can invoke the Rust methods without worrying about Foreign Function Interface (FFI) for talking cross-language.
URL: https://softwarepatternslexicon.com/patterns-rust/19/2/