Skip to content

Commit

Permalink
feat: optimize release build for smaller size
Browse files Browse the repository at this point in the history
  • Loading branch information
alemidev committed Oct 12, 2024
1 parent 306a687 commit 8f94b29
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 8f94b29

Please sign in to comment.