Android is a mobile operating system built on top of the Linux kernel.
This target is cross-compiled from a host environment. Development may be done from the source tree or using the Android NDK.
Android targets support std. Generated binaries use the ELF file format.
Rust will support the most recent Long Term Support (LTS) Android Native Development Kit (NDK). By default Rust will support all API levels supported by the NDK, but a higher minimum API level may be required if deemed necessary.
To build Rust binaries for Android you'll need a copy of the most recent LTS edition of the Android NDK. Supported Android targets are:
The riscv64-linux-android target is supported as a Tier 3 target.
A list of all supported targets can be found here
riscv64-linux-android target requires the following architecture features/extensions:
c(compressed instruction set)
m(multiplication and division)
Zba(address calculation instructions)