Search Gradle plugins

org.mozilla.rust-android-gradle

A plugin that helps build Rust JNI libraries with Cargo for use in Android projects.

https://github.com/mozilla/rust-android-gradle

Sources: https://github.com/mozilla/rust-android-gradle.git

Version 0.9.0 (latest)

Created 16 August 2021.

A plugin that helps build Rust JNI libraries with Cargo for use in Android projects.

Add this plugin to your build using the plugins DSL:

plugins {
  id("org.mozilla.rust-android-gradle") version "0.9.0"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("org.mozilla.rust-android-gradle:org.mozilla.rust-android-gradle.gradle.plugin:0.9.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("org.mozilla.rust-android-gradle")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("org.mozilla.rust-android-gradle:org.mozilla.rust-android-gradle.gradle.plugin:0.9.0")
      }
    }
    
    apply(plugin = "org.mozilla.rust-android-gradle")
  • Applying plugins to all subprojects .