perf: feature-gate smart deps, drop ONNX/qdrant from backend binary

wiring `smart` feature gates fastembed+qdrant; bootstrap no longer
links ONNX Runtime (~300 MiB RSS savings). prod compose stripped
to backend-only (no worker/qdrant).
This commit is contained in:
2026-08-08 15:23:39 +02:00
parent 425376874c
commit c7e1a867ed
5 changed files with 39 additions and 70 deletions

View File

@@ -3,6 +3,10 @@ name = "wiring"
version = "0.1.0"
edition = "2024"
[features]
default = []
smart = ["dep:fastembed-adapter", "dep:qdrant-adapter"]
[dependencies]
# domain + application
domain = { workspace = true }
@@ -13,8 +17,8 @@ sqlite = { workspace = true }
auth = { workspace = true }
event-publisher-memory = { workspace = true }
nats = { workspace = true }
fastembed-adapter = { workspace = true }
qdrant-adapter = { workspace = true }
fastembed-adapter = { workspace = true, optional = true }
qdrant-adapter = { workspace = true, optional = true }
# utilities
tokio = { workspace = true }