Skip to content

Commit 384d192

Browse files
committed
Tune release settings for smaller binary size
1 parent 469280b commit 384d192

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,11 @@ predicates = "3"
3030
pretty_assertions = "1"
3131
tempfile = "3"
3232
toml = "0.8"
33+
34+
[profile.release]
35+
# Reduces binary size from 9.9M to 7.5M on MacOS.
36+
lto = true
37+
# Reduces binary size by 0.5M on MacOS.
38+
codegen-units = 1
39+
# Reduces binary size by 0.5M on MacOS.
40+
opt-level = "z"

0 commit comments

Comments
 (0)