-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCargo.toml
More file actions
208 lines (181 loc) ยท 5.8 KB
/
Cargo.toml
File metadata and controls
208 lines (181 loc) ยท 5.8 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
[workspace]
resolver = "2"
members = ["crates/*", "xtask"]
[workspace.package]
version = "0.1.0"
edition = "2024"
rust-version = "1.95"
license = "Apache-2.0"
repository = "https://github.com/lingcoder/crab-code"
homepage = "https://github.com/lingcoder/crab-code"
keywords = ["cli", "ai", "coding-assistant", "llm", "agent"]
categories = ["command-line-utilities", "development-tools"]
description = "Rust-native agentic coding CLI โ open-source alternative to Claude Code"
[workspace.dependencies]
# โโโ ๅผๆญฅ่ฟ่กๆถ โโโ
tokio = { version = "1", features = ["full"] }
tokio-util = { version = "0.7", features = ["rt"] }
futures = "0.3"
# โโโ ๅบๅๅ โโโ
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml_ng = "0.10"
toml = "1.1.2"
# โโโ CLI โโโ
clap = { version = "4", features = ["derive"] }
clap_complete = "4"
owo-colors = "4"
# โโโ HTTP โโโ
reqwest = { version = "0.13", features = ["json", "stream", "form", "multipart"] }
mime_guess = "2"
eventsource-stream = "0.2"
either = "1"
# โโโ TUI โโโ
ratatui = { version = "0.30", features = ["serde"] }
crossterm = { version = "0.29", features = ["event-stream"] }
# โโโ ้่ฏฏๅค็ โโโ
thiserror = "2"
anyhow = "1"
# โโโ ๆฅๅฟ/่ฟฝ่ธช โโโ
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing-appender = "0.2"
# โโโ ๆไปถ็ณป็ป โโโ
globset = "0.4"
similar = "3"
regex = "1"
notify = "8"
ignore = "0.4"
fd-lock = "4.0"
dunce = "1"
grep-matcher = "0.1"
grep-regex = "0.1"
grep-searcher = "0.1"
# โโโ ไปฃ็ ๆธฒๆ โโโ
syntect = "5"
pulldown-cmark = "0.13"
# โโโ ็ณป็ป โโโ
sysinfo = "0.38"
directories = "6"
# โโโ ่ฎค่ฏ โโโ
keyring = "3"
oauth2 = "5"
# โโโ ๅฏ่งๆตๆง โโโ
opentelemetry = "0.31"
opentelemetry-otlp = "0.31"
opentelemetry_sdk = "0.31"
tracing-opentelemetry = "0.32"
# โโโ WebSocket / MCP โโโ
tokio-tungstenite = "0.29"
rmcp = { version = "1", default-features = false, features = ["client", "transport-child-process", "transport-streamable-http-client-reqwest"] }
# โโโ WASM ๆไปถ โโโ
wasmtime = "43"
# โโโ ่ฟ็จ โโโ
portable-pty = "0.9"
# โโโ ็ผ็ ไธๅ ๅฏ โโโ
base64 = "0.22"
sha2 = "0.11"
rand = "0.10"
# โโโ PDF โโโ
pdf-extract = "0.10"
# โโโ ็ๆฌ็ฎก็ โโโ
semver = "1"
# โโโ ๆ้กน โโโ
uuid = { version = "1", features = ["v4"] }
ulid = "1"
lru = "0.17"
unicode-width = "0.2"
strip-ansi-escapes = "0.2"
jsonc-parser = { version = "0.32", features = ["serde"] }
jsonschema = "0.46"
schemars = "1"
nucleo-matcher = "0.3"
# โโโ remote / sandbox / jobs ๆ้ โโโ
# rust_crypto: pure-rust HMAC/RSA backend; avoids cmake + aws_lc_rs build deps
# across Windows / Linux CI.
jsonwebtoken = { version = "10", default-features = false, features = ["rust_crypto"] }
# Agent Client Protocol (Zed) โ editor โ agent standard, official Rust SDK
agent-client-protocol = "0.10.4"
async-trait = "0.1"
# โโโ Phase 7-auth๏ผMCP OAuth ๆๅผๆต่งๅจ + URL ็ผ็ โโโ
webbrowser = "1"
urlencoding = "2"
# โโโ Phase 7 foundation๏ผbinary sniff + shell expand โโโ
infer = "0.19"
shellexpand = "3"
axum = { version = "0.8", features = ["ws"] }
croner = "3"
chrono = { version = "0.4", default-features = false, features = ["clock", "serde"] }
# Linux-only process sandbox
landlock = "0.4"
# Deferred external deps for computer_use (declared here so Phase 4 doesn't touch workspace)
# Note: `screenshots` crate is deprecated in favor of `xcap`; using xcap instead.
xcap = "0.9"
enigo = "0.6"
# โโโ ๆต่ฏ โโโ
tempfile = "3"
wat = "1"
# โโโ ๅ
้จ crate โโโ
crab-common = { path = "crates/common" }
crab-core = { path = "crates/core" }
crab-config = { path = "crates/config" }
crab-auth = { path = "crates/auth" }
crab-api = { path = "crates/api" }
crab-mcp = { path = "crates/mcp" }
crab-acp = { path = "crates/acp" }
crab-ide = { path = "crates/ide" }
crab-fs = { path = "crates/fs" }
crab-process = { path = "crates/process" }
crab-tools = { path = "crates/tools" }
crab-session = { path = "crates/session" }
crab-agent = { path = "crates/agent" }
crab-tui = { path = "crates/tui" }
crab-plugin = { path = "crates/plugin" }
crab-skill = { path = "crates/skill" }
crab-memory = { path = "crates/memory" }
crab-telemetry = { path = "crates/telemetry" }
crab-engine = { path = "crates/engine" }
crab-remote = { path = "crates/remote" }
crab-sandbox = { path = "crates/sandbox" }
crab-job = { path = "crates/job" }
[workspace.lints.rust]
unsafe_code = "forbid"
# Keep in sync with CI (RUSTFLAGS=-Dwarnings)
unused_mut = "deny"
unused_comparisons = "deny"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
# Allow during M0 skeleton phase โ will tighten as real impls land
must_use_candidate = "allow"
missing_panics_doc = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
unused_async = "allow"
new_without_default = "allow"
# Phase 2 generated code โ refactor targets
struct_excessive_bools = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
fn_params_excessive_bools = "allow"
# Phase 2 stubs โ will tighten as real impls land
unnecessary_wraps = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
comparison_chain = "allow"
if_same_then_else = "allow"
# Stylistic-only; `Duration::from_secs(3600)` reads just as well as
# `from_hours(1)`. The lint (rust 1.95+) fires across retry/timeout
# code with no functional benefit.
duration_suboptimal_units = "allow"
[profile.dev]
opt-level = 0
debug = true
[profile.release]
lto = "thin"
strip = true
codegen-units = 1
opt-level = 3