-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathCargo.toml
More file actions
136 lines (113 loc) · 3.3 KB
/
Copy pathCargo.toml
File metadata and controls
136 lines (113 loc) · 3.3 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
[package]
name = "winx-code-agent"
version = "0.2.320"
edition = "2021"
rust-version = "1.75"
description = "High-performance Rust implementation of WCGW for LLM code agents"
authors = ["Gabriel Maia <gabrielmaialva33@gmail.com>"]
license = "MIT"
repository = "https://github.com/gabrielmaialva33/winx-code-agent"
keywords = ["mcp", "llm", "code-agent", "shell", "wcgw"]
categories = ["command-line-utilities", "development-tools"]
[dependencies]
# MCP SDK - Official Rust SDK for Model Context Protocol
rmcp = { version = "1.7.0", features = [
"transport-io",
"transport-streamable-http-server",
"server",
] }
# HTTP server for the optional remote MCP transport (ChatGPT custom connector etc.)
axum = "0.8"
# Schema generation for MCP tools
schemars = "1.2"
# Async runtime - Tokio is the standard
tokio = { version = "1.49", features = ["full"] }
# Serialization - Serde ecosystem
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Error handling - thiserror for library, anyhow for binary
thiserror = "2.0"
anyhow = "1.0"
# Logging and observability
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# File and system operations
home = "0.5"
sha2 = "0.11.0"
base64 = "0.22"
glob = "0.3"
regex = "1.11"
mime_guess = "2.0"
memmap2 = "0.9"
tempfile = "3.14"
toml = "1.1"
# Performance and concurrency
rayon = "1.10"
# Advanced string matching algorithms
portable-pty = "0.9.0"
lazy_static = "1.5"
libc = "0.2"
# Terminal emulation and text processing
vte = "0.15"
strsim = "0.11"
# Hugging Face tokenizers - Claude-compatible token counting + path-ranking model.
# default-features=false drops onig/esaxx (C/C++) and falls back to pure-Rust fancy-regex.
tokenizers = { version = "0.21", default-features = false, features = ["fancy-regex"] }
# gitignore-aware repo walking (ripgrep's engine) for repo context parity with pygit2
ignore = "0.4"
tree-sitter = "0.26.9"
tree-sitter-bash = "0.25.1"
tree-sitter-json = "0.24.8"
tree-sitter-javascript = "0.25.0"
tree-sitter-rust = "0.24.2"
tree-sitter-typescript = "0.23.2"
# Random number generation
rand = "0.10.1"
# CLI
clap = { version = "4.5", features = ["derive"] }
tree-sitter-go = "0.25.0"
tree-sitter-c = "0.24.2"
tree-sitter-cpp = "0.23.4"
tree-sitter-java = "0.23.5"
tree-sitter-ruby = "0.23.1"
tree-sitter-css = "0.25.0"
tree-sitter-html = "0.23.2"
tree-sitter-php = "0.24.2"
tree-sitter-c-sharp = "0.23.5"
tree-sitter-lua = "0.5.0"
[dev-dependencies]
tempfile = "3.14"
[features]
default = []
# Clippy lints for quality
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
unwrap_used = "warn"
expect_used = "warn"
panic = "warn"
todo = "warn"
dbg_macro = "warn"
print_stdout = "warn"
print_stderr = "warn"
# Allow some pedantic lints that are too strict
module_name_repetitions = "allow"
must_use_candidate = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
[lints.rust]
# Note: unsafe_code is allowed in specific modules (mmap.rs, bash_state.rs) for I/O operations
# unsafe_code = "deny" # Re-enable when refactoring complete
# Allow unused code in library - some functions are for public API or future use
dead_code = "allow"
unused = "allow"
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
[profile.dev]
opt-level = 0
debug = true
[profile.test]
opt-level = 0
debug = true