Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this in a state to be used in place of cargo-apk? #141

Open
sinoth opened this issue Sep 21, 2023 · 3 comments
Open

Is this in a state to be used in place of cargo-apk? #141

sinoth opened this issue Sep 21, 2023 · 3 comments

Comments

@sinoth
Copy link

sinoth commented Sep 21, 2023

Currently writing a VR game for the Quest 2 which uses cargo-apk. Saw the deprecation warning and checked out this tool, but there is no documentation for those of us coming from cargo-apk and wildly different tooling / system requirements (like needing the clang toolchain).

Has anyone converted their project over from cargo-apk?

Previously with ndk-glue and cargo-apk, there was no need for gradle but is gradle the recommended way to handle this now? An example: https://github.com/rust-mobile/rust-android-examples/tree/main/na-openxr-info

@dvc94ch
Copy link
Contributor

dvc94ch commented Sep 21, 2023

You always need the clang toolchain to compile c code. We just use your distro's clang instead of the one bundled with the sdk

@sinoth
Copy link
Author

sinoth commented Sep 21, 2023

I'm looking at this as a user of cargo-apk. Cross-compiling Rust to Android from my Windows machine didn't require much past some environment variables pointed to the Android SDK and NDK. In comparison my x doctor is very unhappy.

In any case, I'm a fish out of water here... it seems cargo-apk's method of supplying Android settings via Cargo.toml has also changed, but I can't find documentation for that anywhere. Are there better docs or examples somewhere I'm missing?

@andraantariksa
Copy link

Sadly, this project not on par with cargo-apk. For now (0.2.0) it only supports these arch

Build artifacts for target arch. Can be one of `arm64` or `x64`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants