How to Target musl for Fully Static Linux Binaries

Add the musl target and build with the --target flag to create a fully static Linux binary.

To target musl for fully static Linux binaries, add the x86_64-unknown-linux-musl target to your toolchain and compile with the --target flag.

rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl

This produces a statically linked binary in target/x86_64-unknown-linux-musl/release/ that runs on any Linux distribution without external dependencies.