Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

2.4 KB
Raw Blame
[package]
name = "xerj-storage"
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
description = "Storage engine for xerj: WAL, segment format, mmap reads, pluggable backends"

[features]
default = []
test-hooks = []

[dependencies]
xerj-common = { path = "../xerj-common" }
# Default features only (no candle/ort): the lexical semantic_text recipe the
# stored codec uses to regenerate derived vectors (#1122, #2433).
xerj-ai = { path = "../xerj-ai", default-features = false }

# Async runtime
tokio = { workspace = true }

# Serialization
serde = { workspace = true }
serde_json = { workspace = true }
rayon = { workspace = true }
memchr = { workspace = true }

# Binary I/O
bytes = { workspace = true }
byteorder = { workspace = true }
memmap2 = { workspace = true }

# Concurrent data structures
compact_str = "0.9"
dashmap = { workspace = true }
arc-swap = { workspace = true }
crossbeam = { workspace = true }

# Checksums
crc32fast = { workspace = true }

# Fast non-cryptographic hash — used to shard the memtable by doc_id
# so that concurrent bulk ingest batches target different shards.
xxhash-rust = { workspace = true }

# FxHash for the stored-codec dict-encode hot maps (trusted keys only —
# field values of the tenant's own documents; no HashDoS surface).
rustc-hash = { workspace = true }

# Compression (WAL payload compression + stored-section codec v2)
lz4_flex = { workspace = true }
zstd = { workspace = true }

# Compressed bitsets (tombstones, doc-value null masks)
roaring = { workspace = true }

# Block bit-packing for the ZNV2 doc-values numeric layout — same crate,
# same 128-lane idiom, as the .post codec in xerj-fts.
bitpacking.workspace = true

# FST term dictionary (doc-values keyword columns)
fst = { workspace = true }

# IDs
uuid = { workspace = true }

# Observability
tracing = { workspace = true }

# Error handling
thiserror = { workspace = true }
anyhow = { workspace = true }

# Testing helpers (also used in rate-limiter)
tempfile = { workspace = true }

# Async trait support
async-trait = "0.1"

# S3-compatible object storage (Cloudflare R2, MinIO, AWS S3).
# Feature selection (no default-https-client / no aws-lc-rs) is pinned in the
# workspace manifest — see engine/Cargo.toml for why.
aws-sdk-s3 = { workspace = true }
aws-smithy-http-client = { workspace = true }

[dev-dependencies]
tokio = { workspace = true }
tempfile = { workspace = true }