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"
1212# We assume we're being delivered via e.g. RPM which supports split debuginfo
1313debug = true
1414
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+
1528[profile .releaselto ]
1629codegen-units = 1
1730inherits = " release"
You can’t perform that action at this time.
0 commit comments