-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCargo.toml
More file actions
133 lines (116 loc) · 3.36 KB
/
Cargo.toml
File metadata and controls
133 lines (116 loc) · 3.36 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[package]
name = "codesearch"
version = "1.0.162"
edition = "2021"
authors = ["codesearch contributors"]
license = "Apache-2.0"
description = "Fast, local semantic code search powered by Rust"
repository = "https://github.com/flupkede/codesearch"
readme = "README.md"
keywords = ["search", "semantic", "grep", "embeddings", "code"]
categories = ["command-line-utilities", "development-tools"]
[lib]
name = "codesearch"
path = "src/lib.rs"
[[bin]]
name = "codesearch"
path = "src/main.rs"
[dependencies]
# CLI & I/O
clap = { version = "4.5", features = ["derive", "cargo", "env"] }
tokio = { version = "1.40", features = ["full"] }
tokio-util = { version = "0.7", features = ["rt"] }
ctrlc = "3.4"
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.26.8"
tree-sitter-rust = "0.24.2"
tree-sitter-python = "0.25"
tree-sitter-javascript = "0.25"
tree-sitter-typescript = "0.23.2"
tree-sitter-c = "0.24.2"
tree-sitter-cpp = "0.23.4"
tree-sitter-c-sharp = "0.23.5"
tree-sitter-go = "0.25"
tree-sitter-java = "0.23.5"
tree-sitter-bash = "0.25.1"
tree-sitter-ruby = "0.23.1"
tree-sitter-php = "0.24.2"
tree-sitter-yaml = "0.7.2"
tree-sitter-json = "0.24.8"
tree-sitter-md = "0.5.3"
# File handling
ignore = "0.4"
notify = { version = "6.1", default-features = false, features = ["macos_fsevent"] }
notify-debouncer-full = "0.3"
walkdir = "2.5"
fs2 = "0.4" # Cross-platform file locking
# Caching
moka = { version = "0.12", features = ["sync"] }
# Search & Ranking
tantivy = "0.22"
regex = "1.12"
# Server
axum = "0.7"
tower = "0.5"
tower-http = { version = "0.6", features = ["cors", "trace"] }
# TUI
ratatui = "0.29"
crossterm = "0.28"
# 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", "json"] }
tracing-appender = "0.2"
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 = "1.5.0", features = ["server", "client", "transport-io", "transport-streamable-http-server", "transport-streamable-http-client-reqwest", "macros"] }
schemars = { version = "1.1.0", features = ["derive"] }
reqwest = { version = "0.13", default-features = false, features = ["json", "rustls"] }
sysinfo = { version = "0.38.4", default-features = true }
[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)
csharp_helper_integration = [] # Enable integration tests that require the scip-csharp helper binary