cargo: optimise binary for size
This commit is contained in:
parent
12ff1e413f
commit
d3ad436a78
1 changed files with 8 additions and 1 deletions
|
@ -1,9 +1,16 @@
|
||||||
[package]
|
[package]
|
||||||
name = "bunbun"
|
name = "bunbun"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
colored = "2.1.0"
|
colored = "2.1.0"
|
||||||
sysinfo = "0.30.7"
|
sysinfo = "0.30.7"
|
||||||
whoami = "1.5.1"
|
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!
|
||||||
|
|
Loading…
Reference in a new issue