I'm kicking around the idea of trying to get Rust to cross compile to OS 4 and then see about getting Wasmer to run on it. One dependency that seems to be hard to avoid is that the WASI ABI for Wasmer uses shared objects in a POSIX-style format. If there is a query capable symbol exporter for an OS 4 shared library, that might be another option.
Another hard-to-avoid dependency is that the Wasmer sandbox environment is strictly little-endian. This means that anything accessible outside of the sandbox will need to be endian swapped to interface to the OS.
That said, I haven't learned to program in Rust yet so don't get your hopes up of having a glut of software written for Wasmer at this time.
So Rust does support “powerpc-unknown-linux-gnu”, (PowerPC Linux (kernel 2.6.32, glibc 2.11))
There is dependencies on glibc, we currently do not have glibc, we have newlib and clib, so that is big dependency that might need to be ported. (if clib / newlib can not be used.)
(NutsAboutAmiga)
Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
Rust uses LLVM as a backend and optimizer. It doesn't specifically use GLibC unless you are using the Linux backend. It does need to be able to compile LLVM in C++20 or so.
I’m pretty sure LLVM and C++20 is not supported, I do remember they where trying to update it (newlib/clib) to C++11 standards, but I guess C++20 that’s most stuff in glibc .
(NutsAboutAmiga)
Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.