blog/backend/Cargo.toml
SquidSpirit 1900628a8f BLOG-90 feat: integrate Sentry for error tracking and reporting
- Added `anyhow` and `sentry` dependencies to the backend and feature crates.
- Introduced `SentryConfiguration` to manage Sentry settings.
- Updated error handling in various services to use `anyhow::Error` for unexpected errors.
- Captured errors using Sentry in the web handlers for better observability.
- Removed specific database error handling in favor of a more generic unexpected error handling.
- Configured Sentry in the main application entry point and wrapped the Actix app with Sentry middleware.
2025-08-06 17:25:32 +08:00

46 lines
1.1 KiB
TOML

[workspace]
members = ["server", "feature/auth", "feature/image", "feature/post"]
resolver = "2"
[workspace.package]
version = "0.2.0"
edition = "2024"
[workspace.dependencies]
actix-multipart = "0.7.2"
actix-session = { version = "0.10.1", features = ["redis-session"] }
actix-web = "4.10.2"
anyhow = "1.0.98"
async-trait = "0.1.88"
chrono = "0.4.41"
dotenv = "0.15.0"
env_logger = "0.11.8"
futures = "0.3.31"
hex = "0.4.3"
log = "0.4.27"
openidconnect = { version = "4.0.1", features = [
"reqwest",
"reqwest-blocking",
] }
percent-encoding = "2.3.1"
sentry = { version = "0.42.0", features = ["actix", "anyhow"] }
serde = { version = "1.0.219", features = ["derive"] }
sqlx = { version = "0.8.5", features = [
"chrono",
"macros",
"postgres",
"runtime-tokio-rustls",
] }
tokio = { version = "1.45.0", features = ["full"] }
utoipa = { version = "5.4.0", features = [
"actix_extras",
"non_strict_integers",
"url",
] }
utoipa-redoc = { version = "6.0.0", features = ["actix-web"] }
server.path = "server"
auth.path = "feature/auth"
image.path = "feature/image"
post.path = "feature/post"