build: optimize release profile for binary size and performance

Enable LTO, single codegen units, and symbol stripping to reduce binary footprint and improve execution efficiency.
This commit is contained in:
Nils Andreas Svee committed 2026-05-11 13:27:50 +07:00
1 parent 21bc7805f7
commit 8ef53c999a
1 file changed
+7
+7
View File
@@ -19,3 +19,10 @@ readme = "README.md"
irtt-proto = { version = "0.1.1", path = "crates/irtt-proto" } irtt-proto = { version = "0.1.1", path = "crates/irtt-proto" }
irtt-client = { version = "0.1.1", path = "crates/irtt-client" } irtt-client = { version = "0.1.1", path = "crates/irtt-client" }
irtt-stats = { version = "0.1.1", path = "crates/irtt-stats" } irtt-stats = { version = "0.1.1", path = "crates/irtt-stats" }
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = "symbols"