Skip to content

Commit

Permalink
specify release profile for more optimized binary in release build
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Aug 24, 2024
1 parent d125771 commit 8801611
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions v2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ path = "src/main.rs"
[workspace]
members = ["bench"]

[profile.release]
lto = "thin"
panic = "abort"
codegen-units = 1

[profile.bench]
lto = "thin"

Expand Down

0 comments on commit 8801611

Please sign in to comment.