From cebe9f7f4b9f902547ce96395e487d9a86b53205 Mon Sep 17 00:00:00 2001 From: Jon C Date: Mon, 3 Nov 2025 11:59:44 +0100 Subject: [PATCH 1/2] repo: Add `debug = false` to dev profile to reduce build size #### Problem Some of the CI jobs time out or fail because there's too much disk space used by the build. #### Summary of changes Take a hammer to the problem, and just don't emit debug info. On my machine, this reduces the build size from 21GB to 4.1GB for the rust legacy build, which always runs into issues. --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e7aa0cee6..019e8fa2f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,7 @@ +# Reduce the size of debug builds for CI +[profile.dev] +debug = false + # The curve25519-dalek crate uses the `simd` backend by default in v4 if # possible, which has very slow performance on some platforms with opt-level 0, # which is the default for `dev` and `test` builds. This slowdown causes From 2de609b73a8f765f0862f754163b218d515ba18a Mon Sep 17 00:00:00 2001 From: Jon C Date: Tue, 4 Nov 2025 17:09:20 +0100 Subject: [PATCH 2/2] Actually, use "line-tables-only" --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 019e8fa2f..6c2f2df5b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ -# Reduce the size of debug builds for CI +# Reduce the size of debug builds [profile.dev] -debug = false +debug = "line-tables-only" # The curve25519-dalek crate uses the `simd` backend by default in v4 if # possible, which has very slow performance on some platforms with opt-level 0,