3 ms·
Another nice thing is that, if you can live with the slower musl malloc, then building a "universal" Linux binary with Cargo takes just two commands: $ rustup
by optionalsquid 1y ago
Another nice thing is that, if you can live with the slower musl malloc, then building a "universal" Linux binary with Cargo takes just two commands:
$ rustup target add x86_64-unknown-linux-musl
$ cargo build --target x86_64-unknown-linux-musl --release
Similarly for cross-compiling for Windows
- the__alchemist 1y agoI should try that!
- tyingq 1y agoIt may be fixed now, but devil's in the details. As one example, musl has (or had) chronic issues with it's dns resolver and large responses.
- optionalsquid 1y agoDefinitely. I haven't tried building anything that requires DNS using musl, but I've had to work around musl's much, much slower malloc implementation The musl wiki lists a number of differences between it and glibc that can have an impact: https://wiki.musl-libc.org/functional-differences-from-glibc.html https://wiki.musl-libc.org/functional-differences-from-glibc...