Create lib.rs so all binaries can share library code directly instead
of shelling out to poc-memory. memory-search now calls search::search()
and store::Store::load() in-process instead of Command::new("poc-memory").
The load-context call still shells out (needs get_group_content moved
from main.rs to a library module).
Also: add search::format_results(), deduplicate extract_query_terms.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
63 lines
1.3 KiB
TOML
63 lines
1.3 KiB
TOML
[package]
|
|
name = "poc-memory"
|
|
version = "0.4.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
capnp = "0.20"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
bincode = "1"
|
|
regex = "1"
|
|
chrono = "0.4"
|
|
clap = { version = "4", features = ["derive"] }
|
|
libc = "0.2"
|
|
faer = "0.24.0"
|
|
rkyv = { version = "0.7", features = ["validation", "std"] }
|
|
memmap2 = "0.9"
|
|
rayon = "1"
|
|
peg = "0.8"
|
|
paste = "1"
|
|
jobkit = { path = "/home/kent/jobkit" }
|
|
log = "0.4"
|
|
|
|
# poc-daemon deps
|
|
capnp-rpc = "0.20"
|
|
futures = "0.3"
|
|
tokio = { version = "1", features = ["full"] }
|
|
tokio-util = { version = "0.7", features = ["compat"] }
|
|
toml = "0.8"
|
|
tokio-rustls = "0.26"
|
|
rustls = { version = "0.23", default-features = false, features = ["ring", "logging", "std", "tls12"] }
|
|
webpki-roots = "1"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
tracing-appender = "0.2"
|
|
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls-webpki-roots", "json"] }
|
|
|
|
[build-dependencies]
|
|
capnpc = "0.20"
|
|
|
|
[lib]
|
|
name = "poc_memory"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "poc-memory"
|
|
path = "src/main.rs"
|
|
|
|
[[bin]]
|
|
name = "memory-search"
|
|
path = "src/bin/memory-search.rs"
|
|
|
|
[[bin]]
|
|
name = "poc-daemon"
|
|
path = "src/bin/poc-daemon/main.rs"
|
|
|
|
[[bin]]
|
|
name = "poc-hook"
|
|
path = "src/bin/poc-hook.rs"
|
|
|
|
[profile.release]
|
|
opt-level = 2
|