-
I want to install the rust compiler and cargo on a-Shell. I'm on an iphone. Is that possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The short answer is no, that's not possible for the time being. The long answer is: a-Shell can run two types of binaries: binaries compiled to Arm64 (native architecture of iPhones and iPads) and binaries compiled to WebAssembly. Before you can run a command, it has to be compiled to either of these formats, which means cross-compiling: compiling a command to a format that is not the format of the machine running the compiler. Depending on how the compile script was coded, this can range from "difficult" to "extremely difficult". As a rule of thumb, the fewer informations you have on how to compile the command, the harder it is going to be to adapt the compilation process. For a programming language like Rust, you would also need to cross-compile the extension modules (the things that "cargo" installs), and change the way these extension modules are loaded by rust (because iOS places dynamic libraries in a non-standard place). None of these are impossible, but they look big and scary, even for me (after the experience of running this process with clang, tex and python). It's on the todo list, but I need to have a long period of time available before I start. |
Beta Was this translation helpful? Give feedback.
The short answer is no, that's not possible for the time being.
The long answer is: a-Shell can run two types of binaries: binaries compiled to Arm64 (native architecture of iPhones and iPads) and binaries compiled to WebAssembly. Before you can run a command, it has to be compiled to either of these formats, which means cross-compiling: compiling a command to a format that is not the format of the machine running the compiler. Depending on how the compile script was coded, this can range from "difficult" to "extremely difficult". As a rule of thumb, the fewer informations you have on how to compile the command, the harder it is going to be to adapt the compilation process.
For a programm…