Skip to content

Instantly share code, notes, and snippets.

@0xperp
Created August 25, 2022 01:30
Show Gist options
  • Save 0xperp/47fc9be19bf465cc3a41ffd39df6beb8 to your computer and use it in GitHub Desktop.
Save 0xperp/47fc9be19bf465cc3a41ffd39df6beb8 to your computer and use it in GitHub Desktop.
building a rust binary in nix for production
# should include all of the packages that you need and produce a binary
nix-shell -p cargo libiconv openssl pkgconfig --run "cargo build --release"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment