feat: Implement NATS-based event processing for note smart features and add Qdrant collection auto-creation.

This commit is contained in:
2025-12-26 00:19:41 +01:00
parent 178d59540e
commit 64f8118228
11 changed files with 155 additions and 6 deletions

39
Cargo.lock generated
View File

@@ -114,6 +114,42 @@ dependencies = [
"stable_deref_trait",
]
[[package]]
name = "async-nats"
version = "0.39.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a798aab0c0203b31d67d501e5ed1f3ac6c36a329899ce47fc93c3bea53f3ae89"
dependencies = [
"base64 0.22.1",
"bytes",
"futures",
"memchr",
"nkeys",
"nuid",
"once_cell",
"pin-project",
"portable-atomic",
"rand 0.8.5",
"regex",
"ring",
"rustls-native-certs 0.7.3",
"rustls-pemfile",
"rustls-webpki 0.102.8",
"serde",
"serde_json",
"serde_nanos",
"serde_repr",
"thiserror 1.0.69",
"time",
"tokio",
"tokio-rustls",
"tokio-util",
"tokio-websockets",
"tracing",
"tryhard",
"url",
]
[[package]]
name = "async-nats"
version = "0.45.0"
@@ -2135,6 +2171,7 @@ name = "notes-api"
version = "0.1.0"
dependencies = [
"anyhow",
"async-nats 0.39.0",
"async-trait",
"axum 0.8.8",
"axum-login",
@@ -2197,7 +2234,7 @@ name = "notes-worker"
version = "0.1.0"
dependencies = [
"anyhow",
"async-nats",
"async-nats 0.45.0",
"async-trait",
"bytes",
"chrono",