Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there a Rust build for aarch64-linux-android

Tags:

android

rust

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?

like image 412
llogiq Avatar asked Sep 09 '17 09:09

llogiq


1 Answers

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).

like image 131
Grégory OBANOS Avatar answered Nov 10 '22 18:11

Grégory OBANOS