-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
248 lines (204 loc) · 6.04 KB
/
Cargo.toml
File metadata and controls
248 lines (204 loc) · 6.04 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
[workspace]
resolver = "2"
members = [
"crates/orbit-core",
"crates/orbit-bus",
"crates/orbit-storage",
"crates/orbit-project",
"crates/orbit-config",
"crates/orbit-permission",
"crates/orbit-provider",
"crates/orbit-session",
"crates/orbit-tools",
"crates/orbit-lsp",
"crates/orbit-mcp",
"crates/orbit-server",
"crates/orbit-cli",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/Recusive/agentsdk"
authors = ["Anthropic"]
[workspace.dependencies]
# Async runtime
tokio = { version = "1.35", features = ["full"] }
async-trait = "0.1"
futures = "0.3"
async-stream = "0.3"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.8"
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Utilities
once_cell = "1.19"
uuid = { version = "1.6", features = ["v7"] }
rand = "0.8"
glob = "0.3"
globset = "0.4"
directories = "5"
dirs = "5"
dashmap = "5.5"
parking_lot = "0.12"
tokio-util = { version = "0.7", features = ["codec"] }
# HTTP/Networking
reqwest = { version = "0.11", features = ["json", "stream"] }
axum = { version = "0.7", features = ["ws"] }
tower = "0.4"
tower-http = { version = "0.5", features = ["cors", "auth", "trace"] }
# Git
git2 = "0.18"
# File operations
ignore = "0.4"
similar = "2"
notify = "6"
tempfile = "3"
# Process/Shell
portable-pty = "0.8"
# Tree-sitter
tree-sitter = "0.20"
# LSP
lsp-types = "0.94"
# OAuth
oauth2 = "4"
# HTML parsing
scraper = "0.18"
# OpenAPI docs
utoipa = "4"
utoipa-swagger-ui = "6"
# Testing
tokio-test = "0.4"
assert_fs = "1"
predicates = "3"
insta = "1"
# Internal crates
orbit-core = { path = "crates/orbit-core" }
orbit-bus = { path = "crates/orbit-bus" }
orbit-storage = { path = "crates/orbit-storage" }
orbit-project = { path = "crates/orbit-project" }
orbit-config = { path = "crates/orbit-config" }
orbit-permission = { path = "crates/orbit-permission" }
orbit-provider = { path = "crates/orbit-provider" }
orbit-session = { path = "crates/orbit-session" }
orbit-tools = { path = "crates/orbit-tools" }
orbit-lsp = { path = "crates/orbit-lsp" }
orbit-mcp = { path = "crates/orbit-mcp" }
orbit-server = { path = "crates/orbit-server" }
[profile.dev]
opt-level = 0
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
# ============================================================================
# STRICT LINTING CONFIGURATION
# ============================================================================
[workspace.lints.rust]
# Deny unsafe code (use #![allow(unsafe_code)] in specific modules if needed)
unsafe_code = "deny"
# Deny these common issues
dead_code = "deny"
unused_imports = "deny"
unused_variables = "deny"
unused_mut = "deny"
unreachable_code = "deny"
unreachable_patterns = "deny"
# Warn on these (upgrade to deny once codebase is clean)
missing_docs = "warn"
missing_debug_implementations = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
# Lint groups with lower priority so individual lints can override
rust_2018_idioms = { level = "warn", priority = -1 }
future_incompatible = { level = "deny", priority = -1 }
nonstandard_style = { level = "deny", priority = -1 }
[workspace.lints.clippy]
# ============================================================================
# CLIPPY LINT GROUPS - Set with priority so specific lints can override
# ============================================================================
# Correctness lints (bugs and soundness issues)
correctness = { level = "deny", priority = -1 }
# Suspicious code that is likely wrong
suspicious = { level = "deny", priority = -1 }
# Code complexity
complexity = { level = "warn", priority = -1 }
# Performance issues
perf = { level = "warn", priority = -1 }
# Style issues
style = { level = "warn", priority = -1 }
# Pedantic lints (very strict)
pedantic = { level = "warn", priority = -1 }
# Nursery lints (experimental but useful)
nursery = { level = "warn", priority = -1 }
# Cargo.toml lints
cargo = { level = "warn", priority = -1 }
# ============================================================================
# SPECIFIC CLIPPY LINTS - DENY (Errors)
# ============================================================================
# Memory safety
invalid_upcast_comparisons = "deny"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
cast_sign_loss = "deny"
ptr_as_ptr = "deny"
# Error handling
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
unreachable = "deny"
todo = "deny"
unimplemented = "deny"
# API design
must_use_candidate = "deny"
return_self_not_must_use = "deny"
# Async
async_yields_async = "deny"
# ============================================================================
# SPECIFIC CLIPPY LINTS - WARN (Warnings, upgrade to deny later)
# ============================================================================
# Documentation
missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
# Code clarity
implicit_clone = "warn"
inefficient_to_string = "warn"
map_unwrap_or = "warn"
match_bool = "warn"
needless_pass_by_value = "warn"
redundant_closure_for_method_calls = "warn"
semicolon_if_nothing_returned = "warn"
similar_names = "warn"
single_match_else = "warn"
string_add = "warn"
string_add_assign = "warn"
type_repetition_in_bounds = "warn"
unicode_not_nfc = "warn"
unnested_or_patterns = "warn"
unused_self = "warn"
used_underscore_binding = "warn"
verbose_bit_mask = "warn"
# Potential issues
float_cmp = "warn"
float_cmp_const = "warn"
imprecise_flops = "warn"
suboptimal_flops = "warn"
# ============================================================================
# ALLOWED LINTS (Explicitly permitted)
# ============================================================================
# These are intentionally allowed
module_name_repetitions = "allow"
must_use_unit = "allow"
missing_const_for_fn = "allow"
too_many_lines = "allow"
cognitive_complexity = "allow"