aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorTeddy Wing2022-03-20 23:42:00 +0100
committerTeddy Wing2022-03-20 23:42:00 +0100
commitb94637ae80ed4b6b2a725c3ff22e821233be0f33 (patch)
tree2262080a9bae11cabefc62e61ba1ddd283cf54fb /Cargo.toml
parentd12125737b9068a653124c21cfc66b67c4b7704b (diff)
downloadyaqlite-b94637ae80ed4b6b2a725c3ff22e821233be0f33.tar.bz2
main: Print errors to standard error instead of panicking with `unwrap`
Use `anyhow` to add context to errors and a `main()` wrapper that prints error messages and their context to standard error.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml2
1 files changed, 2 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 7b6e6b5..23ee553 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.0.1"
edition = "2021"
[dependencies]
+anyhow = "1.0.56"
+exitcode = "1.1.2"
rusqlite = { version = "0.27.0", features = ["modern_sqlite"] }
thiserror = "1.0.30"
yaml-rust = { package = "yaml-rust-davvid", version = "0.5.1" }