Created
June 19, 2023 05:45
-
-
Save andyeff/4acea8686ac1eb916f9851715ef2df41 to your computer and use it in GitHub Desktop.
size-optimised rust profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from https://tech.lgbt/@noboilerplate/110547957199820610 | |
[profile.release] | |
opt-level = 'z' # Optimize for size | |
lto = true # Enable link time optimisation | |
codegen-units = 1 # Reduce number of codegen units (?) | |
panic = 'abort' # Abort on panic | |
strip = true # Strip symbols |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment