Skip to content

Plugin doesn't respect CARGO_HOME environment variable #32

@cyruspyre

Description

@cyruspyre

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

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions