feat: use anyhow, refactor services & coordinator out of main.rs

This commit is contained in:
2025-08-26 15:33:29 -05:00
parent d4c55a3fd8
commit cff672b30a
8 changed files with 234 additions and 184 deletions

32
Cargo.lock generated
View File

@@ -47,6 +47,12 @@ dependencies = [
"libc",
]
[[package]]
name = "anyhow"
version = "1.0.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0674a1ddeecb70197781e945de4b3b8ffb61fa939a5597bcf48503737663100"
[[package]]
name = "arrayvec"
version = "0.7.6"
@@ -161,6 +167,7 @@ dependencies = [
name = "banner"
version = "0.1.0"
dependencies = [
"anyhow",
"async-trait",
"axum",
"diesel",
@@ -173,6 +180,7 @@ dependencies = [
"serde",
"serde_json",
"serenity",
"thiserror 2.0.16",
"tokio",
"tracing",
"tracing-subscriber",
@@ -2560,7 +2568,16 @@ version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
dependencies = [
"thiserror-impl",
"thiserror-impl 1.0.69",
]
[[package]]
name = "thiserror"
version = "2.0.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3467d614147380f2e4e374161426ff399c91084acd2363eaf549172b3d5e60c0"
dependencies = [
"thiserror-impl 2.0.16",
]
[[package]]
@@ -2574,6 +2591,17 @@ dependencies = [
"syn 2.0.106",
]
[[package]]
name = "thiserror-impl"
version = "2.0.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c5e1be1c48b9172ee610da68fd9cd2770e7a4056cb3fc98710ee6906f0c7960"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.106",
]
[[package]]
name = "thread_local"
version = "1.1.9"
@@ -2902,7 +2930,7 @@ dependencies = [
"rustls 0.22.4",
"rustls-pki-types",
"sha1",
"thiserror",
"thiserror 1.0.69",
"url",
"utf-8",
]