Optimize the size of the release binary

This cuts things down 5MB, fancy
This commit is contained in:
R Tyler Croy 2020-05-29 15:15:58 -07:00
parent 69cf9904eb
commit 7e61736e95
1 changed files with 9 additions and 0 deletions

View File

@ -64,3 +64,12 @@ chrono = "~0.4.11"
uuid = { version = "~0.8.1", features = ["v4"] }
async-trait = "0.1.31"
# Optimize the heck out of the release build, I have no idea what these flags
# do
[profile.release]
panic = "abort"
lto = true
codegen-units=1
opt-level="s"