4 ms·
Yes, we have full support for MUSL. It's a $ rustup target add x86_64-unknown-linux-musl $ cargo build --target x86_64-unknown-linux-musl away.
by steveklabnik 8y ago
Yes, we have full support for MUSL. It's a
$ rustup target add x86_64-unknown-linux-musl
$ cargo build --target x86_64-unknown-linux-musl
away.
- ekidd 8y agoYeah, Rust's musl support is great. We use it heavily at work for all sorts of CLI tools. Many thanks to everybody who worked on this. (And if you need to link against common C libraries like OpenSSL or PostgreSQL, I maintain a Docker image with the necessary C toolchains, and instructions on how to use it: https://github.com/emk/rust-musl-builder https://github.com/emk/rust-musl-builder. There are a couple of similar images out there, too, I think.)
- throwaway23H 8y agoYou can also download the cross-compilation tarball for musl at https://static.rust-lang.org/dist/rust-std-1.31.0-x86_64-unknown-linux-musl.tar.gz https://static.rust-lang.org/dist/rust-std-1.31.0-x86_64-unk... if you installed rust that way. You'd then build normally: $ cargo build --target x86_64-unknown-linux-musl