3 ms·
I agree with the sentiment behind your comment. Rust is very portable, but isn't portable to all platforms. Obviously it works on the big ones like Windows, mac
by nindalf 8y ago
I agree with the sentiment behind your comment. Rust is very portable, but isn't portable to all platforms. Obviously it works on the big ones like Windows, macOS, most variants of Linux, BSD etc. but it doesn't on Alpine Linux. IIRC there was an issue compiling it without glibc (which Alpine lacks).
Edit - apparently rustc can now be linked to musl instead of glibc in nightly. Cool!
- vbarrielle 8y agoRust can be compiled without glibc, by statically linking to musl, but it looks like it's still experimental as the only distribution of it is on the nightly channel: https://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-musl.tar.gz https://static.rust-lang.org/dist/rust-nightly-x86_64-unknow...
- steveklabnik 8y agoCompiling most Rust programs with MUSL is fine, and available on stable. But the rust compiler itself with MUSL had some issues, and this were worked out very recently, and so it hasn’t totally ridden the trains to stable yet. https://github.com/rust-lang/rust/issues/59302 https://github.com/rust-lang/rust/issues/59302
- giancarlostoro 8y agohttps://pkgs.alpinelinux.org/package/edge/community/x86_64/rust https://pkgs.alpinelinux.org/package/edge/community/x86_64/r... Is this not a successful build? At that point it seems like the OS is just not providing the necessary tooling, but Rust will run on the architecture.