-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy pathCargo.toml
More file actions
316 lines (283 loc) · 9.62 KB
/
Copy pathCargo.toml
File metadata and controls
316 lines (283 loc) · 9.62 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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
[workspace]
members = [
"src/apps/cli",
"src/apps/sdk-host",
"src/apps/desktop",
"src/apps/server",
"src/apps/relay-server",
"src/apps/miniapp-market-server",
"src/apps/skin-market-server",
"src/crates/interfaces/acp",
"src/crates/interfaces/app-server",
"src/crates/interfaces/sdk-host",
"src/crates/adapters/agent-runtime-ipc",
"src/crates/assembly/agent-content",
"src/crates/assembly/core",
"src/crates/assembly/external-sources",
"src/crates/adapters/ai-adapters",
"src/crates/adapters/opencode-adapter",
"src/crates/adapters/claude-code-adapter",
"src/crates/adapters/codex-adapter",
"src/crates/adapters/static-hook-support",
"src/crates/adapters/webdriver",
"src/crates/adapters/transport",
"src/crates/services/services-core",
"src/crates/services/services-integrations",
"src/crates/services/miniapp-market-service",
"src/crates/services/skin-market-service",
"src/crates/services/relay-service",
"src/crates/services/page-function-runtime",
"src/crates/services/terminal",
"src/crates/assembly/product-capabilities",
"src/crates/contracts/product-domains",
"src/crates/execution/agent-runtime",
"src/crates/execution/agent-stream",
"src/crates/execution/tool-call-jsonrepair",
"src/crates/execution/tool-contracts",
"src/crates/execution/harness",
"src/crates/execution/plugin-runtime-client",
"src/crates/execution/runtime-services",
"src/crates/execution/tool-provider-groups",
"src/crates/execution/tool-execution",
"src/crates/contracts/core-types",
"src/crates/contracts/events",
"src/crates/contracts/runtime-ports",
]
exclude = [
"BitFun-Installer/src-tauri",
]
resolver = "2"
# Shared package metadata — single source of truth for version
[workspace.package]
version = "0.2.15" # x-release-please-version
authors = ["BitFun Team"]
edition = "2021"
[workspace.lints.rust]
unsafe_op_in_unsafe_fn = "warn"
unexpected_cfgs = "warn"
unreachable_pub = "warn"
unused_lifetimes = "warn"
[workspace.lints.clippy]
correctness = { level = "deny", priority = -1 }
suspicious = { level = "deny", priority = -1 }
perf = { level = "warn", priority = -1 }
complexity = { level = "warn", priority = -1 }
style = { level = "warn", priority = -1 }
dbg_macro = "warn"
todo = "warn"
unimplemented = "warn"
undocumented_unsafe_blocks = "warn"
# Shared dependency versions to keep all crates aligned
[workspace.dependencies]
# Async runtime
tokio = { version = "1.52", default-features = false }
tokio-stream = "0.1.18"
tokio-util = "0.7.18"
async-trait = "0.1.89"
futures = "0.3.31"
futures-util = "0.3.31"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
# TypeScript binding generation (schema-first; gated by per-crate `ts` features)
ts-rs = { version = "12", features = ["serde-json-impl", "no-serde-warnings"] }
# Error handling
anyhow = "1.0"
thiserror = "2"
# Logging
log = "0.4"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Utilities
uuid = { version = "1.0", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde", "clock"] }
chrono-tz = "0.10.4"
cron = "0.15.0"
# Tauri 2.9.2 utilities conflict with time 0.3.48 on current stable Rust.
time = { version = "=0.3.47", default-features = false }
# brotli-decompressor 5.0.2 / alloc-stdlib 0.2.3 pull alloc-no-stdlib 3.x while brotli still uses 2.x.
brotli-decompressor = "=5.0.0"
alloc-no-stdlib = "=2.0.4"
alloc-stdlib = "=0.2.2"
regex = "1"
base64 = "0.22"
# Keep macOS Tauri's dispatch2/bitflags expansion on the known-good bitflags release.
bitflags = "=2.11.1"
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "gif", "webp", "bmp"] }
md5 = "0.7"
dashmap = "6"
indexmap = "2"
include_dir = "0.7"
aes = "0.8"
hmac = "0.12"
hex = "0.4"
chardetng = "0.1.17"
encoding_rs = "0.8.35"
url = "2"
# HTTP client
reqwest = { version = "0.13.4", default-features = false, features = ["http2", "json", "stream", "multipart", "query", "form"] }
semver = "1.0"
# Debug Log HTTP Server
axum = { version = "0.8", features = ["json", "ws"] }
tower-http = { version = "0.6.11", features = ["cors", "fs"] }
# File system
glob = "0.3"
ignore = "0.4"
notify = "8.2"
dirs = "6.0"
keyring-core = "1.0.0"
apple-native-keyring-store = { version = "1.0.1", features = ["keychain"] }
windows-native-keyring-store = "1.1.0"
zbus-secret-service-keyring-store = { version = "1.0.0", features = ["crypto-rust"] }
dark-light = "1.1"
dunce = "1"
filetime = "0.2"
fs2 = "0.4"
zip = { version = "4.6", default-features = false, features = ["deflate"] } # plugin load
flate2 = "1.0"
tar = "0.4"
bzip2 = "0.5"
xz2 = "0.1"
zstd = "0.13"
toml = "0.9"
# Git
git2 = { version = "0.21", default-features = false, features = ["https", "vendored-libgit2"] }
# Terminal
portable-pty = "0.8"
vte = "0.15.0"
clap = { version = "4.6.1", features = ["derive"] }
crossterm = "0.28"
ratatui = "0.29"
unicode-width = "0.2"
pulldown-cmark = "0.11"
syntect = { version = "5", default-features = false, features = ["default-syntaxes", "default-themes", "regex-fancy"] }
syntect-tui = "3.0"
once_cell = "1"
libc = "0.2"
arboard = "3"
shlex = "1.3"
winsplit = "0.1"
# Grep (search)
grep-searcher = "0.1"
grep-regex = "0.1"
globset = "0.4"
# SSE
eventsource-stream = "0.2.3"
sse-stream = "0.2.3"
# Command detection (cross-platform)
which = "8.0"
similar = "2.5"
urlencoding = "2.1"
oxc = { version = "0.138.0", default-features = false, features = ["ast_visit", "codegen", "semantic", "transformer"] }
oxc-parse = { package = "oxc", version = "0.138.0", default-features = false }
rquickjs = { version = "0.9", default-features = false, features = ["classes", "properties", "macro"] }
# Tauri (desktop only)
tauri = { version = "2.11", features = ["unstable", "macos-private-api", "tray-icon"] }
tauri-plugin-opener = "2.5"
tauri-plugin-dialog = "2.7"
tauri-plugin-fs = "2.5"
tauri-plugin-log = "2.8"
tauri-plugin-autostart = "2.5"
tauri-plugin-notification = "2.3"
tauri-plugin-updater = "2.10"
tauri-plugin-global-shortcut = "2.3"
tauri-plugin-single-instance = "2.4"
tauri-plugin-window-state = "2.4"
tauri-build = { version = "2.6", features = [] }
keepawake = "0.6.0"
# Desktop support
screenshots = "0.8"
enigo = "0.2"
resvg = { version = "0.47", default-features = false }
atspi = "0.29"
leptess = "0.14"
core-foundation = "0.9"
core-graphics = { version = "0.23", features = ["elcapitan", "highsierra"] }
foreign-types = "0.5"
dispatch = "0.2"
block2 = "0.6"
objc2 = "0.6"
objc2-foundation = "0.3"
objc2-app-kit = "0.3"
objc2-vision = { version = "0.3.2", features = ["VNRecognizeTextRequest", "VNRequest", "VNObservation", "VNRequestHandler", "VNUtils", "VNTypes", "objc2-core-foundation"] }
objc2-web-kit = { version = "0.3", features = ["WKWebView", "WKSnapshotConfiguration", "WKPDFConfiguration", "block2", "objc2-app-kit"] }
tempfile = "3"
webview2-com = "0.38"
windows = "0.61"
windows-core = "0.61"
glib = "0.18"
gtk = "0.18"
webkit2gtk = "2.0"
# Windows-specific dependencies
win32job = "2.0"
# I18n internationalization
fluent-bundle = "0.15"
unic-langid = "0.9"
# Encryption (Remote Connect E2E)
x25519-dalek = { version = "2.0", features = ["static_secrets"] }
aes-gcm = "0.10"
sha2 = "0.10"
sha1 = "0.10"
argon2 = "0.5"
rand = "0.8"
# Device/Network info (Remote Connect)
mac_address = "1.1"
local-ip-address = "0.6"
hostname = "0.4"
# QR code generation
qrcode = "0.14"
# WebSocket client
tokio-tungstenite = { version = "0.29", features = ["rustls-tls-native-roots"] }
# Local speech recognition
sherpa-onnx = "1.13.4"
# MCP and remote runtimes
rmcp = { version = "1.7", default-features = false, features = [
"auth",
"base64",
"client",
"elicitation",
"macros",
"reqwest",
"schemars",
"server",
] }
agent-client-protocol = { version = "0.12", features = ["unstable"] }
russh = "0.45"
russh-sftp = "2.1"
russh-keys = "0.45"
shellexpand = "3"
ssh_config = "0.1"
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
[patch.crates-io]
# Tauri 2.11 loses keyboard focus for child webviews after Windows reactivates
# an `unstable` multi-webview window. Use the upstream fix until released;
# this revision also adopts tao 0.36, which includes the Windows input deadlock fix.
tauri-runtime = { git = "https://github.com/tauri-apps/tauri.git", rev = "7cc68e74ff6981f5c50a52a67d56c5eb2d227188" }
tauri-runtime-wry = { git = "https://github.com/tauri-apps/tauri.git", rev = "7cc68e74ff6981f5c50a52a67d56c5eb2d227188" }
tauri-utils = { git = "https://github.com/tauri-apps/tauri.git", rev = "7cc68e74ff6981f5c50a52a67d56c5eb2d227188" }
[profile.dev]
# Line tables only: keeps panic backtrace line numbers while shrinking PDB/DWARF
# output dramatically, which speeds up the Windows link step the most.
# Need full debug info for a debugger session? Override per-invocation with
# CARGO_PROFILE_DEV_DEBUG=2.
debug = "line-tables-only"
[profile.release]
opt-level = 3
# Thin LTO instead of fat LTO: 30-60% faster release codegen/link for ~0-2%
# runtime cost. This was already proven on the Linux aarch64 packaging runner.
# NOTE: needs one packaging regression round across all platforms (medium risk).
lto = "thin"
codegen-units = 1
strip = true
# NOTE: do not set `panic = "abort"` here. Several production paths rely on
# `catch_unwind` to contain third-party panics instead of taking down the app:
# `browser_api::browser_get_url` (known wry bug where WKWebView URL is nil) and
# the relay client's TLS connector construction. Aborting would turn those
# recoverable failures into process crashes.
[profile.release-fast]
inherits = "release"
lto = false
codegen-units = 16
strip = false
incremental = true