Skip to content

Commit 51f90be

Browse files
committed
Strip symbols from release build
Most of these symbols are from autocxx- and cxx-generated code and don't provide much real value. The Rust code is so extensively inlined in release builds that the symbols are all but useless anyway. By omitting them, we save 13% binary size.
1 parent d032dc3 commit 51f90be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ panic = "abort"
4444

4545
[profile.release]
4646
panic = "abort"
47+
strip = "symbols"
4748
lto = "fat"

0 commit comments

Comments
 (0)