What problem does it solve?
This Skill enables developers to compile Rust code into Android native libraries (.so) and integrate them into Android projects via Gradle JNI, streamlining cross-platform native development and performance-sensitive modules.
Core Features & Use Cases
- Cross-compile Rust crates for Android targets (aarch64-linux-android, armv7-linux-androideabi, x86_64-linux-android, i686-linux-android) and produce stable .so artifacts.
- Build and link native Rust libraries using cargo alongside the Android NDK toolchain, with a standard entrypoint (:core:engine:buildRustNativeLibs) registered by the ripdpi Android convention plugin.
- Integrate the resulting libraries into an Android app via the Gradle jniLibs mechanism for seamless runtime loading and packaging.
Quick Start
Run the Gradle task :core:engine:buildRustNativeLibs to compile the Rust libraries and generate the Android-compatible .so files.