treewide: better error handling

This commit is contained in:
raf 2025-05-23 07:58:03 +03:00
commit db35594121
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 214 additions and 97 deletions

28
Cargo.lock generated
View file

@ -67,6 +67,12 @@ dependencies = [
"windows-sys 0.59.0",
]
[[package]]
name = "anyhow"
version = "1.0.98"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487"
[[package]]
name = "autocfg"
version = "1.4.0"
@ -369,12 +375,14 @@ dependencies = [
name = "mrc"
version = "0.1.0"
dependencies = [
"anyhow",
"clap",
"clap_derive",
"ipc-channel",
"native-tls",
"serde",
"serde_json",
"thiserror",
"tokio",
"tokio-native-tls",
"tracing",
@ -751,6 +759,26 @@ dependencies = [
"windows-sys 0.59.0",
]
[[package]]
name = "thiserror"
version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "thread_local"
version = "1.1.8"