configure release profile to reduce binary size
This commit is contained in:
parent
528f40c58a
commit
2cddc4e7a8
1 changed files with 6 additions and 0 deletions
|
|
@ -3,6 +3,12 @@ name = "alexandria"
|
|||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[profile.release]
|
||||
opt-level = 'z' # Optimize for size
|
||||
lto = true # Enable link-time optimization
|
||||
codegen-units = 1 # Reduce number of codegen units to increase optimizations
|
||||
strip = true # Strip symbols from binary*
|
||||
|
||||
[dependencies]
|
||||
axum = { version = "0.8.4", features = [ "macros", "ws", "tokio" ] }
|
||||
axum-extra = { version = "0.10.1", features = ["typed-header"] }
|
||||
|
|
|
|||
Reference in a new issue