Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 736 Bytes

File metadata and controls

20 lines (12 loc) · 736 Bytes

Android Rust

https://source.android.com/docs/setup/build/rust/building-rust-modules/overview

Crate jni : Safe JNI Bindings in Rust

https://docs.rs/jni/0.19.0/jni/#getting-started

Running Rust on Android with UniFFI

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.

Integrating Rust with Android (JNI): A Comprehensive Guide

URL: https://softwarepatternslexicon.com/patterns-rust/19/2/