cargo: file size optimisations
This commit is contained in:
parent
f7457e4c6e
commit
7cb789ca03
|
@ -6,3 +6,10 @@ edition = "2021"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
owo-colors = "4.0.0"
|
owo-colors = "4.0.0"
|
||||||
pinger = "1.1.1"
|
pinger = "1.1.1"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
strip = true # Strip debug symbols
|
||||||
|
opt-level = "z" # Optimise for size
|
||||||
|
lto = true # Enable link type optimisation
|
||||||
|
codegen-units = 1 # Reduce parallel code generation units
|
||||||
|
panic = "abort" # Abort on panic!
|
||||||
|
|
Loading…
Reference in a new issue