Skip to content

Commit

Permalink
chore(cargo): override release profile to focus on min size of binary
Browse files Browse the repository at this point in the history
  • Loading branch information
JarKz committed Dec 27, 2024
1 parent 7c9352e commit 37b87a7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ authors = [ "noti-rs" ]
version = "0.1.0"
edition = "2021"

# Focus on min size of bin
[profile.release]
lto = true
strip = true
opt-level = "z"
codegen-units = 1
panic = "abort"
debug = "none"
debug-assertions = false

[[bin]]
path = "crates/app/main.rs"
name = "noti"
Expand Down

0 comments on commit 37b87a7

Please sign in to comment.