To build a static executable: rustup target add x86_64-unknown-linux-musl cargo build --target=x86_64-unknown-linux-musl