Skip to content

Commit 60739c2

Browse files
committed
perf: enable LTO and single codegen unit for release builds
1 parent 90f89df commit 60739c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ win_uds = "=0.2.0"
8484
syntect = "5.3.0"
8585

8686

87+
[profile.release]
88+
lto = true
89+
codegen-units = 1
90+
8791
[dev-dependencies]
8892
tempfile = "3.10.1"
8993
assert_cmd = "2.0"

0 commit comments

Comments
 (0)