and this fails to run on the (virtual) machine we want to deploy this to, which uses Alpine Linux.
How can I either build a Linux executable which doesn't load anything else, or target the Alpine Linux distribution properly?
I have looked at the linkage section of the Rust manuals and it seems I cannot control the system libraries which are dynamically linked by this means.
I've installed the target on my Mac, but the targeted build fails because it cannot be linkedited (cc complains about the parameters it is given).
I guess I need a toolchain on my Mac to link for musl. This is tricky, so instead I'm going to build a targeted executable on our (Ubuntu) build machine. I need to extend the Rust currently installed there, and archive the (new) build from target/release/x86_64-unknown-linux-musl/ instead of target/release/.
Wish me luck.
PS: It is implies (elsewhere on the forum) that this will give me a statically linked binary that runs on any linux. Is this true?