init worker

This commit is contained in:
2025-12-23 16:06:52 +01:00
parent 8396d7f5d3
commit 4535d6fc1c
7 changed files with 578 additions and 2 deletions

27
notes-worker/Cargo.toml Normal file
View File

@@ -0,0 +1,27 @@
[package]
name = "notes-worker"
version = "0.1.0"
edition = "2024"
[dependencies]
anyhow = "1.0.100"
async-nats = "0.45.0"
notes-domain = { path = "../notes-domain" }
notes-infra = { path = "../notes-infra" }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.146"
tokio = { version = "1.48.0", features = ["full"] }
chrono = { version = "0.4.42", features = ["serde"] }
sqlx = { version = "0.8.6", features = [
"sqlite",
"runtime-tokio",
"chrono",
"migrate",
] }
thiserror = "2.0.17"
bytes = "1.11.0"
futures-util = "0.3.31"
async-trait = "0.1.89"
tracing = "0.1"
tracing-subscriber = { version = "0.3.22", features = ["env-filter"] }
dotenvy = "0.15.7"