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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
# EdgeVec Cargo Configuration
# =============================
# Architecture: APPROVED (Gate 1 Complete: 2025-12-05)
# Planning: Week 1 Day 1 — Repository Initialization
#
# IMPLEMENTED: W1.D1 — Basic dependencies for testing infrastructure
# IMPLEMENTED: W18.2 — Added workspace for xtask
[]
= [".", "xtask"]
= ["fuzz"] # Fuzz crate uses cargo-fuzz which manages its own workspace
[]
= "edgevec"
= "0.6.0"
= "2021"
= "1.70"
= "High-performance embedded vector database for Browser, Node, and Edge"
= "MIT OR Apache-2.0"
= "https://github.com/matte1782/edgevec"
= ["vector", "database", "wasm", "hnsw", "similarity-search"]
= ["database", "wasm", "algorithms"]
= false # Disable auto-detection of bench targets (recall_bench is a [[bin]])
# =============================================================================
# PACKAGE EXCLUSIONS — Reduce crate size for crates.io (max 10 MiB)
# =============================================================================
# Internal development files that users don't need:
= [
# IDE configuration directories
".claude/",
".cursor/",
".github/",
# ALL internal documentation - users get README + rustdoc
"docs/",
# Test files (users run their own tests)
"tests/",
# Benchmark data and tooling (users don't need our benchmarks)
"benches/baselines.json",
"benches/baselines.json.bak",
"benches/competitive/", # Node.js competitive benchmarks with node_modules
"benches/*.py", # Python benchmark scripts
# NPM package output (separate distribution)
"pkg/",
# Workspace members (published separately or internal)
"xtask/",
# Gate files (internal process tracking)
"GATE_*.md",
# Misc internal files
".cursorrules",
"CONTRIBUTING.md",
"CLAUDE.md", # Internal dev rules
# Build/dev scripts (not needed by library users)
"scripts/",
# Test artifacts and data
"proptest-regressions/",
"*.wal", # WAL test files
"*.tgz", # Old tarballs
# WASM test files (published via npm, not crates.io)
"wasm/__tests__/",
]
[]
= "edgevec"
= ["lib", "cdylib"]
# =============================================================================
# DEPENDENCIES — Day 1: Core Infrastructure
# =============================================================================
[]
= { = "1.0", = ["serde"] }
# Error handling (required by Day 1 spec)
= "1.0"
# Serialization (required by Day 1 spec)
= { = "1.0", = ["derive"] }
# Safe type casting for WASM (required by Day 1 spec)
= { = "1.14", = ["derive"] }
= "1.3"
# Filter expression parsing (Week 23)
= "2.7"
= "2.7"
# JSON serialization for WASM (Week 23 Day 4) - minimal features for size
= { = "1.0", = false, = ["std"] }
# Random Number Generation (Required for HNSW construction)
= { = "0.8", = ["small_rng"] }
= { = "0.3", = ["serde1"] }
# Serde helpers for binary efficiency
= "0.11"
= { = "1.0", = ["use-std"] }
# WASM Dependencies (W4.1)
= "0.2"
= "0.4"
= "0.3"
= { = "0.3", = ["console", "Window", "Performance", "IdbFactory", "IdbDatabase", "IdbTransaction", "IdbTransactionMode", "IdbObjectStore", "IdbRequest", "DomException"] }
= "0.6"
= "0.1"
= "1.0"
= "0.4"
= { = "0.2.14", = ["js"] }
= "1.0.4"
# =============================================================================
# DEV DEPENDENCIES — Day 1: Testing Infrastructure
# =============================================================================
[]
# Property-based testing (required for "Nvidia Grade" verification)
= { = "=1.4.0", = false, = ["std"] }
# WASM testing
= "0.3"
= "1.0"
# Benchmarking framework (required for performance budgets)
= { = "0.5", = ["html_reports"], = false }
= "=3.10.0"
[[]]
= "distance_bench"
= false
[[]]
= "persistence_bench"
= false
[[]]
= "storage_bench"
= false
[[]]
= "search_bench"
= false
[[]]
= "hnsw_init_bench"
= false
[[]]
= "insert_bench"
= false
[[]]
= "simd_bench"
= false
[[]]
= "delete_bench"
= false
[[]]
= "scaling_bench"
= false
[[]]
= "quant_bench"
= false
[[]]
= "memory_bench"
= false
[[]]
= "bench_quantization"
= false
[[]]
= "validation"
= false
[[]]
= "batch_vs_sequential"
= false
[[]]
= "tombstone_bench"
= false
[[]]
= "batch_delete_bench"
= false
[[]]
= "p99_bench"
= false
[[]]
= "filter_strategy_bench"
= false
[[]]
= "bq_popcount"
= false
[[]]
= "bq_search"
= false
[[]]
= "bq_recall"
= false
[[]]
= "batch_insert"
# [[bin]]
# name = "recall_bench"
# path = "benches/recall_bench.rs"
# Note: autobenches = false in [package] prevents dual target registration
# TEMPORARILY DISABLED: Linker error with cdylib target - needs investigation
# =============================================================================
# FUTURE DEPENDENCIES (Not in Day 1 scope)
# =============================================================================
# To be added in Week 1 Day 3-5:
# - rand / rand_chacha (deterministic RNG for tests)
# =============================================================================
# BUILD PROFILES
# =============================================================================
[]
# Disable wasm-opt temporarily to investigate iOS Safari compatibility issues
# Root cause: wasm-opt was failing with "unexpected false: all used features should be allowed"
# on i32.trunc_sat_f64_u instruction, which requires --enable-nontrapping-float-to-int
# TODO: Re-enable wasm-opt with correct feature flags after verifying WASM works on iOS
= false
[]
= "z" # Optimize for size in WASM bundles
= true # Link-time optimization
= 1 # Single codegen unit for maximum optimization
= true # Strip symbols for smaller binary
[]
= "release"
= "z" # Optimize for size in WASM (changed from "s" to match Day 1 spec)
[]
= "release"
= 3 # Optimize for speed during benchmarks
= true # Include debug info for profiling
# =============================================================================
# FEATURES (Minimal set for Day 1)
# =============================================================================
[]
= []
= []
# =============================================================================
# CONFIGURATION STATUS
# =============================================================================
# ✅ Architecture: APPROVED (2025-12-05)
# ✅ Planning: Week 1 Day 1 Tasks APPROVED
# ✅ Dependencies: Day 1 spec (thiserror, serde, bytemuck)
# ✅ Dev Dependencies: Day 1 spec (proptest, criterion)
# ✅ Build Profile: Performance (opt-level = 3, lto = true)
#
# Next: Day 2-5 will add fuzz infrastructure and additional test harness
# =============================================================================