-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
105 lines (80 loc) · 2.51 KB
/
Cargo.toml
File metadata and controls
105 lines (80 loc) · 2.51 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
[workspace]
resolver = "2"
members = [
"crates/synapse-core",
"crates/synapse-infra",
"crates/synapse-cli",
"crates/synapse-immune",
"crates/synapse-pouw",
"apps/desktop/src-tauri",
"crates/synapse-cognition",
".github/actions/structure-validator",
]
# Ensure Cargo doesn't treat this crate as an implicit workspace member.
exclude = [
]
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "AGPL-3.0-or-later"
authors = ["South West Labs"]
repository = "https://github.com/YOUR_ORG/synapse-protocol"
description = "Distributed, bio-mimetic AI memory system"
[workspace.dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Error handling
thiserror = "2"
anyhow = "1"
# Async traits
async-trait = "0.1"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# UUID generation
uuid = { version = "1", features = ["v4", "serde"] }
# Time
chrono = { version = "0.4", features = ["serde"] }
# CLI
clap = { version = "4", features = ["derive"] }
# Storage - Multi-model DB (Documents + Vectors + Graph)
# Using kv-mem for testing and kv-surrealkv for persistence (pure Rust, no C++)
surrealdb = { version = "3", features = ["kv-mem", "kv-surrealkv", "protocol-ws"] }
surrealdb-types = "3"
# Storage - Key-Value Buffer
sled = "0.34"
# AI Inference
candle-core = { git = "https://github.com/huggingface/candle.git", package = "candle-core" }
candle-nn = { git = "https://github.com/huggingface/candle.git" }
candle-transformers = { git = "https://github.com/huggingface/candle.git" }
ort = { version = "2.0.0-rc.10", features = ["ndarray", "load-dynamic"] }
# Text search
tantivy = "0.21"
# Networking
libp2p = { version = "0.56", features = ["tokio", "gossipsub", "noise", "tcp", "yamux", "mdns", "macros", "kad", "relay", "dcutr", "identify"] }
# Cryptography
rand = { version = "0.9", features = ["small_rng"] }
pqcrypto-kyber = "0.8"
pqcrypto-dilithium = "0.5"
aes-gcm = "0.10"
pqcrypto-traits = "0.3"
# Utilities
once_cell = "1.19"
regex = "1.10"
# Image Processing
image = "0.25"
# HuggingFace Hub (for loading models)
hf-hub = { version = "0.4", default-features = false, features = ["tokio", "rustls-tls", "ureq"] }
# Additional AI/ML
half = "2" # f16 support for diffusion
# Image Processing (OCR - DeepSeek-OCR inspired)
imageproc = "0.26"
# OCR (Tesseract bindings)
rusty-tesseract = "1.1"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1