Skip to content

Commit

Permalink
feat: release binary size optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloanan committed Apr 10, 2024
1 parent d94b4b1 commit 282a81d
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 @@ -13,3 +13,10 @@ tokio = { version = "1.37.0", features = ["full"] }
tower-http = { version = "0.5.2", features = ["fs", "tracing"] }
tracing = "0.1.40"
tracing-subscriber = "0.3.18"

[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 = 3 # Optimize for binary size - P.S, default release is 3 anyway
strip = true # Remove debug symbols

0 comments on commit 282a81d

Please sign in to comment.