From a34b31054d471b6ec145d8c66b4427141e9fc32b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 20 Jun 2024 10:09:19 +0200 Subject: [PATCH] build: force debug symbols in release build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit they then get stripped into their own package anyway, but without this we don't get debug symbols at all with rustc >= 1.77 Signed-off-by: Fabian Grünbichler --- pmg-rs/.cargo/config | 3 +++ pve-rs/.cargo/config | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pmg-rs/.cargo/config b/pmg-rs/.cargo/config index 3b5b6e4..7b442dc 100644 --- a/pmg-rs/.cargo/config +++ b/pmg-rs/.cargo/config @@ -3,3 +3,6 @@ directory = "/usr/share/cargo/registry" [source.crates-io] replace-with = "debian-packages" + +[profile.release] +debug = true diff --git a/pve-rs/.cargo/config b/pve-rs/.cargo/config index 3b5b6e4..7b442dc 100644 --- a/pve-rs/.cargo/config +++ b/pve-rs/.cargo/config @@ -3,3 +3,6 @@ directory = "/usr/share/cargo/registry" [source.crates-io] replace-with = "debian-packages" + +[profile.release] +debug = true