diff options
author | Teddy Wing | 2022-03-20 23:42:00 +0100 |
---|---|---|
committer | Teddy Wing | 2022-03-20 23:42:00 +0100 |
commit | b94637ae80ed4b6b2a725c3ff22e821233be0f33 (patch) | |
tree | 2262080a9bae11cabefc62e61ba1ddd283cf54fb /Cargo.toml | |
parent | d12125737b9068a653124c21cfc66b67c4b7704b (diff) | |
download | yaqlite-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.toml | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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" } |