-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
259 lines (220 loc) Β· 16.6 KB
/
Cargo.toml
File metadata and controls
259 lines (220 loc) Β· 16.6 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
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
[workspace]
resolver = "2"
members = [
"crates/springtale-core",
"crates/springtale-crypto",
"crates/springtale-transport",
"crates/springtale-connector",
"crates/springtale-scheduler",
"crates/springtale-store",
"crates/springtale-ai",
"crates/springtale-mcp",
# Cooperation primitives (game-informed multi-agent coordination)
"crates/springtale-cooperation",
# Phase 1b
"crates/springtale-bot",
# Phase 2a
"crates/springtale-sentinel",
# Shared runtime
"crates/springtale-runtime",
# Phase 1a connectors
"connectors/connector-kick",
"connectors/connector-presearch",
"connectors/connector-bluesky",
"connectors/connector-github",
"connectors/connector-filesystem",
"connectors/connector-shell",
"connectors/connector-http",
# Phase 1b connectors
"connectors/connector-telegram",
# Phase 2a connectors
"connectors/connector-nostr",
"connectors/connector-irc",
"connectors/connector-discord",
"connectors/connector-slack",
"connectors/connector-signal",
"connectors/connector-browser",
# connector-matrix: DEFERRED β matrix-sdk 0.16 requires rusqlite 0.37 which
# has CVE-2025-70873 (heap info disclosure). Our store uses rusqlite 0.39
# (patched). Downgrading would expose activist/survivor data to heap leaks.
# Waiting for matrix-sdk to update to rusqlite 0.39+.
# Apps
"apps/springtaled",
"apps/springtale-cli",
]
exclude = [
# Tauri desktop app has its own dependency tree (tauri 2.x crates).
# Excluded from workspace to avoid version conflicts.
"tauri/apps/desktop/src-tauri",
# WASM connector SDK targets wasm32-unknown-unknown β different target
# than the workspace. Excluded to avoid cross-compilation conflicts.
"sdk/connector-sdk",
"sdk/examples/connector-hello-wasm",
]
[workspace.package]
edition = "2024"
license = "MIT"
repository = "https://github.com/ScopeCreep-zip/Springtale"
[workspace.dependencies]
# ββ Async Runtime ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
tokio = { version = "1", features = ["full"] }
arc-swap = "1"
tokio-util = { version = "0.7", features = ["codec"] }
tokio-stream = { version = "0.1", features = ["sync"] }
async-trait = "0.1"
# ββ Observability ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# ββ Error Handling βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
anyhow = "1"
thiserror = "2"
# ββ Serialization ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"
serde_yaml = "0.9"
schemars = { version = "1", features = ["derive", "uuid1", "chrono04"] }
# ββ Validation βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
garde = { version = "0.22", features = ["derive", "full"] }
# ββ Filesystem Sandbox βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
cap-std = "3"
# ββ Security / Secrets βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
secrecy = { version = "0.10", features = ["serde"] }
zeroize = { version = "1", features = ["derive"] }
memsec = { version = "0.7", features = ["use_os"] }
libc = "0.2"
# ββ Cryptography βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ed25519-dalek = { version = "2", features = ["rand_core", "serde"] }
chacha20poly1305 = { version = "0.10", features = ["rand_core", "getrandom"] }
argon2 = "0.5"
# SECURITY: default-features=false prevents `log` feature from being pulled in.
# RUSTSEC-2026-0097 unsoundness requires `log` feature β without it, the UB
# code path is absent from the binary. Cannot upgrade to 0.9 until RustCrypto
# ships stable releases with rand_core 0.9 (ed25519-dalek 3.x, chacha20poly1305 0.11.x).
rand = { version = "0.8", default-features = false, features = ["std", "std_rng", "getrandom"] }
sha2 = "0.10"
hmac = "0.12"
subtle = "2"
# ββ Identifiers ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
uuid = { version = "1", features = ["v4", "serde"] }
# ββ HTTP Server ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
axum = { version = "0.8", features = ["macros", "multipart"] }
axum-server = { version = "0.8", features = ["tls-rustls"] }
tower = { version = "0.5", features = ["limit", "buffer"] }
tower-http = { version = "0.6", features = ["cors", "fs", "set-header", "trace", "auth", "limit", "timeout"] }
rust-embed = { version = "8", features = ["interpolate-folder-path"] }
# ββ HTTP Client ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
reqwest = { version = "0.13", default-features = false, features = ["json", "multipart", "rustls", "stream"] }
# ββ Database (local-first) βββββββββββββββββββββββββββββββββββββββββββββββββββββ
rusqlite = { version = "0.39", features = ["bundled", "vtab"] }
# ββ Database (server mode, optional) ββββββββββββββββββββββββββββββββββββββββββ
sqlx = { version = "0.8", features = ["postgres", "uuid", "chrono", "json", "migrate", "runtime-tokio"] }
# ββ WASM Sandbox βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
wasmtime = { version = "43", features = ["cranelift", "component-model", "parallel-compilation"] }
wasmtime-wasi = { version = "43", features = ["p2"] }
wat = "1"
# ββ MCP Protocol βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
rmcp = { version = "1", features = ["server", "transport-io", "macros"] }
jsonschema = { version = "0.45", default-features = false }
# ββ Filesystem Watching ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
notify = { version = "8", features = ["macos_fsevent"] }
notify-debouncer-full = { version = "0.7", features = ["macos_fsevent"] }
# ββ Scheduling βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
cron = "0.13"
chrono = { version = "0.4", features = ["serde"] }
# ββ CLI ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
clap = { version = "4", features = ["derive", "env"] }
indicatif = "0.17"
tabled = "0.17"
rpassword = "5"
# ββ Futures βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
futures-core = "0.3"
futures-util = { version = "0.3", features = ["sink"] }
async-stream = "0.3"
# ββ Regex ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
regex = "1"
# ββ TLS ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
tokio-rustls = "0.26"
rustls-pemfile = "2"
rustls-pki-types = "1"
# ββ Config βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
figment = { version = "0.10", features = ["toml", "env"] }
# ββ Compile-time Registration βββββββββββββββββββββββββββββββββββββββββββββββββ
inventory = "0.3"
# ββ Graph / Rate Limiting ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
petgraph = "0.7"
governor = { version = "0.8", features = ["std"] }
crossbeam-deque = "0.8"
# ββ Cooperation (Phase M) βββββββββββββββββββββββββββββββββββββββββββββββββββββ
dyn-clone = "1" # DynClone supertrait for Box<dyn DynamicRole>
chitchat = "0.10" # Β§8 scuttlebutt gossip for awareness
foca = "1.0" # Β§8 SWIM liveness detection
# ββ Concurrency ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
dashmap = "6"
# ββ Encoding βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
hex = "0.4"
base64 = "0.22"
bytes = "1"
# ββ RSA (Kick webhook verification) ββββββββββββββββββββββββββββββββββββββββββ
rsa = { version = "0.9", features = ["sha2"] }
# ββ Testing ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
tempfile = "3"
# ββ Internal Crates ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
springtale-core = { path = "crates/springtale-core" }
springtale-crypto = { path = "crates/springtale-crypto" }
springtale-transport = { path = "crates/springtale-transport" }
springtale-connector = { path = "crates/springtale-connector" }
springtale-scheduler = { path = "crates/springtale-scheduler" }
springtale-store = { path = "crates/springtale-store" }
springtale-ai = { path = "crates/springtale-ai" }
springtale-cooperation = { path = "crates/springtale-cooperation" }
springtale-bot = { path = "crates/springtale-bot" }
springtale-mcp = { path = "crates/springtale-mcp" }
springtale-sentinel = { path = "crates/springtale-sentinel" }
springtale-runtime = { path = "crates/springtale-runtime" }
connector-kick = { path = "connectors/connector-kick" }
connector-presearch = { path = "connectors/connector-presearch" }
connector-bluesky = { path = "connectors/connector-bluesky" }
connector-github = { path = "connectors/connector-github" }
connector-filesystem = { path = "connectors/connector-filesystem" }
connector-shell = { path = "connectors/connector-shell" }
connector-http = { path = "connectors/connector-http" }
connector-telegram = { path = "connectors/connector-telegram" }
connector-nostr = { path = "connectors/connector-nostr" }
connector-irc = { path = "connectors/connector-irc" }
connector-discord = { path = "connectors/connector-discord" }
connector-slack = { path = "connectors/connector-slack" }
connector-signal = { path = "connectors/connector-signal" }
connector-browser = { path = "connectors/connector-browser" }
# ββ Nostr Protocol βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
nostr-sdk = { version = "0.44", features = ["nip44", "nip59"] }
# ββ IRC Protocol βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Privacy: ctcp feature DISABLED to suppress all CTCP replies (VERSION, TIME, PING).
# This prevents bot fingerprinting β empty VERSION is MORE identifiable than no response.
irc = { version = "1.1", default-features = false, features = ["tls-rust", "toml_config"] }
# ββ Discord Protocol ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Privacy: no MESSAGE_CONTENT intent by default. Slash commands preferred.
twilight-gateway = { version = "0.17", default-features = false, features = ["rustls-webpki-roots", "zstd"] }
twilight-http = { version = "0.17", default-features = false, features = ["rustls-webpki-roots"] }
twilight-model = "0.17"
# ββ Slack Protocol (Socket Mode) ββββββββββββββββββββββββββββββββββββββββββββββ
# Socket Mode uses WebSocket β no public HTTP endpoint needed (local-first friendly).
tokio-tungstenite = { version = "0.26", default-features = false, features = ["connect", "rustls-tls-webpki-roots"] }
# ββ Browser Automation ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# No TLS dependency β connects to pre-installed Chrome via DevTools Protocol.
# Domain allow-list enforced per connector capability model.
chromiumoxide = { version = "0.9", default-features = false }
# ββ SQLite Encryption at Rest βββββββββββββββββββββββββββββββββββββββββββββββββ
# Patch libsqlite3-sys to use SQLite3MultipleCiphers (sqlite3mc) amalgamation.
# Provides full-database ChaCha20-Poly1305 encryption with no OpenSSL dependency.
# Same approach as Signal (SQLCipher) but with pure-C crypto (no external libs).
# https://github.com/utelle/SQLite3MultipleCiphers
# ββ Release Profile ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# overflow-checks: prevent silent integer wrapping in release builds.
# Critical for fuel metering, size limits, and event query bounds β
# silent overflow is exploitable in resource accounting.
[profile.release]
overflow-checks = true
[patch.crates-io]
libsqlite3-sys = { path = "crates/libsqlite3-sys-mc" }