release build/profile settings to reduce binary size
This commit is contained in:
parent
328018834d
commit
39e35c19db
|
@ -22,4 +22,11 @@ syntect = "5.0.0"
|
||||||
tera = "1.19.0"
|
tera = "1.19.0"
|
||||||
thiserror = "1.0.40"
|
thiserror = "1.0.40"
|
||||||
tokio = "1"
|
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
|
||||||
|
|
Loading…
Reference in a new issue