From 2f69218e21c96542c7a7ffe3365b221811f007e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 23 Oct 2026 06:49:11 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20perf:=20dev=20builds=20keep=20line?= =?UTF-8?q?=20tables=20only,=20so=20test=20binaries=20are=20smaller=20and?= =?UTF-8?q?=20link=20faster?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 8f2aa98..2d20754 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -118,6 +118,10 @@ similar = "3.2.0" semver = "1.0.28" zip = { version = "9.0.3", default-features = false, features = ["deflate"] } +[profile.dev] +# Line tables keep file:line in backtraces but drop variable info; binaries and links are much smaller. +debug = "line-tables-only" + [profile.dev.package.sha2] # self-update hashes the ~1 GB debug binary at boot; unoptimized sha2 takes ~26 s. opt-level = 3