Woah, what a restraint… using android as a dev os… Anyway, I used to use termux alot when I was frequently away from my computer and so I installed Arch linux for it. I managed to install rust with the standard rustup.rs installation and just had to re-install gcc. There might be more things that you have to install to make it work, seeing as this wasn’t either a clean installation of arch or termux, but there shouldn’t be too many things. I mean, I got C# to compile on this thing so it can’t be too hard . Anyway something that I noticed is that the installation of rustup/cargo will not update your current
$PATH and will also have some problems trying to create a new project. I ended up having to do this for a new cargo project:
USER=user bash -c "cargo new test_project"
Edit: here’s proof of the compilation:
I don’t have the sdk or ndk installed for this and it produces a linux binary, not an apk. For compiling an apk, I don’t think it’s possible with the host being android. At least not without traversing the labyrinth android native development on rust already is.