release build/profile settings to reduce binary size

This commit is contained in:
Gered 2023-07-02 13:49:34 -04:00
parent 328018834d
commit 39e35c19db

View file

@ -22,4 +22,11 @@ syntect = "5.0.0"
tera = "1.19.0"
thiserror = "1.0.40"
tokio = "1"
url = "2.4.0"
url = "2.4.0"
[profile.release]
# settings that are mainly intended to reduce the size of the release binary while keeping the release binary tuned
# for performance. these alone reduce the binary size by over 50%, which is good enough in my opinion ...
strip = true
lto = true
codegen-units = 1