size optimalisations
This commit is contained in:
parent
9e82673aca
commit
fcce5bd593
1 changed files with 7 additions and 0 deletions
|
@ -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*
|
||||||
|
|
Loading…
Reference in a new issue