build: optimize release profile (#4806)

This commit is contained in:
houseme
2026-07-14 18:56:15 +08:00
committed by GitHub
parent 24e7f8f19c
commit af5ca7c3f9
4 changed files with 17 additions and 7 deletions
+6 -2
View File
@@ -353,15 +353,19 @@ debug = "line-tables-only"
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
debug = 0
split-debuginfo = "off"
strip = "symbols"
[profile.production]
inherits = "release"
lto = "fat"
codegen-units = 1
[profile.profiling]
inherits = "release"
debug = true
strip = "none"
# Pin hyper to a revision that carries the HTTP/1 "flush buffered data before
# shutdown" fix (hyperium/hyper#4018, commit 72046cc7). This lands as a