8 ms·
Rust has supported statically linking to MSVC and musl for a while now but also added static glibc support on Linux very recently: https://github.com/rust-lang
by hetman 6y ago
Rust has supported statically linking to MSVC and musl for a while now but also added static glibc support on Linux very recently:
https://github.com/rust-lang/rust/pull/77386 https://github.com/rust-lang/rust/pull/77386
- loosescrews 6y agoIs it possible to compile with statically linked musl with the pre-built Rust toolchain on a standard glibc based distribution?
- SomaticPirate 6y agoYes, but there are claims it is slower https://www.reddit.com/r/rust/comments/a6pna3/comment/ebzpzld https://www.reddit.com/r/rust/comments/a6pna3/comment/ebzpzl...
- saagarjha 6y agomusl is generally not optimized for performance.
- mkj 6y agoYes, it works well. The main caveat I've found is you need the rustls feature of packages rather than openssl. Though perhaps that was more related to cross compiling for Arm.