Skip to content

Commit 1ddfe95

Browse files
Add backtrace feature to anyhow
Improved backtrace support for errors in Rust is currently in progress: rust-lang/rust#53487. Adding the feature lets anyhow add backtraces already which greatly improves readability of errors in tests.
1 parent 24c3f28 commit 1ddfe95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ postgres = { version = "0.19.2", features = ["with-serde_json-1"] }
1515
serde = { version = "1.0", features = ["derive"] }
1616
serde_json = "1.0"
1717
typetag = "0.1.7"
18-
anyhow = "1.0.44"
18+
anyhow = { version = "1.0.44", features = ["backtrace"] }
1919
clap = { version = "3.0.0", features = ["derive"] }
2020
toml = "0.5"
2121
version = "3.0.0"

0 commit comments

Comments
 (0)