d15afda9b2
Wire best-effort Meilisearch index sync into the admin write paths (create/update/delete/set_fields/set_visibility). Adds SearchClient::sync_object (reindex if the object exists, remove if gone — one uniform path), an optional AppState.search client, and a reindex helper that logs failures via tracing without failing the committed write. Server gains MEILI_URL/MEILI_MASTER_KEY/MEILI_INDEX config; search stays disabled (no-op) when unset. reindex_all remains the recovery path. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
37 lines
731 B
TOML
37 lines
731 B
TOML
[package]
|
|
name = "server"
|
|
version = "0.0.0"
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "server"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
tokio.workspace = true
|
|
axum.workspace = true
|
|
clap.workspace = true
|
|
anyhow.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
api = { path = "../api" }
|
|
auth = { path = "../auth" }
|
|
db = { path = "../db" }
|
|
domain = { path = "../domain" }
|
|
search = { path = "../search" }
|
|
rpassword.workspace = true
|
|
|
|
[dev-dependencies]
|
|
reqwest.workspace = true
|
|
serde_json.workspace = true
|
|
api = { path = "../api" }
|
|
auth = { path = "../auth" }
|
|
db = { path = "../db" }
|
|
domain = { path = "../domain" }
|
|
sqlx.workspace = true
|
|
temp-env = "0.3"
|