Skip to content

Commit

Permalink
chore(build): reduce release binary size (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrzlgnm authored Aug 4, 2024
1 parent 44e6237 commit ad45938
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ name = "mdns-browser-ui"
version = "0.0.5"
edition = "2021"

[profile.release]
panic = "abort" # Strip expensive panic clean-up logic
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
opt-level = "z" # Optimize for binary size
strip = true # Remove debug symbols

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
chrono = "0.4.38"
Expand Down

0 comments on commit ad45938

Please sign in to comment.