Skip to content

Commit

Permalink
Add build profile optimized for binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
apiraino committed Jan 24, 2024
1 parent 2dd37fa commit 34840d6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,12 @@ default-features = false

[profile.release]
debug = 2

[profile.opt-size]
inherits = "release"
opt-level = "z"
lto = "on"
codegen-units = 1
panic = "abort"
incremental = false
strip = true

0 comments on commit 34840d6

Please sign in to comment.