diff --git a/Cargo.toml b/Cargo.toml index 8896f07..f50e128 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,3 +29,10 @@ tokio = { version = "1.32.0", features = [ [[bin]] name = "nmb" 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*