This site provides nightly rust toolchains for musl targets.
They are patched to use llvm libunwind and compiler-rt instead of linking to libgcc or its components.
Another difference from upstream rust is that these toolchains link musl dynamically by default rather than
statically.
These toolchains are NOT cross toolchains. The toolchains will run ONLY on their particular
target.
They are however very suitable for cross compilation and will play nicely with llvm and clang.
The standard library for other targets provided by this page can be installed for cross-compilation to them.
Toolchains are built using Chimera Linux and the build scripts here. All architectures supported by Chimera are built.
The toolchains are linked dynamically to make them smaller. You may need to install libgit2, llvm and other
libraries to execute them.
Rebuilds are triggered on a ~weekly basis, mostly because patches need manual rebasing.
Installation: curl https://musl.rs/install.sh | sh
Included components:Architecture | Triple | Status | Downloads |
noarch | * | Supported | rust-src |
aarch64 | aarch64-unknown-linux-musl | Supported | rust-nightly |
loongarch64 | loongarch64-unknown-linux-musl | Supported | rust-nightly |
ppc | powerpc-unknown-linux-musl | Supported | rust-nightly |
ppc64 | powerpc64-unknown-linux-musl | Supported | rust-nightly |
ppc64le | powerpc64le-unknown-linux-musl | Supported | rust-nightly |
riscv64 | riscv64gc-unknown-linux-musl | Supported | rust-nightly |
x86_64 | x86_64-unknown-linux-musl | Supported | rust-nightly |