forked from darshanDevrai/brahmand
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
80 lines (72 loc) · 2.18 KB
/
Cargo.toml
File metadata and controls
80 lines (72 loc) · 2.18 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
[workspace]
members = [
"clickgraph-client",
"clickgraph-embedded",
"clickgraph-ffi",
]
[package]
name = "clickgraph"
version = "0.6.4-dev"
edition = "2021"
rust-version = "1.85"
[dependencies]
nom = "8.0.0"
uuid = {version = "1.16.0", features = ["v4"]}
tokio = { version = "1", features = ["full"]}
tokio-tungstenite = "0.21"
futures-util = "0.3"
clickhouse = "0.13.2"
serde ={ version = "1", features = ["derive"]}
serde_json = { version = "1.0.140", features = ["preserve_order"] }
bumpalo = "3.14" # Arena allocator for AST string allocation
serde_yaml = "0.9"
axum = "0.8.6"
tower = "0.5"
tower-http = { version = "0.6", features = ["timeout", "limit", "catch-panic"] }
dotenvy = "0.15.7"
thiserror = "2.0.12"
anyhow = "1.0"
clap = { version = "4.5", features = ["derive"] }
# Bolt protocol dependencies
sha2 = "0.10"
base64 = "0.22"
chrono = { version = "0.4", features = ["serde"] }
log = "0.4"
env_logger = "0.11"
bytes = { version = "1.8", features = ["serde"] } # For PackStream (vendored from neo4rs)
validator = { version = "0.20", features = ["derive"] }
# Query cache dependencies
hex = "0.4"
# Function registry
lazy_static = "1.5"
# NOTE: regex is used in handler.rs for Cypher→SQL ID pattern rewriting
# (e.g., `id(alias) IN $param`). We accept the ~500KB binary size cost
# in exchange for clearer, less error-prone parsing vs custom string matching.
regex = "1.12.3"
async-trait = "0.1"
# chdb: embedded ClickHouse (optional — only compiled when feature "embedded" is enabled)
chdb-rust = { version = "1.3.0", optional = true }
[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = { version = "0.6", optional = true }
[features]
default = ["jemalloc"]
jemalloc = ["tikv-jemallocator"]
embedded = ["chdb-rust"]
[dev-dependencies]
clickhouse = { version = "0.13.2", features = ["test-util"] }
mockall = "0.12"
tokio-test = "0.4"
tempfile = "3.8"
async-trait = "0.1"
anyhow = "1.0"
test-case = "3.3" # For PackStream tests
serial_test = "3.2" # For serializing tests that modify global state
[[test]]
name = "unit"
path = "tests/rust/unit/mod.rs"
[[test]]
name = "integration"
path = "tests/rust/integration/mod.rs"
[[test]]
name = "e2e"
path = "tests/rust/e2e/mod.rs"