Skip to content

Instantly share code, notes, and snippets.

@ugovaretto
Created April 6, 2022 07:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugovaretto/9e4e1ae6bc9588ceb23afface67a6d3c to your computer and use it in GitHub Desktop.
Save ugovaretto/9e4e1ae6bc9588ceb23afface67a6d3c to your computer and use it in GitHub Desktop.
Static compilation of Rust binaries
RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-unknown-linux-gnu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment