From cc751a25be8a7034479eaa8538bc9e00f3d33083 Mon Sep 17 00:00:00 2001 From: xnacly <47723417+xNaCly@users.noreply.github.com> Date: Wed, 25 Feb 2026 10:14:49 +0100 Subject: [PATCH] LibJS/Rust: Add aggressive optimisations for distribution Enable fat LTO and other Rust optimisations, mirroring the C++ distribution target --- Cargo.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index f9f8398c6d..1fff079f5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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