Skip to content

Commit

Permalink
Disable debug info and enable thin LTO for release builds
Browse files Browse the repository at this point in the history
See https://doc.rust-lang.org/cargo/reference/profiles.html#release for the
release profile's defaults and
https://doc.rust-lang.org/cargo/reference/profiles.html#lto for an explanation
of link time optimizations (LTO).
  • Loading branch information
lafrenierejm committed Sep 22, 2024
1 parent 6b79490 commit be51e6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,4 @@ tempfile = "3.5.0"
tokio-test = "0.4.2"

[profile.release]
debug = true
split-debuginfo = "packed"
lto = "thin"

0 comments on commit be51e6a

Please sign in to comment.