0
0
Fork 0

feat(build): tweak binary size by stripping symbols

This commit is contained in:
Jannik Beyerstedt 2026-04-27 13:52:56 +02:00
commit c4598a3d3e
2 changed files with 6 additions and 41 deletions

View file

@ -37,19 +37,6 @@ esp-radio = { version = "0.18.0", features = [
"unstable",
"wifi",
] }
smoltcp = { version = "0.13.0", default-features = false, features = [
"log",
"medium-ethernet",
"multicast",
"proto-dhcpv4",
"proto-dns",
"proto-ipv4",
"socket-dns",
"socket-icmp",
"socket-raw",
"socket-tcp",
"socket-udp",
] }
# For fine tuning these settings, please refer to https://doc.rust-lang.org/cargo/reference/profiles.html
@ -63,3 +50,8 @@ codegen-units = 1 # LLVM can perform better optimizations using a single thr
debug = 2 # prefer slower builds but better debugging experience
lto = 'fat'
opt-level = 's'
strip = "debuginfo"
[profile.release-dbg]
inherits = "release"
strip = false