Various build size optimizations

This commit is contained in:
daylily
2026-01-10 11:20:58 +08:00
parent 0333c4033e
commit 27cd3a3ea8
7 changed files with 36 additions and 24 deletions
+4 -2
View File
@@ -10,7 +10,6 @@ cortex-m = { version = "0.7.7", features = [
"critical-section-single-core",
] }
cortex-m-rt = "0.7.5"
critical-section = "1.2.0"
defmt = "1.0.1"
defmt-rtt = "1.1.0"
embassy-executor = { version = "0.9.1", features = [
@@ -38,6 +37,7 @@ embassy-usb = { version = "0.5.1", features = ["defmt"] }
embedded-graphics = { version = "0.8.1", features = ["defmt"] }
embedded-hal-bus = { version = "0.3.0", features = ["async"] }
epd-waveshare = "0.6.0"
panic-abort = "0.3.2"
panic-probe = { version = "1.0.0", features = ["print-defmt"] }
postcard = { version = "1.1.3", features = ["defmt"] }
serde = { version = "1.0.228", default-features = false, features = ["derive"] }
@@ -45,6 +45,8 @@ static_cell = "2.1.1"
[profile.dev]
opt-level = "s"
lto = "fat"
[profile.release]
opt-level = "s"
opt-level = "z"
lto = "fat"