forked from bartolli/codanna
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
159 lines (143 loc) · 5.26 KB
/
Cargo.toml
File metadata and controls
159 lines (143 loc) · 5.26 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
[package]
name = "codanna"
version = "0.9.10"
authors = ["Angel Bartolli <[email protected]>"]
edition = "2024"
description = "Code Intelligence for Large Language Models"
documentation = "https://docs.rs/codanna"
homepage = "https://github.com/bartolli/codanna"
repository = "https://github.com/bartolli/codanna"
license = "Apache-2.0"
readme = "README.md"
keywords = ["mcp-server", "code-intelligence", "semantic-search", "llm", "rag"]
categories = ["development-tools", "command-line-utilities", "parsing", "text-processing", "compilers"]
autoexamples = false
exclude = [".github/", "contributing/", "tests/", "docs/"]
[package.metadata.binstall]
pkg-fmt = "txz"
bin-dir = "{ name }-{ version }-{ target-family }/{ bin }{ binary-ext }"
[package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-linux-x64.tar.xz"
bin-dir = "{ name }-{ version }-linux-x64/{ bin }"
[package.metadata.binstall.overrides.x86_64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-macos-x64.tar.xz"
bin-dir = "{ name }-{ version }-macos-x64/{ bin }"
[package.metadata.binstall.overrides.aarch64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-macos-arm64.tar.xz"
bin-dir = "{ name }-{ version }-macos-arm64/{ bin }"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-windows-x64.zip"
pkg-fmt = "zip"
bin-dir = "{ name }-{ version }-windows-x64/{ bin }{ binary-ext }"
[dependencies]
anyhow = "1.0.100"
bitflags = "2.10.0"
clap = { version = "4.5.54", features = ["derive", "color", "env"] }
crossbeam-channel = "0.5.15"
dashmap = "6.1.0"
dirs = "6.0.0"
figment = { version = "0.10.19", features = ["toml", "env"] }
ignore = "0.4.25"
memmap2 = "0.9.9"
notify = "8.2.0"
num_cpus = "1.17.0"
parking_lot = "0.12.5"
rayon = "1.11.0"
rmcp = { version = "0.12.0", features = ["server", "client", "transport-io", "transport-child-process", "transport-streamable-http-server", "transport-worker"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149"
sha2 = "0.10"
hmac = "0.12"
hex = "0.4"
tantivy = "0.25.0" # Note: lru 0.12.5 has RUSTSEC-2026-0002 (IterMut unsoundness) - waiting for tantivy update
thiserror = "2.0.17"
tokio = { version = "1.49.0", features = ["full"] }
toml = { version = "0.9.8", features = ["preserve_order"] }
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.22", features = ["env-filter"] }
tree-sitter = "0.26.3"
tree-sitter-go = "0.25.0" # Upgraded to ABI-15
tree-sitter-gdscript = "6.1.0"
tree-sitter-java = "0.23.5"
tree-sitter-javascript = "0.25.0"
tree-sitter-kotlin-codanna = "0.3.9"
tree-sitter-php = "0.24.1"
tree-sitter-python = "0.25.0"
tree-sitter-rust = "0.24.0"
tree-sitter-typescript = "0.23.2"
walkdir = "2.5.0"
fastembed = "5.8.0"
rand = "0.9.2"
indicatif = "0.18.3"
comfy-table = "7.2.1"
console = "0.16.2"
owo-colors = "4.2.3"
axum = { version = "0.8.8", optional = true }
tower = { version = "0.5.2", optional = true }
tower-http = { version = "0.6.8", features = ["cors"], optional = true }
serde_urlencoded = "0.7"
tokio-util = "0.7.18"
axum-server = { version = "0.8.0", features = ["tls-rustls-no-provider"], optional = true }
rustls = { version = "0.23.35", default-features = false, features = ["ring"], optional = true }
rcgen = { version = "0.14.6", optional = true }
is-terminal = "0.4.17"
regex = "1.12.2"
tree-sitter-c = "0.24.1"
tree-sitter-c-sharp = "0.23.1"
tree-sitter-cpp = "0.23.4"
chrono = "0.4.42"
git2 = { version = "0.20.3", features = ["vendored-openssl"] }
tempfile = "3.24.0"
serde_json5 = "0.2.1"
tree-sitter-swift = "0.7.1"
glob = "0.3.3"
async-trait = "0.1.89"
sysinfo = "0.37.2"
[dev-dependencies]
criterion = { version = "0.8.1", features = ["html_reports"] }
# ort = { version = "=2.0.0-rc.10", default-features = false }
testcontainers = "0.26.3"
thread-id = "5.0.0"
[features]
default = ["http-server"]
http-server = ["axum", "tower", "tower-http"]
https-server = ["http-server", "axum-server", "rustls", "rcgen"]
axum = ["dep:axum"]
tower = ["dep:tower"]
tower-http = ["dep:tower-http"]
axum-server = ["dep:axum-server"]
rustls = ["dep:rustls"]
rcgen = ["dep:rcgen"]
# GPU/Hardware Acceleration (requires vendored fastembed in .cargo/config.toml)
# Upstream fastembed does not expose these features yet.
# gpu-cuda = ["fastembed/cuda"]
# gpu-tensorrt = ["fastembed/tensorrt"]
# gpu-coreml = ["fastembed/coreml"]
# gpu-directml = ["fastembed/directml"]
# gpu-openvino = ["fastembed/openvino"]
# gpu-rocm = ["fastembed/rocm"]
[profile.release]
# opt-level = 3
# lto = true
# codegen-units = 1
# strip = true
[lints.clippy]
# Minimal lints - main enforcement via CI with `cargo clippy -- -D warnings`
# See clippy.toml for behavior configuration (thresholds, etc.)
uninlined_format_args = "warn"
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(feature, values("gpu-cuda", "gpu-tensorrt", "gpu-coreml", "gpu-directml", "gpu-openvino", "gpu-rocm"))'
] }
[[example]]
name = "simple_progress_demo"
path = "examples/simple_progress_demo.rs"
[[example]]
name = "pipeline_metrics_demo"
path = "examples/pipeline_metrics_demo.rs"
[[bench]]
name = "unified_output_bench"
harness = false
[[bench]]
name = "kotlin_parser_bench"
harness = false