-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
206 lines (175 loc) · 5.64 KB
/
Copy pathCargo.toml
File metadata and controls
206 lines (175 loc) · 5.64 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
[workspace]
members = [
"crates/codetriever",
"crates/codetriever-api",
"crates/codetriever-common",
"crates/codetriever-config",
"crates/codetriever-meta-data",
"crates/codetriever-embeddings",
"crates/codetriever-vector-data",
"crates/codetriever-parsing",
"crates/codetriever-search",
"crates/codetriever-indexing",
"crates/codetriever-test-utils",
]
resolver = "3"
[workspace.package]
version = "0.2.1"
edition = "2024"
license = "MIT"
authors = ["LaFollett Labs LLC"]
repository = "https://github.com/clafollett/codetriever"
[workspace.dependencies]
# Async runtime - only features we actually use (not "full")
tokio = { version = "1.47.1", features = ["rt-multi-thread", "macros", "sync", "time", "signal"] }
tokio-util = "0.7.16"
futures = "0.3.31"
futures-util = "0.3.31"
async-trait = "0.1.89"
# Web framework
axum = { version = "0.8.3", features = ["json", "macros", "ws", "multipart"] }
tower = { version = "0.5.2", features = ["util"] }
reqwest = { version = "0.12.23", default-features = false, features = [
"json",
"stream",
"rustls-tls",
] }
# Date/Time
chrono = "0.4.42"
uuid = { version = "1.18.1", features = ["v4", "v5", "serde"] }
# Database
sqlx = { version = "0.8.6", features = [
"runtime-tokio",
"postgres",
"uuid",
"chrono",
"migrate",
] }
# Serialization
serde = { version = "1.0.226", features = ["derive"] }
serde_json = "1.0.145"
serde_yaml = "0.9.34"
toml = "0.8.23"
schemars = "0.8.22"
# Error handling
anyhow = "1.0.100"
thiserror = "1.0.69"
# Logging
log = "0.4.28"
tracing = "0.1.41"
tracing-appender = "0.2.3"
tracing-subscriber = { version = "0.3.20", features = ["json", "env-filter"] }
# CLI
clap = { version = "4.5.48", features = ["derive"] }
# Utils
regex = "1.11.3"
urlencoding = "2.1.3"
dirs = "6.0.0"
tempfile = "3.23.0"
dotenvy = "0.15.7"
lazy_static = "1.5.0"
once_cell = "1.21.3"
lru = "0.12.5"
dashmap = "6.1.0" # Concurrent HashMap for storage caching
bytes = "1.10.1"
walkdir = "2.5.0"
ignore = "0.4.23"
rayon = "1.11.0"
# Performance & Observability
metrics = "0.24.2"
metrics-exporter-prometheus = "0.17.2"
opentelemetry = "0.30.0"
opentelemetry-otlp = "0.30.0"
tracing-opentelemetry = "0.31.0"
# Cryptography
sha2 = "0.10.9"
# Git integration
git2 = "0.19.0"
# ML/AI dependencies
candle-core = "0.9.1"
candle-nn = "0.9.1"
candle-transformers = "0.9.1"
hf-hub = { version = "0.4.3", features = ["tokio"] }
tokenizers = { version = "0.22.1", default-features = false, features = ["onig"] }
tiktoken-rs = "0.6.0"
# Vector database
qdrant-client = "1.15.0"
# Tree-sitter language support
tree-sitter = "0.25.10"
tree-sitter-rust = "0.24.0"
tree-sitter-python = "0.23.6"
tree-sitter-javascript = "0.25.0"
tree-sitter-typescript = "0.23.2"
tree-sitter-go = "0.25.0"
tree-sitter-c = "0.24.1"
tree-sitter-cpp = "0.23.4"
tree-sitter-java = "0.23.5"
tree-sitter-c-sharp = "0.23.1"
tree-sitter-json = "0.24.8"
tree-sitter-xml = "0.7.0"
tree-sitter-yaml = "0.7.1"
tree-sitter-bash = "0.25.0"
tree-sitter-html = "0.23.2"
tree-sitter-powershell = "0.25.9"
tree-sitter-sequel = "0.3.10"
# MCP/Agenterra
agenterra-rmcp = { version = "0.1.5", features = [
"macros",
"server",
"transport-sse-server",
"transport-io",
"auth",
] }
# API Documentation
utoipa = "5.4.0"
utoipa-swagger-ui = "9.0.2"
# Signal handling
signal-hook = "0.3.18"
signal-hook-tokio = "0.3.1"
# Template engine
tera = "1.20.0"
# Dev/Test dependencies
wiremock = "0.6.5"
tokio-test = "0.4.4"
[workspace.lints.clippy]
# Enforce pedantic and nursery lint groups for better code quality
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
# STRICT: Error handling - forces proper error handling in production code
unwrap_used = "warn" # Forces us to handle errors properly
expect_used = "warn" # Forces better error messages
panic = "warn" # No explicit panics in production code
# STRICT: Safety and correctness
indexing_slicing = "warn" # Forces bounds checking with .get()
arithmetic_side_effects = "warn" # Prevents overflow bugs
# STRICT: Code quality and idioms
uninlined_format_args = "deny" # MUST use format!("{x}") instead of format!("{}", x) - cleaner!
wildcard_imports = "warn" # Forces explicit imports
enum_glob_use = "warn" # No glob imports from enums
if_not_else = "warn" # Prevents confusing negative conditions
items_after_statements = "warn" # Forces declarations before code
match_same_arms = "warn" # Prevents duplicate match arms
semicolon_if_nothing_returned = "warn" # Forces explicit returns
use_self = "warn" # Forces using Self in impl blocks
clone_on_ref_ptr = "warn" # Prevents unnecessary Arc/Rc clones
inefficient_to_string = "warn" # Forces efficient string conversions
# STRICT: Documentation - forces AI agents to document code properly!
missing_docs_in_private_items = "allow" # Don't require docs for private items
# But DO require docs for public items (comes with pedantic)
# STRICT: Documentation for safety-critical information
missing_errors_doc = "warn" # Document what errors functions can return
missing_panics_doc = "warn" # Document when functions might panic
# Relaxed: Allow some patterns that are common/acceptable
must_use_candidate = "allow" # Don't require #[must_use] everywhere
module_name_repetitions = "allow" # Allow IndexerError in indexer module
too_many_lines = "allow" # Don't limit function length
cognitive_complexity = "allow" # Don't limit function complexity
needless_for_each = "allow" # Derive macros sometimes generate this pattern
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
[profile.dev]
opt-level = 0
debug = true