Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 410 Bytes

HOWTO-build-execution-binary.md

File metadata and controls

20 lines (11 loc) · 410 Bytes

Check the MUSL tools installed

sudo apt-get install musl-tools

Build your project:

Use the cargo build command with the --target flag to specify the MUSL target:

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

This will create a statically linked binary in the target/x86_64-unknown-linux-musl/release/ directory.