Skip to content

Commit

Permalink
Have cargo use RUST_BACKTRACE=1 by default in this workspace
Browse files Browse the repository at this point in the history
(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 <[email protected]>
  • Loading branch information
daira committed Nov 2, 2024
1 parent a7cdf8d commit 5672b30
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[env]
RUST_BACKTRACE = "1"
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,13 @@ jobs:
cargo test
--workspace
${{ steps.prepare.outputs.feature-flags }}
env:
RUST_BACKTRACE: 1
- name: Run slow tests
run: >
cargo test
--workspace
${{ steps.prepare.outputs.feature-flags }}
--features expensive-tests
-- --ignored
env:
RUST_BACKTRACE: 1
- name: Verify working directory is clean
run: git diff --exit-code

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
target
.cargo

0 comments on commit 5672b30

Please sign in to comment.