Shrink the release binary with a size-optimised profile and the glow renderer

This commit is contained in:
2026-10-17 14:24:07 +02:00
parent d022e241a9
commit 4b6de20b67
3 changed files with 21 additions and 83 deletions
+8 -1
View File
@@ -11,7 +11,7 @@ anyhow = "1.0.104"
chrono = "0.4.45"
dirs = "7.0.0"
dotenvy = "0.15.7"
eframe = "0.37.0"
eframe = { version = "0.37.0", default-features = false, features = ["accesskit", "clipboard", "default_fonts", "links", "system_fonts", "wayland", "x11", "glow"] }
ego-tree = "0.11.0"
egui = "0.37.0"
egui_extras = "0.37.0"
@@ -35,3 +35,10 @@ url = "2.5.8"
[dev-dependencies]
egui_kittest = { version = "0.37.0", features = ["eframe", "wgpu", "snapshot"] }
tempfile = "3.27.0"
[profile.release]
# smaller binary: no debug symbols, whole-program optimisation
strip = true
lto = true
codegen-units = 1
opt-level = "s"