File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ rustflags = [
1010 # We can guarantee that this target will always run on a CPU with _at least_
1111 # these capabilities, so let's optimize for them
1212 " -Ctarget-cpu=apple-m1"
13- ]
13+ ]
Original file line number Diff line number Diff line change @@ -77,11 +77,13 @@ memmap2 = "0.9.5"
7777url = " 2.5.4"
7878
7979[profile .release ]
80- lto = true
81- strip = true
82- debug = " limited"
83- codegen-units = 1
84- incremental = false
80+ codegen-units = 1 # reduces binary size by ~2%
81+ debug = " full" # No one needs an undebuggable release binary
82+ lto = true # reduces binary size by ~14%
83+ opt-level = " s" # reduces binary size by ~25%
84+ panic = " abort" # reduces binary size by ~50% in combination with -Zbuild-std-features=panic_immediate_abort
85+ split-debuginfo = " packed" # generates a separate *.dwp/*.dSYM so the binary can get stripped
86+ strip = " symbols" # See split-debuginfo - allows us to drop the size by ~65%
8587
8688[profile .dev ]
8789split-debuginfo = " unpacked"
You can’t perform that action at this time.
0 commit comments