-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
87 lines (75 loc) · 2.21 KB
/
Cargo.toml
File metadata and controls
87 lines (75 loc) · 2.21 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
[package]
name = "cortex"
version = "1.0.4"
edition = "2024"
license = "MIT"
[dependencies]
rusqlite = { version = "0.32", features = ["bundled"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
clap = { version = "4", features = ["derive"] }
anyhow = "1"
thiserror = "2"
toml = "0.8"
# Tree-sitter core
tree-sitter = "0.25"
# Tree-sitter grammar crates (10 original languages)
tree-sitter-python = "0.23"
tree-sitter-typescript = "0.23"
tree-sitter-javascript = "0.23"
tree-sitter-go = "0.23"
tree-sitter-rust = "0.23"
tree-sitter-java = "0.23"
tree-sitter-c-sharp = "0.23"
tree-sitter-cpp = "0.23"
tree-sitter-ruby = "0.23"
tree-sitter-c = "0.23"
# New tree-sitter grammar crates (15 additional languages)
tree-sitter-php = "0.24"
tree-sitter-scala = "0.26"
tree-sitter-swift = "0.7"
tree-sitter-dart = "0.2"
tree-sitter-elixir = "0.3"
tree-sitter-haskell = "0.23"
tree-sitter-lua = "0.5"
tree-sitter-zig = "1.1"
tree-sitter-bash = "0.25"
tree-sitter-r = "1.2"
tree-sitter-objc = "3.0"
tree-sitter-ocaml = "0.25"
tree-sitter-julia = "0.23"
tree-sitter-hcl = "1.1"
tree-sitter-yaml = "0.7"
# Regex for pattern detection
regex = "1"
# Hashing and parallelism
sha2 = "0.10"
rayon = "1"
walkdir = "2"
# File watcher and async runtime
notify = "7"
tokio = { version = "1", features = ["full"] }
uuid = { version = "1", features = ["v4"] }
# HTTP client for update checks
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
# Optional: visualizer HTTP server
axum = { version = "0.7", optional = true }
tower-http = { version = "0.5", features = ["cors"], optional = true }
# Optional: semantic search (ONNX inference)
ort = { version = "2.0.0-rc.12", optional = true }
tokenizers = { version = "0.21", optional = true }
ndarray = { version = "0.16", optional = true }
[features]
default = ["visualizer"]
visualizer = ["axum", "tower-http"]
semantic = ["dep:ort", "dep:tokenizers", "dep:ndarray"]
[dev-dependencies]
tempfile = "3"
assert_cmd = "2"
predicates = "3"
proptest = "1"
reqwest = { version = "0.12", features = ["json"] }
tower = { version = "0.5", features = ["util"] }
http-body-util = "0.1"