-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
151 lines (113 loc) · 3.22 KB
/
Cargo.toml
File metadata and controls
151 lines (113 loc) · 3.22 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
[package]
name = "neuro-fed-node"
version = "0.1.0"
edition = "2024"
authors = ["NeuroFed Team"]
description = "Decentralized Federated Nervous System with Pure Hierarchical Predictive Coding"
license = "GPL-3.0-or-later"
repository = "https://github.com/neuro-fed/neuro-fed-node"
[[bin]]
name = "neuro-fed-node"
path = "src/main.rs"
[[bin]]
name = "neurofed-tauri"
path = "src/bin/neurofed-tauri.rs"
[dependencies]
# Core dependencies
z3 = { version = "0.19", optional = true }
candle-core = { version = "0.9", default-features = false }
candle-nn = { version = "0.9", default-features = false }
candle-transformers = { version = "0.9", default-features = false }
anyhow = "1.0"
notify = "8.2"
ring = "0.17"
axum = "0.8"
reqwest = { version = "0.13", default-features = false, features = ["json", "stream", "rustls"] }
serde_json = "1.0"
tokio = { version = "1.50", features = ["full"] }
# Nostr protocol
nostr-sdk = "0.44"
# Federation dependencies
secp256k1 = "0.31"
bitcoin = { version = "0.32", features = ["std"], optional = true }
lightning = { version = "0.2", optional = true }
rand = "0.10"
# Configuration and persistence
config = "0.15"
toml = "0.9"
redb = "3.1"
# Utilities
chrono = "0.4"
uuid = { version = "1.22", features = ["v4"] }
log = "0.4"
async-trait = "0.1"
clap = { version = "4.5", features = ["derive"] }
walkdir = "2.2.5" # Fast directory traversal for bootstrap
tempfile = "3.27"
libc = "0.2"
# PC Hierarchy specific dependencies
thiserror = "2.0"
# Hashing for cache keys
sha2 = "0.10"
ahash = "0.8"
# Brain sharing (safetensors for model weights)
safetensors = "0.7"
hex = "0.4"
# Model Manager dependencies
futures = "0.3"
# Tokenization for proper text processing
tokenizers = "0.22"
hf-hub = "0.5"
# Document parsing for book study
lopdf = "0.39" # Pure Rust PDF parsing replacement for pdf-extract
epub = "2.1"
indicatif = "0.18"
parquet = "58.0"
# Privacy networks (optional, placeholder versions for simulation)
url = "2.5"
base64 = "0.22"
rand_distr = "0.6"
rayon = "1.10"
# High-performance async cache for semantic cache
moka = { version = "0.12", features = ["future"] }
# Vector similarity search for semantic cache
hnsw_rs = "0.3"
serde = { version = "1.0", features = ["derive"] }
bincode = "1.3"
lazy_static = "1.5"
csv = "1.3"
# Tracing for logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Metrics for observability
metrics = "0.24"
once_cell = "1.21"
# Web server dependencies
axum-server = "0.8"
# Optional for web UI (Phase 3)
tauri = { version = "2.10", optional = true, features = ["tray-icon", "image-png"] }
thread-priority = "3.0.0"
[build-dependencies]
tauri-build = { version = "2.5" }
[dev-dependencies]
tempfile = "3.27"
[features]
default = []
privacy = []
federation = ["bitcoin", "lightning"]
virality = []
web-ui = ["tauri"]
cuda = ["candle-core/cuda", "candle-nn/cuda", "candle-transformers/cuda"]
cudnn = ["cuda", "candle-core/cudnn", "candle-nn/cudnn", "candle-transformers/cudnn"]
vulkan = []
z3-tools = ["z3"]
[profile.release]
opt-level = 3
lto = "thin" # Faster linking than "fat"
codegen-units = 1
debug = true # Keeps line numbers in the profiler!
panic = "abort"
[profile.dev]
opt-level = 1
incremental = true
codegen-units = 256