cargo-ndk icon indicating copy to clipboard operation
cargo-ndk copied to clipboard

Compile Rust projects against the Android NDK without hassle

Results 16 cargo-ndk issues
Sort by recently updated
recently updated
newest added

Hello, first of all thanks for amazing project! I wanted to hug you all after hitting the ndk and gcc linking issue...

bug
help wanted

Hi, I'm trying to build my project, but I'm getting errors about missing `TargetConditionals.h` and `stdio.h`. Here is the command I'm using: `cargo ndk -t arm64-v8a -p 28 -o ./sdk/src/main/jniLibs...

So I accidentally found that `cargo-ndk` strips the binaries by default. I am wondering what's the rationale for this decision. I tried looking for previous discussions related to this but...

enhancement

It looks like cargo-ndk always build from current directory. Even if I pass `--manifest-path=` it always throws `Failed to load Cargo.toml in current directory.` command: ```sh cargo ndk -t arm64-v8a...

https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/Ndk#getDebugSymbolLevel() These are extremely helpful for debugging apps in the play console. It also gives you a warning if you upload an app bundle that contains native libraries that don't...

There are still some environment variables related to clang-sys (a dependency of bindgen) that might be needed for configuration. * `clang-sys` [Environment Variables](https://github.com/KyleMayes/clang-sys?tab=readme-ov-file#environment-variables)

https://github.com/bbqsrc/cargo-ndk/issues/143#issuecomment-2423024497 Thank you

On load, can we use CARGO_NDK_OUTPUT_PATH to set the default output path? I use a custom output path and it's annoying to type every time into the cli. It'd be...

enhancement

The `cargo publish` command performs a compilation step; failure to compile will result in a failed package publication. How should I configure `~/.cargo/config.toml` to allow both `cargo publish` and `cargo...

I am trying to get some of my project level environment vars set up in a `.cargo/config.toml` and I am not seeing it being loaded correctly when using `cargo ndk`....