Skip to content

Commit

Permalink
Add size optimisation flags to release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
GsLogiMaker committed May 3, 2024
1 parent 9b2a2d8 commit bbd2880
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/glecs/rust/glecs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
[features]
default = ["compile_bindings"]
compile_bindings = []
godot_release = []

[build-dependencies]
bindgen = "0.68.1"
Expand All @@ -20,6 +21,10 @@ cstr = "0.2.12"
['cfg(compile_bindings)'.dependencies]
flecs = { version = "0.1.4", features = ["export_bindings"] }

[profile.release]
strip = true
lto = true
opt-level = "z"

[patch.crates-io]
flecs = {path = "../flecs-rs"}
Expand Down

0 comments on commit bbd2880

Please sign in to comment.