Skip to content

Commit f895087

Browse files
committed
build: optimize release profile for binary size
1 parent c178252 commit f895087

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,9 @@ windows = { version = "0.62.2", features = ["Win32_System_Com", "Win32_Media_Aud
6363
[target."cfg(target_os = \"macos\")".dependencies]
6464
objc2 = "0.6.4"
6565
objc2-core-audio = "0.3.2"
66+
67+
[profile.release]
68+
opt-level = "z"
69+
lto = true
70+
codegen-units = 1
71+
strip = true

0 commit comments

Comments
 (0)