File tree Expand file tree Collapse file tree 7 files changed +51
-30
lines changed Expand file tree Collapse file tree 7 files changed +51
-30
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ version = "3.1.0-preview.5"
4
4
edition = " 2021"
5
5
6
6
[profile .release ]
7
- strip = true
8
- # optimize for size
9
- opt-level = 2
10
- # enable link time optimization to remove dead code
11
- lto = true
7
+ codegen-units = 1 # reduces binary size by ~2%
8
+ debug = " full" # No one needs an undebuggable release binary
9
+ lto = true # reduces binary size by ~14%
10
+ opt-level = " s" # reduces binary size by ~25%
11
+ panic = " abort" # reduces binary size by ~50% in combination with -Zbuild-std-features=panic_immediate_abort
12
+ split-debuginfo = " packed" # generates a seperate *.dwp/*.dSYM so the binary can get stripped
13
+ strip = " symbols" # See split-debuginfo - allows us to drop the size by ~65%
12
14
13
15
[dependencies ]
14
16
clap = { version = " 4.5" , features = [" derive" ] }
Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ version = "3.0.0"
4
4
edition = " 2021"
5
5
6
6
[profile .release ]
7
- strip = true
8
- # optimize for size
9
- opt-level = 2
10
- # enable link time optimization to remove dead code
11
- lto = true
7
+ codegen-units = 1 # reduces binary size by ~2%
8
+ debug = " full" # No one needs an undebuggable release binary
9
+ lto = true # reduces binary size by ~14%
10
+ opt-level = " s" # reduces binary size by ~25%
11
+ panic = " abort" # reduces binary size by ~50% in combination with -Zbuild-std-features=panic_immediate_abort
12
+ split-debuginfo = " packed" # generates a seperate *.dwp/*.dSYM so the binary can get stripped
13
+ strip = " symbols" # See split-debuginfo - allows us to drop the size by ~65%
12
14
13
15
[dependencies ]
14
16
base64 = " 0.22"
Original file line number Diff line number Diff line change @@ -3,6 +3,15 @@ name = "dscecho"
3
3
version = " 1.0.0"
4
4
edition = " 2021"
5
5
6
+ [profile .release ]
7
+ codegen-units = 1 # reduces binary size by ~2%
8
+ debug = " full" # No one needs an undebuggable release binary
9
+ lto = true # reduces binary size by ~14%
10
+ opt-level = " s" # reduces binary size by ~25%
11
+ panic = " abort" # reduces binary size by ~50% in combination with -Zbuild-std-features=panic_immediate_abort
12
+ split-debuginfo = " packed" # generates a seperate *.dwp/*.dSYM so the binary can get stripped
13
+ strip = " symbols" # See split-debuginfo - allows us to drop the size by ~65%
14
+
6
15
[dependencies ]
7
16
clap = { version = " 4.1" , features = [" derive" ] }
8
17
rust-i18n = { version = " 3.1" }
Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ version = "0.1.0"
4
4
edition = " 2021"
5
5
6
6
[profile .release ]
7
- strip = true
8
- # optimize for size
9
- opt-level = 2
10
- # enable link time optimization to remove dead code
11
- lto = true
7
+ codegen-units = 1 # reduces binary size by ~2%
8
+ debug = " full" # No one needs an undebuggable release binary
9
+ lto = true # reduces binary size by ~14%
10
+ opt-level = " s" # reduces binary size by ~25%
11
+ panic = " abort" # reduces binary size by ~50% in combination with -Zbuild-std-features=panic_immediate_abort
12
+ split-debuginfo = " packed" # generates a seperate *.dwp/*.dSYM so the binary can get stripped
13
+ strip = " symbols" # See split-debuginfo - allows us to drop the size by ~65%
12
14
13
15
[dependencies ]
14
16
os_info = { version = " 3.7" }
Original file line number Diff line number Diff line change @@ -9,11 +9,13 @@ default-locale = "en-us"
9
9
load-path = " locales"
10
10
11
11
[profile .release ]
12
- strip = true
13
- # optimize for size
14
- opt-level = 2
15
- # enable link time optimization to remove dead code
16
- lto = true
12
+ codegen-units = 1 # reduces binary size by ~2%
13
+ debug = " full" # No one needs an undebuggable release binary
14
+ lto = true # reduces binary size by ~14%
15
+ opt-level = " s" # reduces binary size by ~25%
16
+ panic = " abort" # reduces binary size by ~50% in combination with -Zbuild-std-features=panic_immediate_abort
17
+ split-debuginfo = " packed" # generates a seperate *.dwp/*.dSYM so the binary can get stripped
18
+ strip = " symbols" # See split-debuginfo - allows us to drop the size by ~65%
17
19
18
20
[dependencies ]
19
21
clap = { version = " 4.5" , features = [" derive" ] }
Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ version = "0.1.0"
4
4
edition = " 2021"
5
5
6
6
[profile .release ]
7
- strip = true
8
- # optimize for size
9
- opt-level = 2
10
- # enable link time optimization to remove dead code
11
- lto = true
7
+ codegen-units = 1 # reduces binary size by ~2%
8
+ debug = " full" # No one needs an undebuggable release binary
9
+ lto = true # reduces binary size by ~14%
10
+ opt-level = " s" # reduces binary size by ~25%
11
+ panic = " abort" # reduces binary size by ~50% in combination with -Zbuild-std-features=panic_immediate_abort
12
+ split-debuginfo = " packed" # generates a seperate *.dwp/*.dSYM so the binary can get stripped
13
+ strip = " symbols" # See split-debuginfo - allows us to drop the size by ~65%
12
14
13
15
[dependencies ]
14
16
clap = { version = " 4.4" , features = [" derive" ] }
Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ version = "1.0.0"
4
4
edition = " 2021"
5
5
6
6
[profile .release ]
7
- strip = true
8
- # optimize for size
9
- opt-level = 2
10
- # enable link time optimization to remove dead code
11
- lto = true
7
+ codegen-units = 1 # reduces binary size by ~2%
8
+ debug = " full" # No one needs an undebuggable release binary
9
+ lto = true # reduces binary size by ~14%
10
+ opt-level = " s" # reduces binary size by ~25%
11
+ panic = " abort" # reduces binary size by ~50% in combination with -Zbuild-std-features=panic_immediate_abort
12
+ split-debuginfo = " packed" # generates a seperate *.dwp/*.dSYM so the binary can get stripped
13
+ strip = " symbols" # See split-debuginfo - allows us to drop the size by ~65%
12
14
13
15
[dependencies ]
14
16
serde_json = { version = " 1.0.0" , features = [" preserve_order" ] }
You can’t perform that action at this time.
0 commit comments