cargo: file size optimisations

This commit is contained in:
Muhammad Nauman Raza 2024-05-19 12:19:26 +01:00
parent f7457e4c6e
commit 7cb789ca03

View file

@ -6,3 +6,10 @@ edition = "2021"
[dependencies]
owo-colors = "4.0.0"
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!