# mozilla/rust-android-gradle

Repository: https://github.com/mozilla/rust-android-gradle
Canonical: https://ross.abutalabs.com/products/rust-android-gradle
Language: Kotlin
License: Apache-2.0
License Family: permissive
Last push: 2026-08-21T22:25:33+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 66, longevity 100
- inputs: {"age_days": 2833, "days_push": 12, "days_rel": 12, "gap_med": 312.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1274, forks 95 (observed 2026-08-28T04:04:12.830507+00:00)

## What it is
A Gradle plugin by Mozilla that cross-compiles Rust Cargo projects for Android targets and integrates the resulting native libraries into an Android app's jniLibs. It is written in Kotlin and published to the Gradle plugin portal.

## Use cases
- build rust code for android from gradle
- cross compile cargo project to android targets
- link rust native library into android app via jni
- integrate cargo build into android gradle build
- build rust for arm64 and x86 android

## When to choose
- you have an Android app with a Rust native library built by Cargo
- you want cargo builds to run automatically as part of Gradle builds

## When to avoid
- your project does not use Gradle or Android
- you build Rust for desktop or iOS only

## Facets
- artifact type: plugin
- maturity: active
- function: build-tool, compiler
- domain: mobile-development, developer-tools, android-tools
- platform: rust, jvm, cross-platform
- tags: gradle-plugin, cargo, jni, ndk, rust-android, cross-compilation, android

## Member repositories
- mozilla/rust-android-gradle (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:12.830507+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:03:08.566090+00:00, confidence not recorded.
  - readme: https://github.com/mozilla/rust-android-gradle (fetched 2026-08-28T04:04:12.830507+00:00, sha 75cd14962c43)
- Data as of 2026-08-30T08:39:29.467469+00:00.
