From ce2ebae5bdacecdc533944fc19bed0496e7fc46c Mon Sep 17 00:00:00 2001 From: skylartaylor Date: Mon, 30 Nov 2026 05:54:02 +0100 Subject: [PATCH] Build: use four release codegen units --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 8a8adec308..612e8ed455 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -270,7 +270,8 @@ opt-level = 0 [profile.release] lto = "thin" -codegen-units = 1 +# Give LLVM room to compile in parallel without dropping ThinLTO. +codegen-units = 4 # The browser build (apps/photocraft-web, `data-cargo-profile` in its index.html). Hosts cap the # size of a single file (Cloudflare Pages/Workers: 25 MiB), and the wasm is downloaded on every