Reduce the weight of the produced binary

Optimise for weight at the expense of compile time, speed and we strip debuging elements

Signed-off-by: Soapydev <alexandre.beauchamp.thibault@gmail.com>
This commit is contained in:
Soapydev 2024-08-19 10:24:25 -04:00
parent 7f15324117
commit 8e8f31e2e6

View File

@ -18,3 +18,14 @@ tempdir = "0.3.7"
[[bin]]
name = "linutil"
path = "src/main.rs"
[profile.release]
opt-level = "z"
debug = false
lto = true
codegen-units = 1
panic = "abort"
strip = true
incremental = false