Skip to content

Commit

Permalink
Optimize release-mode builds for better binary size (#3)
Browse files Browse the repository at this point in the history
Empirically, this shrinks the final binary size from 2.2M to 1.3M
(tested on Ubuntu 24.04 with Rust 1.83), while only costing a few extra
seconds of build time

Resolves #2
  • Loading branch information
JarredAllen authored Jan 22, 2025
1 parent 8e51af4 commit b5230de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ unsafe-code = "forbid"
[lints.clippy]
cargo = "warn"
pedantic = "warn"

[profile.release]
codegen-units = 1
lto = true
strip = true

0 comments on commit b5230de

Please sign in to comment.