-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
62 lines (52 loc) · 1.95 KB
/
Cargo.toml
File metadata and controls
62 lines (52 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[package]
name = "cortexast"
version = "2.1.0"
edition = "2021"
description = "The AI-Native Code Intelligence Backend for LLM agents. Pure Rust MCP server with semantic code navigation and AST time machine."
authors = ["Thanon Aphithanawat <thanon@aphithanawat.me>"]
repository = "https://github.com/DevsHero/CortexAST"
keywords = ["llm", "mcp", "context", "optimization", "rust", "vector-search"]
categories = ["command-line-utilities", "development-tools"]
license = "MIT"
[dependencies]
clap = { version = "4.5", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
ignore = "0.4"
glob = "0.3"
tokio = { version = "1.0", features = ["full"] }
anyhow = "1.0"
quick-xml = "0.31"
toml = "0.8"
regex = "1.10"
rayon = "1.10"
indicatif = "0.17"
# Hybrid search (local embeddings + flat-file vector index with brute-force cosine)
# model2vec-rs: static embeddings via HuggingFace Hub; no ONNX runtime required.
# Vector index: serde_json flat-file index with O(n*d) cosine search (n<=400 files, d=256 dims).
model2vec-rs = "0.1.4"
# Deterministic content hashing for cache invalidation (replaces mtime).
# xxh3 is a non-cryptographic but collision-resistant hash; ~10 GB/s on M4.
xxhash-rust = { version = "0.8", features = ["xxh3"] }
# Phase 3: resolve ~/.cortexast/global_memory.jsonl default path.
dirs = "6.0.0"
# Rules engine: parse YAML rule files for cortex_get_rules deep-merge.
serde_yaml = "0.9"
# Blocking HTTP client for cortex_remember → CortexSync POST.
# ureq is 100% synchronous — safe to call from run_stdio_server's blocking loop.
ureq = { version = "2.12", features = ["json"] }
csv = "1.3"
# Deep-dive inspection (symbol extraction)
tree-sitter = { version = "0.26.5", features = ["wasm"] }
tree-sitter-rust = "0.21.0"
tree-sitter-typescript = "0.21.0"
tree-sitter-python = "0.21.0"
[dev-dependencies]
tempfile = "3.15.0"
[features]
default = []
[profile.release]
lto = "thin"
codegen-units = 1
strip = true
opt-level = 3