-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
178 lines (145 loc) · 4.36 KB
/
Cargo.toml
File metadata and controls
178 lines (145 loc) · 4.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
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
[package]
name = "semfora-engine"
version = "0.10.0"
edition = "2021"
description = "Semantic code analyzer with TOON output"
license = "Apache-2.0"
repository = "https://github.com/Semfora-AI/semfora-engine"
homepage = "https://github.com/Semfora-AI/semfora-engine"
readme = "README.md"
keywords = ["semantic-analysis", "code-analysis", "mcp", "ai", "tree-sitter"]
categories = ["development-tools", "command-line-utilities"]
[[bin]]
name = "semfora-engine"
path = "src/main.rs"
# Note: semfora-engine-server was consolidated into the main binary
# Use `semfora-engine serve` to run the MCP server
[[bin]]
name = "semfora-daemon"
path = "src/socket_server/bin.rs"
[[bin]]
name = "semfora-benchmark-builder"
path = "src/benchmark_builder/bin.rs"
[[bin]]
name = "semfora-security-compiler"
path = "src/security/compiler/bin.rs"
[features]
default = []
embedded-patterns = []
[dependencies]
# Core parsing
tree-sitter = "0.25"
# Language grammars - Programming languages
tree-sitter-typescript = "0.23"
tree-sitter-javascript = "0.23"
tree-sitter-rust = "0.23"
tree-sitter-python = "0.23"
tree-sitter-go = "0.23"
tree-sitter-java = "0.23"
tree-sitter-c = "0.23"
tree-sitter-cpp = "0.23"
tree-sitter-c-sharp = "0.23"
# Language grammars - Markup & Config
tree-sitter-html = "0.23"
tree-sitter-css = "0.21"
tree-sitter-json = "0.24"
tree-sitter-yaml = "0.6"
tree-sitter-toml-ng = "0.6"
tree-sitter-md = "0.3"
# Additional language grammars
tree-sitter-kotlin-ng = "1.1"
tree-sitter-bash = "0.23"
tree-sitter-scss = "1.0"
tree-sitter-hcl = "1.1"
tree-sitter-xml = "0.7"
tree-sitter-groovy = "0.1"
# tree-sitter-dockerfile requires update to tree-sitter 0.25
# Note: protobuf crate conflicts with tree-sitter 0.24, skipped for now
# CLI & Error handling
clap = { version = "4.5", features = ["derive", "env"] }
thiserror = "1.0"
# Serialization (for JSON output format)
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", features = ["preserve_order"] }
rtoon = "0.2.1"
# MCP Server dependencies
rmcp = { version = "0.9", features = ["server", "transport-io"] }
tokio = { version = "1", features = ["full"] }
schemars = "1.0"
anyhow = "1.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Cache and sharding
chrono = "0.4"
dirs = "5.0"
# Regex for pattern matching (duplicate detection)
regex = "1.10"
# Ripgrep integration (SEM-46)
grep-regex = "0.1"
grep-searcher = "0.1"
grep-matcher = "0.1"
ignore = "0.4"
ordered-float = "4.2"
# Thread-safe layer management (SEM-99)
parking_lot = "0.12"
# Parallel processing
rayon = "1.10"
ahash = "0.8"
# File system watching (SEM-101)
notify = "7.0"
notify-debouncer-mini = "0.5"
# Compression for index files (SEM-109)
flate2 = "1.0"
# Socket server dependencies (Phase 3)
tokio-tungstenite = "0.24"
futures-util = "0.3"
uuid = { version = "1.0", features = ["v4"] }
# SQLite export for call graph visualization
rusqlite = { version = "0.32", features = ["bundled"] }
# Security pattern detection (CVE fingerprinting)
once_cell = "1.19"
bincode = "1.3"
# Using rustls-tls for cross-compilation compatibility (no OpenSSL dependency)
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
# Installer system (setup wizard, MCP client configuration)
dialoguer = "0.11"
console = "0.15"
indicatif = "0.17"
which = "6.0"
json5 = "0.4"
toml = "0.8"
sha2 = "0.10.9"
tree-sitter-tlaplus = "1.5"
# Release profile: optimized for size and reverse-engineering resistance
[profile.release]
strip = true # Remove debug symbols and function names
lto = true # Link-time optimization (smaller binary, harder to decompile)
codegen-units = 1 # Single codegen unit for better optimization
opt-level = "s" # Optimize for size ("z" for even smaller, "3" for speed)
panic = "abort" # No stack unwinding (smaller binary)
[profile.quick]
inherits = "release"
lto = false # Skip LTO for faster builds
codegen-units = 16 # Parallel compilation
[build-dependencies]
cc = "1.0"
[dev-dependencies]
tempfile = "3.8"
criterion = { version = "0.5", features = ["html_reports"] }
memory-stats = "1.1"
sysinfo = "0.31"
# LSP comparison benchmarks
lsp-types = "0.97"
async-lsp = "0.2"
[[bench]]
name = "indexing"
harness = false
[[bench]]
name = "queries"
harness = false
[[bench]]
name = "incremental"
harness = false
[[bench]]
name = "lsp_comparison"
harness = false