From e6b5cb46d749c6e970dd0c68f3171c95605dd2cf Mon Sep 17 00:00:00 2001 From: Hiroshi Shinaoka Date: Sun, 11 Oct 2026 19:42:59 +0900 Subject: [PATCH] chore: build without debug info outside the profiling profiles --- Cargo.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a42a2df..7a01119 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,4 +24,12 @@ anyhow = "1" libm = "0.2" [profile.release] -debug = true +debug = 0 # CARGO_PROFILE_RELEASE_DEBUG=true restores full debug info + +# Dev and test builds do not read DWARF, and it multiplies what every target directory and the +# shared build cache hold. +[profile.dev] +debug = 0 + +[profile.test] +debug = 0