Currently, the plugin looks for cargo executable using a hardcoded path, which fails for users who have a custom installation path specified via the CARGO_HOME environment variable.
I believe the fix is trivial and just involves resolving cargo using CARGO_HOME or falling back to hardcoded path if CARGO_HOME doesn't exist.
Relevant line:
https://github.com/andrefigas/RustJNI/blob/36ec8def4fd18db42c13f2d404e565227826cbd7/gradle-plugin/src/main/kotlin/io/github/andrefigas/rustjni/RustJNI.kt#L77
Currently, the plugin looks for
cargoexecutable using a hardcoded path, which fails for users who have a custom installation path specified via theCARGO_HOMEenvironment variable.I believe the fix is trivial and just involves resolving
cargousingCARGO_HOMEor falling back to hardcoded path ifCARGO_HOMEdoesn't exist.Relevant line:
https://github.com/andrefigas/RustJNI/blob/36ec8def4fd18db42c13f2d404e565227826cbd7/gradle-plugin/src/main/kotlin/io/github/andrefigas/rustjni/RustJNI.kt#L77