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