Open
Description
At the moment setting up an android build from Rust / cargo is a bit of a pain. There's a lot of manual setup involved and there are fundamental limitations to some of the core rust tools that would need to be addressed. To address some of these issues we've tried to make some steps ourselves;
- android-sdkmanager-rs We created an easy way to set up the android toolchain
- android-ndk-rs We've made heavy contributions to android-ndk-rs to help improve and evolve it and make it nicer to use
Next steps
However, to take some of the next steps it would be nice to see progress from the cargo core team to make it able to build and run apks directly from cargo
instead of requiring intermediate tooling.
- Stabilize -Zmultitarget , this is required because apks can host several different target architectures at once
- Implement Allow for a way to package and sign executables rust-lang/cargo#10430, this would be required to replace
cargo-apk
- Tracking Issue for multidep rust-lang/cargo#10030
- Tracking Issue for RFC 3028: Allow "artifact dependencies" on bin, cdylib, and staticlib crates rust-lang/cargo#9096
Ideally I would love to see the rust workflow for building and running android applications to be as simple as:
cargo build --target ... --target ...
cargo run --device ??
Metadata
Metadata
Assignees
Labels
No labels