-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathCargo.toml
More file actions
180 lines (143 loc) · 4.75 KB
/
Cargo.toml
File metadata and controls
180 lines (143 loc) · 4.75 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
[package]
name = "opencrabs"
version = "0.2.48"
edition = "2024"
authors = ["Adolfo Usier <adolfo@meetneura.ai>"]
license = "MIT"
description = "High-performance terminal AI orchestration agent for software development"
repository = "https://github.com/adolfousier/opencrabs"
keywords = ["ai", "terminal", "assistant", "llm", "cli"]
categories = ["command-line-utilities", "development-tools"]
readme = "README.md"
[dependencies]
# Async Runtime
tokio = { version = "1.43", features = ["full"] }
tokio-util = { version = "0.7", features = ["codec"] }
futures = "0.3"
async-trait = "0.1"
# CLI Framework
clap = { version = "4.5", features = ["derive", "env", "cargo"] }
# TUI
ratatui = { version = "0.30", features = ["all-widgets"] }
crossterm = { version = "0.29", features = ["event-stream"] }
# Database (git main: libsqlite3-sys >=0.30,<0.37 — compatible with qmd's rusqlite)
sqlx = { git = "https://github.com/launchbadge/sqlx", branch = "main", features = ["runtime-tokio", "tls-native-tls", "sqlite", "chrono", "uuid"] }
# Serialization
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = "1.0"
toml = "0.8"
# Configuration
config = "0.15"
dirs = "6.0"
# HTTP & LLM Clients
reqwest = { version = "0.12", features = ["json", "multipart", "native-tls", "stream"], default-features = false }
# A2A Gateway (HTTP Server)
axum = "0.8"
tower-http = { version = "0.6", features = ["cors"] }
# Provider Registry (Crabrace - replaces Catwalk)
crabrace = "0.1.0"
# Error Handling
anyhow = "1.0"
thiserror = "2.0"
# Logging & Tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
tracing-appender = "0.2"
# Encoding
base64 = "0.22.1"
# Utilities
uuid = { version = "1.11", features = ["v4", "serde"] }
notify = "6"
chrono = { version = "0.4", features = ["serde"] }
regex = "1.11"
glob = "0.3"
which = "8.0"
rand = "0.9"
urlencoding = "2.1"
# Syntax & Parsing
syntect = { version = "5.2", default-features = false, features = ["default-fancy"] }
pulldown-cmark = "0.13"
# Concurrent Data Structures
once_cell = "1.20"
# OpenSSL (vendored for cross-compilation)
openssl = { version = "0.10", features = ["vendored"] }
# Security
zeroize = { version = "1.8", features = ["derive"] }
# Telegram
teloxide = { version = "0.13", features = ["macros"], optional = true }
# WhatsApp
whatsapp-rust = { version = "0.2", optional = true, default-features = false, features = ["tokio-transport", "ureq-client", "tokio-native"] }
whatsapp-rust-tokio-transport = { version = "0.2", optional = true }
whatsapp-rust-ureq-http-client = { version = "0.2", optional = true }
wacore = { version = "0.2", optional = true }
wacore-binary = { version = "0.2", optional = true }
waproto = { version = "0.2", optional = true }
qrcode = { version = "0.14", optional = true }
rmp-serde = { version = "1", optional = true }
# Discord
serenity = { version = "0.12", default-features = false, features = ["client", "gateway", "model", "native_tls_backend"], optional = true }
# Slack
slack-morphism = { version = "2", features = ["hyper"], optional = true }
rustls = { version = "0.23", features = ["ring"], optional = true }
# Misc
unicode-width = "0.2"
# Document Parsing
pdf-extract = "0.10"
zip = "6.0"
quick-xml = "0.37"
tiktoken-rs = "0.9.1"
# Memory Search (FTS5 + vector search)
qmd = "0.3"
llama-cpp-2 = "0.1.137"
[dev-dependencies]
rstest = "0.25"
proptest = "1.6"
mockall = "0.13"
criterion = { version = "0.5", features = ["html_reports"] }
insta = { version = "1.42", features = ["json", "yaml"] }
tempfile = "3.25"
tokio-test = "0.4"
tower = { version = "0.5", features = ["util"] }
mockito = "1.7"
# Platform-specific dependencies
[target.'cfg(unix)'.dependencies]
# Profiling (Unix-only - not supported on Windows)
pprof = { version = "0.15", features = ["flamegraph", "frame-pointer"], optional = true }
[features]
default = ["telegram", "whatsapp", "discord", "slack", "trello"]
# Profiling feature enables pprof on Unix only (no-op on Windows)
profiling = []
telegram = ["teloxide"]
trello = []
whatsapp = ["whatsapp-rust", "whatsapp-rust-tokio-transport", "whatsapp-rust-ureq-http-client", "wacore", "wacore-binary", "waproto", "dep:qrcode", "dep:rmp-serde"]
discord = ["serenity"]
slack = ["slack-morphism", "rustls"]
[profile.dev]
opt-level = 0
debug = true
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true
panic = "abort"
[profile.release-small]
inherits = "release"
opt-level = "z"
strip = true
[[bin]]
name = "opencrabs"
path = "src/main.rs"
# Benchmarks
[[bench]]
name = "database"
harness = false
path = "src/benches/database.rs"
[[bench]]
name = "memory"
harness = false
path = "src/benches/memory.rs"
[patch.crates-io]
# Fix portable_simd API breakage on nightly >= 2025-12
wacore-binary = { path = "src/patches/wacore-binary" }
[lints.clippy]