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:
1 file changed
+7
@@ -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"
|
||||||
Reference in new issue
Block a user