• Rustmilian
        link
        English
        4
        edit-2
        4 months ago

        While there may be challenges and specific configurations required, you absolutely can compile Rust on and targeting to a musl-based system.

          • Rustmilian
            link
            English
            4
            edit-2
            4 months ago

            Rust actually supports most architectures(SPARC, AMD64/x86-64, ARM, PowerPC, RISC-V, and AMDGPU*). The limitations are from LLVM not supporting some architects(Alpha, SuperH, and VAX) and some instruction sets(sse2, etc.); z/Architecture is a bit of an outlier that has major challenges to overcome for LLVM-Rust. This is not going to be a problem when GCC-Rust is finished.

            AMDGPU, *Not 100%, but works well enough to actually use in production and gets better all the time.

              • Rustmilian
                link
                English
                4
                edit-2
                4 months ago

                Np. It’s a common point of confusion.
                You can use rustup target list to see all available architectures and targets.