Skip to content

Commit 25a983d

Browse files
committed
build: add optimized release profile
Enable LTO, symbol stripping, and single codegen unit for smaller and faster release binaries.
1 parent ae2335a commit 25a983d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ indicatif = "0.18"
5252
# Utilities
5353
regex = "1.12"
5454

55+
[profile.release]
56+
lto = true
57+
strip = true
58+
codegen-units = 1
59+
5560
[dev-dependencies]
5661
tempfile = "3.25"
5762
assert_cmd = "2.0"

0 commit comments

Comments
 (0)