refactor: switch error handle to snafu

This commit is contained in:
2025-04-02 00:22:52 +08:00
parent 011f62829a
commit 234441e6a3
32 changed files with 549 additions and 436 deletions

View File

@@ -22,6 +22,7 @@ testcontainers = [
]
[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1.42", features = ["macros", "fs", "rt-multi-thread"] }
@@ -48,7 +49,6 @@ reqwest = { version = "0.12", default-features = false, features = [
"rustls-tls",
"cookies",
] }
thiserror = "2"
rss = "2"
bytes = "1.9"
itertools = "0.14"
@@ -83,9 +83,7 @@ testcontainers = { version = "0.23.3", features = [
"reusable-containers",
], optional = true }
testcontainers-modules = { version = "0.11.4", optional = true }
color-eyre = "0.6"
log = "0.4.22"
anyhow = "1.0.95"
bollard = { version = "0.18", optional = true }
async-graphql = { version = "7", features = [] }
async-graphql-axum = "7"
@@ -131,7 +129,8 @@ futures-util = "0.3.31"
ipnetwork = "0.21.1"
ctor = "0.4.0"
librqbit = "8.0.0"
typed-builder = "0.21.0"
snafu = { version = "0.8.5", features = ["futures"] }
[dev-dependencies]
serial_test = "3"
insta = { version = "1", features = ["redactions", "yaml", "filters"] }