A plugin for Gradle that provides RustUp, Rustc, and Cargo tasks
This project comprises a powerful and flexible Gradle plugin tailored for Rust development. The plugin integrates key Rust tools - RustUp, Rustc, and Cargo - into the Gradle framework, enabling streamlined and coordinated build processes.
pluginManagement {
repositories {
maven(url = "https://maven.runebox.org/")
gradlePluginPortal()
}
}
root.projectName = "my-rootproj"
plugins {
id("io.runebox.gradle.rust") version "0.1.0"
}
dependencies {
...
}
/*
* The Rust-Gradle-Plugin Config
*/
rust {
module("my-library") {
path = file("src/my-library")
profile = "release
targets = listOf("x86_64", "x86", "arm", "arm_64")
buildType("debug") {
profile = "dev"
}
buildType("release") {
profile = "release"
runTests = true
targets = listOf("arm", "arm64", "x86", "x86_64")
}
}
module("another-rust-module") {
...
}
}