Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
118 lines (102 loc) · 2.73 KB
/
Copy pathCargo.toml
File metadata and controls
118 lines (102 loc) · 2.73 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[package]
name = "demongrep"
version = "0.1.0"
edition = "2021"
authors = ["demongrep contributors"]
license = "Apache-2.0"
description = "Fast, local semantic code search powered by Rust"
repository = "https://github.com/yourusername/demongrep"
readme = "README.md"
keywords = ["search", "semantic", "grep", "embeddings", "code"]
categories = ["command-line-utilities", "development-tools"]
[lib]
name = "demongrep"
path = "src/lib.rs"
[[bin]]
name = "demongrep"
path = "src/main.rs"
[dependencies]
# CLI & I/O
clap = { version = "4.5", features = ["derive", "cargo"] }
tokio = { version = "1.40", features = ["full"] }
anyhow = "1.0"
thiserror = "1.0"
# ML & Embeddings
fastembed = "5.0"
ort = { version = "2.0.0-rc.10", features = ["download-binaries", "copy-dylibs"] }
ndarray = "0.16"
hf-hub = "0.3"
# Vector DB (temporarily commented due to dep conflicts)
# lancedb = "0.5"
# Text processing & Parsing
tree-sitter = "0.25"
tree-sitter-rust = "0.24"
tree-sitter-python = "0.25"
tree-sitter-javascript = "0.25"
tree-sitter-typescript = "0.23"
tree-sitter-c-sharp = "0.23"
tree-sitter-go = "0.25"
tree-sitter-java = "0.23"
tree-sitter-c = "0.24"
tree-sitter-cpp = "0.23"
tree-sitter-ruby = "0.23"
tree-sitter-php = "0.24"
tree-sitter-bash = "0.25"
# File handling
ignore = "0.4"
notify = { version = "6.1", default-features = false, features = ["macos_fsevent"] }
notify-debouncer-full = "0.3"
walkdir = "2.5"
# Caching
moka = { version = "0.12", features = ["sync"] }
# Search & Ranking
tantivy = "0.22"
# Server
axum = "0.7"
tower = "0.5"
tower-http = { version = "0.6", features = ["cors", "trace"] }
# Utilities
rayon = "1.10"
dashmap = "6.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
sha2 = "0.10"
uuid = { version = "1.11", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
colored = "2.1"
indicatif = "0.17"
dirs = "5.0"
num_cpus = "1.16"
async-trait = "0.1"
# Vector database
arroy = "0.5"
heed = "0.20"
bincode = "1.3"
rand = "0.8"
rmcp = { version = "0.9.1", features = ["server", "transport-io", "macros"] }
schemars = { version = "1.1.0", features = ["derive"] }
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
tempfile = "3.13"
pretty_assertions = "1.4"
# Benchmarks will be added later
# [[bench]]
# name = "embedding_bench"
# harness = false
#
# [[bench]]
# name = "chunking_bench"
# harness = false
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = true
[profile.bench]
inherits = "release"
[features]
default = []
cuda = ["ort/cuda"] # Enable CUDA GPU acceleration (requires cuDNN)
tensorrt = ["ort/tensorrt"] # Enable TensorRT acceleration (NVIDIA only)