cargo: optimise binary for size

This commit is contained in:
Muhammad Nauman Raza 2024-03-23 22:39:24 +00:00
parent 12ff1e413f
commit d3ad436a78
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -1,9 +1,16 @@
[package]
name = "bunbun"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
[dependencies]
colored = "2.1.0"
sysinfo = "0.30.7"
whoami = "1.5.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!