From f87017c04db1330941bbf78fbf2ca3b793209371 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 14 Nov 2022 14:44:41 +0200 Subject: [PATCH] Omit dependencies' debug info (#2803) Based on https://neondb.slack.com/archives/C0277TKAJCA/p1668079753506749 Co-authored-by: Arseny Sher --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 32c243bf44..0d73710bbb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,10 @@ members = [ # Besides, debug info should not affect the performance. debug = true +# disable debug symbols for all packages except this one to decrease binaries size +[profile.release.package."*"] +debug = false + [profile.release-line-debug] inherits = "release" debug = 1 # true = 2 = all symbols, 1 = line only