forked from RightNow-AI/openfang
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
249 lines (206 loc) · 6.65 KB
/
Cargo.toml
File metadata and controls
249 lines (206 loc) · 6.65 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
[workspace]
resolver = "2"
members = [
"crates/openfang-types",
"crates/openfang-memory",
"crates/openfang-runtime",
"crates/openfang-wire",
"crates/openfang-provider-binding",
"crates/openfang-api",
"crates/openfang-kernel",
"crates/openfang-cli",
"crates/openfang-channels",
"crates/openfang-migrate",
"crates/openfang-skills",
"crates/openfang-desktop",
"crates/openfang-hands",
"crates/openfang-extensions",
"crates/openfang-agent-definition",
"xtask",
]
default-members = [
"crates/openfang-types",
"crates/openfang-memory",
"crates/openfang-runtime",
"crates/openfang-wire",
"crates/openfang-provider-binding",
"crates/openfang-api",
"crates/openfang-kernel",
"crates/openfang-cli",
"crates/openfang-channels",
"crates/openfang-migrate",
"crates/openfang-skills",
"crates/openfang-hands",
"crates/openfang-extensions",
"crates/openfang-agent-definition",
]
[workspace.package]
version = "0.5.5"
edition = "2021"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RightNow-AI/openfang"
rust-version = "1.94.1"
[workspace.dependencies]
# Internal crates
openfang-types = { path = "crates/openfang-types" }
openfang-memory = { path = "crates/openfang-memory" }
openfang-runtime = { path = "crates/openfang-runtime" }
openfang-wire = { path = "crates/openfang-wire" }
openfang-provider-binding = { path = "crates/openfang-provider-binding" }
openfang-agent-definition = { path = "crates/openfang-agent-definition" }
openfang-api = { path = "crates/openfang-api" }
openfang-kernel = { path = "crates/openfang-kernel" }
openfang-cli = { path = "crates/openfang-cli" }
openfang-channels = { path = "crates/openfang-channels" }
openfang-migrate = { path = "crates/openfang-migrate" }
openfang-skills = { path = "crates/openfang-skills" }
openfang-desktop = { path = "crates/openfang-desktop" }
openfang-hands = { path = "crates/openfang-hands" }
openfang-extensions = { path = "crates/openfang-extensions" }
arky-error = { git = "https://github.com/compozy/arky.git", branch = "main" }
arky-protocol = { git = "https://github.com/compozy/arky.git", branch = "main" }
arky-config = { git = "https://github.com/compozy/arky.git", branch = "main" }
arky-tools = { git = "https://github.com/compozy/arky.git", branch = "main" }
arky-hooks = { git = "https://github.com/compozy/arky.git", branch = "main" }
arky-session = { git = "https://github.com/compozy/arky.git", branch = "main" }
arky-provider = { git = "https://github.com/compozy/arky.git", branch = "main" }
arky-mcp = { git = "https://github.com/compozy/arky.git", branch = "main" }
arky-codex = { git = "https://github.com/compozy/arky.git", branch = "main" }
arky-claude-code = { git = "https://github.com/compozy/arky.git", branch = "main" }
# Async runtime
tokio = { version = "1", features = ["full"] }
tokio-util = { version = "0.7", features = ["codec", "rt"] }
tokio-stream = "0.1"
async-stream = "0.3"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.9"
rmp-serde = "1"
serde_norway = "0.9.42"
# Error handling
thiserror = "2"
anyhow = "1"
# Concurrency
dashmap = "6"
crossbeam = "0.8"
# Logging / Tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# Time
chrono = { version = "0.4", features = ["serde"] }
chrono-tz = "0.10"
# IDs
uuid = { version = "1", features = ["v4", "v5", "serde"] }
# Database
rusqlite = { version = "0.31", features = ["bundled", "serde_json"] }
# CLI
clap = { version = "4", features = ["derive"] }
clap_complete = "4"
# HTTP client (for LLM drivers)
reqwest = { version = "0.13.2", default-features = false, features = ["json", "form", "query", "stream", "multipart", "rustls", "gzip"] }
# Async trait
async-trait = "0.1"
# Base64
base64 = "0.22"
# Bytes
bytes = "1"
# Futures
futures = "0.3"
prost = "0.13"
# WebSocket client (for Discord/Slack gateway)
tokio-tungstenite = { version = "0.24", default-features = false, features = ["connect", "rustls-tls-native-roots"] }
url = "2"
# WASM sandbox
wasmtime = "41"
# HTTP server (for API daemon)
axum = { version = "0.8", features = ["ws", "multipart"] }
tower = "0.5"
tower-http = { version = "0.6", features = ["cors", "trace", "compression-gzip"] }
# Home directory resolution
dirs = "6"
# YAML parsing
serde_yaml = "0.9"
# JSON5 parsing
json5 = "0.4"
# Directory walking
walkdir = "2"
# Security
sha2 = "0.10"
sha1 = "0.10"
aes = "0.8"
cbc = "0.1"
hmac = "0.12"
hex = "0.4"
subtle = "2"
ed25519-dalek = { version = "2", features = ["rand_core"] }
rand = "0.8"
zeroize = { version = "1", features = ["derive"] }
# Rate limiting
governor = "0.10"
# Interactive CLI
ratatui = "0.29"
colored = "3"
# Encryption
aes-gcm = "0.10"
argon2 = "0.5"
# HTML entity decoding
html-escape = "0.2"
# Lightweight regex
regex-lite = "0.1"
regex = "1"
# MCP SDK (official Rust implementation)
rmcp = { version = "1.2", default-features = false, features = ["client", "transport-child-process", "transport-streamable-http-client-reqwest", "reqwest"] }
# Socket options (SO_REUSEADDR)
socket2 = "0.5"
# Zip archive extraction
zip = { version = "4", default-features = false, features = ["deflate"] }
# Email (SMTP + IMAP)
lettre = { version = "0.11", default-features = false, features = ["builder", "hostname", "smtp-transport", "tokio1", "tokio1-rustls-tls"] }
imap = "2"
native-tls = { version = "0.2", features = ["vendored"] }
mailparse = "0.16"
# MQTT client
rumqttc = "0.24"
# OpenSSL (vendored = statically compiled, no runtime libssl dependency on Linux)
openssl = { version = "0.10", features = ["vendored"] }
# Testing
pretty_assertions = "1"
tokio-test = "0.4"
tempfile = "3"
schemars = "0.8"
tokio-rusqlite = "0.5.1"
[workspace.lints.clippy]
collapsible_if = "allow"
[profile.dev]
# Line-tables-only: enough for backtraces, much smaller/faster than full debug info
debug = "line-tables-only"
# Split debug info into separate files (huge macOS linking speedup)
split-debuginfo = "unpacked"
# More codegen units = more parallelism during compilation
codegen-units = 256
incremental = true
[profile.dev.package."*"]
# No debug info for third-party dependencies (you won't debug them)
debug = false
# Slight optimization for deps makes runtime less painful in dev
opt-level = 1
[profile.dev.build-override]
# Optimize build scripts and proc-macros (they run at compile time)
opt-level = 3
[profile.release]
lto = "thin"
codegen-units = 4
strip = true
opt-level = 3
[profile.release-prod]
inherits = "release"
# Full LTO + single codegen unit for final production releases only
lto = true
codegen-units = 1
[profile.release-fast]
inherits = "release"
lto = "thin"
codegen-units = 8
opt-level = 2
strip = false