cargo: optimise binary for size

This commit is contained in:
Muhammad Nauman Raza 2024-03-23 22:39:24 +00:00
parent 008ad5634d
commit ef7106632e
No known key found for this signature in database
GPG key ID: 31BC90D626D2DBBE

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!