Skip to content

Commit 0dbeb12

Browse files
committed
build: use 1 codegen-units for release builds
According to my measurements this reduced libdeltachat.so size by 3.3 MB, from 25.17 to 21.84 MB.
1 parent 9646766 commit 0dbeb12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ opt-level = "z"
2323
lto = true
2424
panic = 'abort'
2525
opt-level = "z"
26+
codegen-units = 1
2627

2728
[patch.crates-io]
2829
quinn-udp = { git = "https://github.com/quinn-rs/quinn", branch="main" }

0 commit comments

Comments
 (0)