From c53bfa489011038cb934735451d88dcd9f39dbe2 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Tue, 24 Mar 2026 22:38:14 -0700 Subject: [PATCH] build release without full lto to reduce memroy usage --- Cargo.toml | 4 ++-- roapi/Cargo.toml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 892ce9a..b81c962 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,12 +9,12 @@ split-debuginfo = "unpacked" split-debuginfo = "unpacked" [profile.release] -lto = true -codegen-units = 1 +lto = "thin" [profile.release.package.roapi-ui] opt-level = 2 # fast and small wasm + # [patch.crates-io] # delta_kernel = { git = "https://github.com/houqp/delta-kernel-rs", rev = "92aa4cbd6d29c393d806f89bf5acdbaf4cb35ae1" } diff --git a/roapi/Cargo.toml b/roapi/Cargo.toml index 408d31d..5a25c02 100644 --- a/roapi/Cargo.toml +++ b/roapi/Cargo.toml @@ -88,5 +88,5 @@ arrow-ipc = "57" # for flight_sql test # TODO: uncomment this when we exclude roapi from root workspace # [profile.release] -# lto = true -# codegen-units = 1 +# lto = "thin" +