size optimalisations

This commit is contained in:
Djkáťo 2024-04-19 21:55:47 +02:00
parent 9e82673aca
commit fcce5bd593

View file

@ -29,3 +29,10 @@ tokio = { version = "1.32.0", features = [
[[bin]] [[bin]]
name = "nmb" name = "nmb"
path = "src/main.rs" path = "src/main.rs"
[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
panic = 'abort' # Abort on panic
strip = true # Strip symbols from binary*