- Added SQLite and Postgres event queue implementations with migrations and payload structures. - Created migration scripts for both SQLite and Postgres event queues. - Implemented event publishing and consumption logic for both adapters. - Added serialization and deserialization for domain events to database payloads. - Updated presentation and worker crates to support new event queue features. - Refactored event handling to utilize the new database-backed event queues.
40 lines
1.1 KiB
TOML
40 lines
1.1 KiB
TOML
[package]
|
|
name = "worker"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[features]
|
|
default = ["sqlite"]
|
|
sqlite = ["dep:sqlite", "dep:sqlite-event-queue"]
|
|
postgres = ["dep:postgres", "dep:postgres-event-queue"]
|
|
|
|
[dependencies]
|
|
domain = { workspace = true }
|
|
application = { workspace = true }
|
|
event-publisher = { workspace = true }
|
|
tokio = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
chrono = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
futures = { workspace = true }
|
|
dotenvy = { workspace = true }
|
|
uuid = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
async-trait = { workspace = true }
|
|
auth = { workspace = true }
|
|
metadata = { workspace = true }
|
|
poster-fetcher = { workspace = true }
|
|
poster-storage = { workspace = true }
|
|
export = { workspace = true }
|
|
nats = { workspace = true }
|
|
sqlx = { workspace = true }
|
|
|
|
# Optional — database backends
|
|
sqlite = { workspace = true, optional = true }
|
|
postgres = { workspace = true, optional = true }
|
|
sqlite-event-queue = { workspace = true, optional = true }
|
|
postgres-event-queue = { workspace = true, optional = true }
|