harness-rs-memory 0.0.62

Every memory and recall backend for harness-rs behind one door: open_memory(url) / open_recall(url) pick the store from the URL. JSONL files with no features; SQLite FTS5, SurrealDB (embedded or remote, BM25 + HNSW hybrid) and CortexDB each behind a feature, so you compile only the store you run.
1
2
3
4
5
6
7
8
9
10
#![cfg(feature = "sqlite")]
use harness_core::{RecallStore, recall_contract};
use harness_memory::sqlite::SqliteRecall;
use std::sync::Arc;

#[tokio::test]
async fn sqlite_recall_satisfies_contract() {
    let store: Arc<dyn RecallStore> = Arc::new(SqliteRecall::open_in_memory().unwrap());
    recall_contract(store).await;
}