mirror of
https://github.com/Xevion/dynamic-preauth.git
synced 2025-12-15 06:11:39 -06:00
perf: optimize release profile for smaller binary size
Configure release profile with aggressive size optimizations: - Set opt-level to 'z' for minimum binary size - Enable LTO for better optimization across crates - Strip debug info to reduce final binary size - Use panic=abort to eliminate unwinding machinery - Reduce codegen units to 1 for maximum optimization - Keep overflow checks for safety in production
This commit is contained in:
@@ -18,3 +18,11 @@ tokio = { version = "1", features = ["macros"] }
|
||||
tokio-stream = "0.1.17"
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
||||
[profile.release]
|
||||
opt-level = "z"
|
||||
lto = true
|
||||
strip = "debuginfo"
|
||||
panic = "abort"
|
||||
codegen-units = 1
|
||||
overflow-checks = true
|
||||
|
||||
Reference in New Issue
Block a user