feat: optimize release build for smaller size

This commit is contained in:
əlemi 2024-10-11 20:34:34 +02:00 committed by alemi.dev
parent 306a687354
commit 8f94b29925

View file

@ -80,3 +80,10 @@ luajit = ["lua", "mlua-codemp-patch/luajit"]
[package.metadata.docs.rs] # enabled features when building on docs.rs [package.metadata.docs.rs] # enabled features when building on docs.rs
features = ["serialize"] features = ["serialize"]
[profile.release]
opt-level = 'z'
lto = true
codegen-units = 1
panic = 'abort'
strip = 'symbols'