From 5672b307b688e3375e509b29332801b3bddb952b Mon Sep 17 00:00:00 2001 From: Daira-Emma Hopwood Date: Sat, 2 Nov 2024 18:44:53 +0000 Subject: [PATCH] Have `cargo` use `RUST_BACKTRACE=1` by default in this workspace (instead of only in CI), so that there is no need to set it manually. You can override this by setting `RUST_BACKTRACE=0`, or `RUST_BACKTRACE=full` for a full backtrace. Signed-off-by: Daira-Emma Hopwood --- .cargo/config.toml | 2 ++ .github/workflows/ci.yml | 4 ---- .gitignore | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000000..e724ea0856 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[env] +RUST_BACKTRACE = "1" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd242a7578..e551e74611 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,8 +66,6 @@ jobs: cargo test --workspace ${{ steps.prepare.outputs.feature-flags }} - env: - RUST_BACKTRACE: 1 - name: Run slow tests run: > cargo test @@ -75,8 +73,6 @@ jobs: ${{ steps.prepare.outputs.feature-flags }} --features expensive-tests -- --ignored - env: - RUST_BACKTRACE: 1 - name: Verify working directory is clean run: git diff --exit-code diff --git a/.gitignore b/.gitignore index cd8e4b1f6f..eb5a316cbd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ target -.cargo