forked from GrafeoDB/grafeo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
205 lines (180 loc) · 5.09 KB
/
Copy pathCargo.toml
File metadata and controls
205 lines (180 loc) · 5.09 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
[workspace]
resolver = "2"
members = [
"crates/grafeo",
"crates/grafeo-common",
"crates/grafeo-core",
"crates/grafeo-adapters",
"crates/grafeo-storage",
"crates/grafeo-engine",
"crates/grafeo-cli",
"crates/bindings/python",
"crates/bindings/node",
"crates/bindings/c",
"crates/bindings/wasm",
"crates/bindings/common",
"crates/grafeo-spec-tests",
"examples/rust",
]
[workspace.package]
version = "0.5.42"
edition = "2024"
rust-version = "1.91.1"
license = "Apache-2.0"
repository = "https://github.com/GrafeoDB/grafeo"
authors = ["S.T. Grond"]
description = "A high-performance, embeddable graph database with support for LPG RDF and all major graph query languages."
[workspace.dependencies]
# Internal crates (default-features = false to allow per-crate control)
grafeo-common = { path = "crates/grafeo-common", version = "0.5.42" }
grafeo-core = { path = "crates/grafeo-core", version = "0.5.42", default-features = false }
grafeo-adapters = { path = "crates/grafeo-adapters", version = "0.5.42", default-features = false }
grafeo-storage = { path = "crates/grafeo-storage", version = "0.5.42", default-features = false }
grafeo-engine = { path = "crates/grafeo-engine", version = "0.5.42", default-features = false }
grafeo = { path = "crates/grafeo", version = "0.5.42" }
grafeo-bindings-common = { path = "crates/bindings/common", version = "0.5.42", default-features = false }
# Error handling
thiserror = "2.0"
anyhow = "1.0"
# Concurrency & synchronization
parking_lot = "0.12"
crossbeam = "0.8"
rayon = "1"
arc-swap = "1.7"
# Data structures
hashbrown = { version = "0.17", features = ["serde"] }
smallvec = "1"
bumpalo = "3"
indexmap = "2"
dashmap = "6"
arcstr = { version = "1", features = ["serde"] }
# Memory & I/O
memmap2 = "0.9"
bytes = "1"
byteorder = "1"
fs2 = "0.4"
# Checksums & hashing
crc32fast = "1"
foldhash = "0.2"
md5 = "0.8"
sha1 = "0.11"
sha2 = "0.11"
# Encryption (optional, behind `encryption` feature flag)
aes-gcm = "0.10"
hkdf = "0.13"
argon2 = "0.5"
zeroize = { version = "1", features = ["derive"] }
# Serialization
serde = { version = "1.0", features = ["derive", "rc"] }
bincode = { version = "2.0", features = ["serde"] }
# Arrow (optional, for zero-copy data export)
arrow-schema = "58"
arrow-array = "58"
arrow-ipc = "58"
# Python bindings
pyo3 = "0.27"
pyo3-async-runtimes = { version = "0.27", features = ["tokio-runtime"] }
# Async runtime
tokio = { version = "1", features = ["rt-multi-thread", "fs", "io-util", "sync", "time", "macros"] }
# Observability
tracing = "0.1"
tracing-subscriber = "0.3"
# Regex
regex = "1"
regex-lite = "0.1"
# Unicode
unicode-normalization = "0.1"
# Testing
proptest = "1"
criterion = { package = "codspeed-criterion-compat", version = "4" }
tempfile = "3"
# Allocators (platform-optimized)
tikv-jemallocator = "0.6"
mimalloc = "0.1"
# Vector index support
ordered-float = "5"
rand = "0.10.1"
[workspace.lints.rust]
unsafe_code = "deny"
missing_docs = "warn"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
# Allow common patterns in database code
module_name_repetitions = "allow"
must_use_candidate = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
# Cast lints: warn to catch real truncation bugs, allow per-site where safe
cast_possible_truncation = "warn"
cast_sign_loss = "warn"
cast_precision_loss = "allow"
cast_possible_wrap = "warn"
cast_lossless = "allow"
# Style preferences
uninlined_format_args = "allow"
doc_markdown = "allow"
redundant_closure_for_method_calls = "allow"
similar_names = "allow"
too_many_lines = "allow"
type_complexity = "allow"
needless_pass_by_value = "allow"
items_after_statements = "allow"
unreadable_literal = "allow"
struct_field_names = "allow"
wildcard_imports = "warn"
if_not_else = "allow"
match_same_arms = "allow"
single_match_else = "allow"
return_self_not_must_use = "allow"
unnecessary_wraps = "allow"
unused_self = "allow"
needless_continue = "allow"
derivable_impls = "allow"
missing_fields_in_debug = "allow"
# Low-level memory code patterns
mut_from_ref = "allow"
ptr_as_ptr = "allow"
manual_slice_size_calculation = "allow"
# Additional pedantic allows
needless_range_loop = "allow"
default_trait_access = "allow"
unnested_or_patterns = "allow"
used_underscore_binding = "allow"
doc_link_with_quotes = "allow"
float_cmp = "allow"
should_implement_trait = "allow"
ref_option = "allow"
unnecessary_map_or = "allow"
while_let_loop = "allow"
manual_div_ceil = "allow"
needless_raw_string_hashes = "allow"
single_match = "allow"
match_wildcard_for_single_variants = "allow"
map_entry = "allow"
large_enum_variant = "allow"
implicit_hasher = "allow"
unnecessary_literal_bound = "allow"
[profile.release]
lto = "thin"
codegen-units = 1
opt-level = 3
[profile.dev]
opt-level = 1
[profile.bench]
lto = "thin"
codegen-units = 1
# Profiling: release performance with debug symbols for flamegraphs
[profile.profiling]
inherits = "release"
strip = false
debug = "full"
lto = false
# Minimal size for WASM or embedded
[profile.minimal-size]
inherits = "release"
opt-level = "z"
lto = "fat"
codegen-units = 1
strip = true
panic = "abort"