forked from onur-gokyildiz-bhi/codescope
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
98 lines (76 loc) · 2.68 KB
/
Copy pathCargo.toml
File metadata and controls
98 lines (76 loc) · 2.68 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
[workspace]
members = ["crates/core", "crates/mcp-server", "crates/cli", "crates/bench", "crates/web", "crates/lsp", "crates/e2e"]
resolver = "2"
[workspace.package]
version = "0.8.12"
edition = "2021"
license = "MIT"
authors = ["Onur Gokyildiz"]
description = "Rust-native code intelligence engine powered by SurrealDB knowledge graphs"
repository = "https://github.com/onurgokyildiz/codescope"
homepage = "https://github.com/onurgokyildiz/codescope"
keywords = ["code-analysis", "graph-database", "mcp", "rag", "surrealdb"]
categories = ["development-tools", "command-line-utilities"]
# R8 — pinned bundled surreal server version. The release workflow
# reads `SURREAL_VERSION` from env; this metadata exists so readers of
# Cargo.toml (and future `codescope status` drift checks) have a
# single source of truth.
[workspace.metadata.surreal]
version = "3.0.5"
[workspace.dependencies]
# Database
surrealdb = { version = "3.0", default-features = false, features = ["kv-surrealkv", "protocol-ws"] }
# Parsing
tree-sitter = "0.25"
# MCP
rmcp = { version = "1.3", features = ["server", "transport-io", "transport-streamable-http-server"] }
# Async
tokio = { version = "1", features = ["full"] }
# Git
git2 = { version = "0.20", features = ["vendored-openssl"] }
# CLI
clap = { version = "4", features = ["derive"] }
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# HTTP
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
# Error handling
anyhow = "1"
thiserror = "2"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Observability (OpenTelemetry — OTLP export)
opentelemetry = "0.27"
opentelemetry_sdk = { version = "0.27", features = ["rt-tokio"] }
opentelemetry-otlp = { version = "0.27", features = ["tonic", "metrics"] }
tracing-opentelemetry = "0.28"
# Async traits
async-trait = "0.1"
# Hashing
sha2 = "0.10"
hex = "0.4"
# File walking
walkdir = "2"
ignore = "0.4"
# Parallel processing
rayon = "1.11"
# JSON Schema (for MCP tool parameters)
schemars = "1"
# Web server
axum = "0.8"
tower = { version = "0.5", features = ["util"] }
tower-http = { version = "0.6", features = ["cors"] }
# Local embeddings (in-process, no external service needed)
fastembed = "5"
# File watching
notify = "8"
notify-debouncer-mini = "0.7"
# === Binary size optimization ===
[profile.release]
opt-level = "z" # Optimize for size (not speed)
lto = true # Link-Time Optimization — cross-crate dead code elimination
codegen-units = 1 # Single codegen unit — better LTO, smaller binary
strip = true # Strip debug symbols
panic = "abort" # No unwinding = smaller binary