Open thomaseizinger opened 4 weeks ago
Found something that got me further: https://github.com/mozilla/rust-android-gradle?tab=readme-ov-file#specifying-paths-to-sub-commands-python-cargo-and-rustc.
We can specify: RUST_ANDROID_GRADLE_CARGO_COMMAND
and RUST_ANDROID_GRADLE_RUSTC_COMMAND
.
I am trying to use V2 to build an Android app that embeds a Rust library. NDK and everything is set up but now the build fails with "cargo: cannot find file or directory".
I've added Rust to the
nativeBuildInputs
but perhaps that isn't propagated all the way to the plugin? See https://github.com/firezone/firezone/pull/5647/files#diff-83ff257f624bb4fe99fc0695e3a9e038cb9eabfd5e4b0685cc1d6d765628f7a7R152-R163.Help is much appreciated, I am still learning how Nix works :)
Build log: