-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
120 lines (98 loc) · 2.86 KB
/
Copy pathCargo.toml
File metadata and controls
120 lines (98 loc) · 2.86 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
[workspace]
resolver = "2"
members = [
"crates/turing-core",
"crates/biometric-extract",
"crates/identity-core",
"crates/hardware",
"crates/dermagraphd",
"crates/dermagraph-client",
"crates/sth-algebra",
"crates/noir-witness",
"crates/dao-voting-demo",
"crates/stability-experiment",
"crates/data-collector",
"crates/tch-trainer", # PyTorch-based training (uses real autograd)
]
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/STCisGOOD/dermagraph"
rust-version = "1.75"
[workspace.dependencies]
# Field arithmetic and curves (0.5 for light-poseidon compatibility)
ark-ff = "0.5"
ark-bn254 = "0.5"
ark-std = "0.5"
# Linear algebra
nalgebra = "0.32"
ndarray = "0.15"
# Hashing
sha2 = "0.10"
blake3 = "1.5"
# Key derivation & encryption
argon2 = "0.5"
hkdf = "0.12"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
bincode = "1.3"
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# Async
tokio = { version = "1.35", features = ["full"] }
async-trait = "0.1"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
toml = "0.8"
# Testing
proptest = "1.4"
criterion = "0.5"
# Terminal colors
colored = "2.1"
# Image processing
image = "0.24"
imageproc = "0.23"
# Serial communication (for sensors)
serialport = "4.3"
# Daemon / IPC
axum = "0.7"
hyper = { version = "1.0", features = ["full"] }
hyper-util = "0.1"
tower = "0.4"
# CLI
clap = { version = "4.4", features = ["derive"] }
# Storage / encryption
sqlx = { version = "0.8", features = ["sqlite", "runtime-tokio"] }
chacha20poly1305 = "0.10"
directories = "5.0"
# Noir bindings (when available)
# noir_rs = "0.1"
# Deep learning (for contrastive fingerprint embeddings)
# Upgraded from 0.14 to 0.20 for critical autodiff fixes (PRs #1698, #1702, #1710)
# - Fixed autodiff memory leak with correct graph cleanup
# - Improved graph management with BFS traversal
# - Fine-grained graph locks for better parallel execution
# Using default-features = false to avoid rusqlite/sqlite conflict with sqlx
burn = { version = "0.20", default-features = false, features = ["std", "train", "autodiff", "fusion"] }
burn-ndarray = "0.20"
burn-wgpu = "0.20"
burn-train = { version = "0.20", default-features = false }
burn-tch = "0.20" # LibTorch backend - uses PyTorch's battle-tested autodiff
burn-import = { version = "0.20", default-features = false, features = ["safetensors"] }
# Pin candle-core to 0.9.1 (0.9.2 has new DType variants that break burn-import 0.20.1)
candle-core = "=0.9.1"
# Force crc to 3.3.0 to resolve conflict between:
# - sqlx (crc ^3 → wants 3.4.0)
# - lzma-rust2 v0.15.7 (crc =3.3.0)
[patch.crates-io]
crc = { git = "https://github.com/mrhooray/crc-rs", tag = "3.3.0" }
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
[profile.bench]
lto = true