File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,19 @@ panic = "abort"
12
12
# We assume we're being delivered via e.g. RPM which supports split debuginfo
13
13
debug = true
14
14
15
+ [profile .thin ]
16
+ # drop bootc size when split debuginfo is not available and go a step
17
+ # further in size optimization (when tested from 140mb, to 12mb without
18
+ # symbols/debuginfo, to 5.8mb with extra optimizations)
19
+ # https://github.com/johnthagen/min-sized-rust
20
+ # cargo build --profile=thin
21
+ inherits = " release"
22
+ debug = false # Re-strip debug symbols
23
+ strip = true # Strip symbols from binary
24
+ lto = true # Use full lto to remove dead code
25
+ opt-level = ' s' # Optimize for size with vector vectorization
26
+ codegen-units = 1 # Reduce number of codegen units to increase optimizations
27
+
15
28
[profile .releaselto ]
16
29
codegen-units = 1
17
30
inherits = " release"
You can’t perform that action at this time.
0 commit comments