Recently I got a new smartphone with fairly beefy specs, so wanting to play around with Rust on the go I installed Termux and tried to rustup-init. However, this fails:
info: syncing channel updates for 'stable-aarch64-linux-android'
info: latest update on 2017-08-31, rust version 1.20.0 (f3d6973f4 2017-08-27)
error: target not found: 'aarch64-linux-android'
$
Is there another way to get a rust environment on android?
Sadly rustup won't work on android.
You can manage to install cargo and rustc using Termux "its-pointless (live_the_dream)" community repository.
Also if you have rustup already installed, rm .cargo
will remove the stub (which otherwise interferes with calling cargo
or rustc
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With