From e2934061e286d269052299a00244b4b1b9e9ca93 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Thu, 3 Aug 2023 15:34:29 -0700 Subject: [PATCH 1/2] Only enable line tables for profile.dev --- Cargo.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e51a8df652..24b628d7b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,6 +46,17 @@ members = [ "pgrx-examples/spi_srf", ] +[profile.dev] +# Only include line tables in debuginfo. This reduces the size of target/ (after +# running tests) by almost half, while keeping the part of debuginfo which +# people care about the most (the part used to produce backtraces). This seems +# like something we would generally want (when actually running in a debugger +# you can just comment out the line). +# +# That said, if it turns out to hurt development more than expected, we could +# move this to only toggle this in CI +debug = 'line-tables-only' + [profile.dev.build-override] opt-level = 3 From 2d0b4b700fde16e31a70b4041d215389b290ab44 Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Tue, 8 Aug 2023 16:42:54 -0700 Subject: [PATCH 2/2] Use latest stable rust 1.71.1 Cargo.toml debug options changed, so update to use them. --- .github/workflows/tests.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 769e64aacc..0ef0bc741f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -431,8 +431,11 @@ jobs: # ls -lath `$(which pg_config) --pkglibdir` `$(which pg_config) --sharedir`/extension echo "" - echo "----- Output Cargo version -----" - cargo --version + echo "----- Stable Rust ----" + rustup update stable + rustup default stable + rustc -vV + cargo -vV echo "" echo "----- Outputting env -----"