-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCargo.toml
More file actions
265 lines (215 loc) · 6.61 KB
/
Copy pathCargo.toml
File metadata and controls
265 lines (215 loc) · 6.61 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
[workspace]
members = ["crates/*"]
exclude = ["tmp/*", "crates/ai-agents", "crates/codex-acp-agent"]
resolver = "2"
default-members = [
"crates/rcoder",
"crates/agent_runner",
"crates/shared_types",
"crates/docker_manager",
"crates/rcoder-proxy",
"crates/container-runtime-api",
"crates/rcoder-cli",
"crates/rcoder-gateway",
"crates/download_utils",
]
[workspace.lints]
rustdoc.unescaped_backticks = "warn"
rustdoc.redundant_explicit_links = "warn"
rust.unused_lifetimes = "warn"
rust.unused_qualifications = "warn"
rust.variant_size_differences = "warn"
[workspace.package]
version = "0.1.2"
edition = "2024"
authors = ["soddy <soddygo@qq.com>"]
license = "Apache-2.0"
description = "Rust-based AI agent framework"
homepage = "https://github.com/nuwax-ai/rcoder"
repository = "https://github.com/nuwax-ai/rcoder"
publish = false
[workspace.dependencies]
# ACP Protocol - 官方 SDK(完全 Send-safe,无需 LocalSet)
agent-client-protocol = { version = "1.0.1" }
# MCP 协议 - rmcp 官方库
rmcp = { version = "1.8"}
piper = "0.2"
clap = { version = "4.6", features = ["derive", "env"] }
# Async runtime
tokio = { version = "1.52", features = ["full"] }
tokio-util = { version = "0.7", features = ["compat"] }
tokio-stream = "0.1"
async-stream = "0.3"
async-trait = "0.1"
pin-project-lite = "0.2"
# HTTP server
axum = { version = "0.8", features = [
"http2",
"query",
"tracing",
"ws",
"multipart",
"macros",
] }
tower = "0.5"
tower-http = { version = "0.7", features = ["cors", "trace", "set-header"] }
hyper = { version = "1.8", features = ["server", "http1", "http2"] }
hyper-util = { version = "0.1", features = ["server", "server-auto", "tokio"] }
tonic = { version = "0.14.6", features = ["tls-native-roots"] }
tonic-prost = "0.14"
prost = "0.14"
prost-types = "0.14"
tonic-prost-build = "0.14"
http = "1.4"
http-body = "1.0"
http-body-util = "0.1"
# WebSocket(终端中间层:接浏览器 + 连本地 ttyd)
tokio-tungstenite = "0.29"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.150"
serde_yaml = "=0.9.33"
serde_urlencoded = "0.7"
schemars = { version = "1.2", features = ["derive"] }
config = "0.15"
# Validation
garde = { version = "0.22.1", features = ["derive"] }
# Error handling
anyhow = "1.0"
thiserror = "2.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing-appender = "0.2"
# OpenTelemetry
opentelemetry = "0.32"
opentelemetry_sdk = { version = "0.32", features = ["rt-tokio"] }
opentelemetry-otlp = { version = "0.32", features = [
"grpc-tonic",
"http-proto",
] }
tracing-opentelemetry = "0.33"
axum-tracing-opentelemetry = "0.38"
# Prometheus Metrics
metrics = "0.24"
metrics-exporter-prometheus = "0.18"
# UUID
uuid = { version = "1.23", features = ["serde", "v4", "v7"] }
# Date/time
chrono = { version = "0.4", features = ["serde"] }
# File system watching
notify = "8.2"
# File system utilities
tokio-fs = "0.1"
path-clean = "1.0"
# Utilities
dashmap = "6.2"
futures = "0.3"
futures-util = "0.3"
itertools = "0.15"
bytes = "1.12"
arrayvec = "0.7"
arc-swap = "1.9"
md5 = "0.8"
process-wrap = { version = "9.0", features = ["tokio1", "process-group", "job-object"] }
windows = { version = "0.62", features = ["Win32_System_Threading"] }
url = { version = "2.5", features = ["serde"] }
# TLS/Crypto
rustls = { version = "0.23", features = ["ring"] }
# Additional utilities
indoc = "2.0"
parking_lot = "0.12"
convert_case = "0.11"
# Persistent data structures for CoW-friendly multi-session tracking (C2/M3 fix)
im = { version = "15.1", features = ["serde"] }
handlebars = { version = "6.3", features = ["rust-embed"] }
rust-embed = "8.0"
zstd = "0.13"
# Kubernetes
kube = { version = "4.0", features = ["runtime", "client", "kube-runtime", "config"] }
k8s-openapi = { version = "0.28", features = ["v1_32"] }
# 构建工具
derive_builder = "0.20"
# Zed 核心功能依赖
libc = "0.2"
nix = { version = "0.31.3", features = ["fs", "process", "term", "signal"] }
unindent = "0.2" # 使用 crates.io 版本
open = "5.0" # 使用 crates.io 版本
git2 = "0.21"
tree-sitter-rust = "0.24" # 使用 crates.io 版本
# Additional dependencies for nuwax_parser
sha2 = "0.11"
hex = "0.4"
walkdir = "2.5"
reqwest = { version = "0.13", features = ["json", "stream"] }
# 项目依赖 - 保留核心功能
aho-corasick = "1.1"
base64 = "0.22"
circular-buffer = "2.0"
fancy-regex = "0.18"
fuzzy = "0.0.1"
globset = "0.4"
image = "0.25"
indexmap = "2.14"
pathdiff = "0.2"
postage = "0.5"
regex = "1.12"
semver = "1.0"
shellexpand = "3.1"
winnow = "1.0.3"
shlex = "2.0"
smallvec = "1.15"
toml = "1.1.2+spec-1.1.0"
which = "8.0"
# Dev dependencies for testing
ctor = "1.0.7"
pretty_assertions = "1.4"
tempfile = "3.24"
filetime = "0.2"
rand = "0.10"
tokio-test = "0.4"
expect-test = "1.5"
# File system utilities
dirs = "6.0"
# Archive utilities
flate2 = "1.1"
tar = "0.4"
zip = { version = "8.6", default-features = false, features = ["deflate"] }
utoipa = { version = "5.4", features = ["axum_extras", "uuid", "chrono"] }
utoipa-swagger-ui = { version = "9.0", features = ["axum"] }
ringbuf = "0.5"
diffy = { version = "0.5" }
pingora = { version = "0.8", features = ["lb", "rustls"] }
pingora-core = { version = "0.8", features = ["rustls"] }
pingora-http = "0.8"
pingora-proxy = { version = "0.8", features = ["rustls"] }
pingora-load-balancing = { version = "0.8", features = ["rustls"] }
matchit = "0.9.2"
structopt = "0.3"
bollard = { version = "0.21" }
# Cache library
moka = { version = "0.12", features = ["future", "sync"] }
# TUI
ratatui = { version = "0.30", features = ["crossterm"] }
crossterm = { version = "0.29", features = ["event-stream"] }
pulldown-cmark = "0.13"
unicode-width = "0.2"
# i18n (国际化)
rust-i18n = "4"
# Internal crates
rcoder-telemetry = { path = "crates/rcoder-telemetry" }
shared_types = { path = "crates/shared_types" }
shared_types_grpc = { path = "crates/shared_types_grpc" }
shared_types_i18n = { path = "crates/shared_types_i18n" }
agent_config = { path = "crates/agent_config" }
agent_abstraction = { path = "crates/agent_abstraction" }
docker_manager = { path = "crates/docker_manager" }
rcoder-proxy = { path = "crates/rcoder-proxy" }
container-runtime-api = { path = "crates/container-runtime-api" }
download_utils = { path = "crates/download_utils" }
# Pyroscope Continuous Profiling
pyroscope = { version = "2.0", features = ["backend-pprof-rs"] }
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"