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.
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 ??
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;
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
cargoinstead of requiring intermediate tooling.cargo-apkIdeally I would love to see the rust workflow for building and running android applications to be as simple as: