LibJS/Rust: Add aggressive optimisations for distribution

Enable fat LTO and other Rust optimisations, mirroring the C++
distribution target
This commit is contained in:
xnacly 2026-02-25 10:14:49 +01:00 committed by Andreas Kling
parent ed26fdaa81
commit cc751a25be

View file

@ -3,3 +3,12 @@ members = [
"Libraries/LibJS/Rust",
]
resolver = "2"
[profile.release]
panic = "abort"
[profile.distribution]
inherits = "release"
incremental = false
codegen-units = 1
lto = true