Allow specifying custom distribution for `cargo` and `rustup`
Right now the plugin requires cargo
and rustup
to be preinstalled as part of global environment (and included in PATH
).
In our project we are using Hermit to bootstrap local environment and distribute executables: https://cashapp.github.io/hermit/.
It would be very handy to be able to specify custom destributions for cargo
and rustup
, a Gradle DSL for that could look something like this:
// build.gradle.kts
val hermitDir = rootDir.parentFile.resolve("bin")
cargo {
cargoPath = hermitDir.resolve("cargo")
rustupPath = hermitDir.resolve("rustup")
}
Edited by Kirill Zhukov