forked from lorryjovens-hub/claude-code-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
135 lines (106 loc) Β· 3.06 KB
/
Cargo.toml
File metadata and controls
135 lines (106 loc) Β· 3.06 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
[package]
name = "claude_code_rs"
version = "0.1.0"
edition = "2021"
description = "High-performance Rust implementation of Claude Code CLI"
license = "MIT"
repository = "https://github.com/lorryjovens-hub/claude-code-rust"
[dependencies]
# CLI
clap = { version = "4.5", features = ["derive", "color", "suggestions"] }
colored = "2.1"
indicatif = "0.17"
# Async runtime
tokio = { version = "1.37", features = ["full"] }
futures = "0.3"
# HTTP & API
reqwest = { version = "0.12", features = ["json", "stream", "rustls-tls", "blocking"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# File system
walkdir = "2.5"
glob = "0.3"
notify = "6.1"
# Terminal UI
crossterm = { version = "0.27", features = ["event-stream"] }
ratatui = "0.26"
# Process & Shell
which = "6.0"
# Configuration
config = "0.14"
toml = "0.8"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# Memory & Cache
lru = "0.12"
dashmap = "5.5"
# Crypto & Auth
sha2 = "0.10"
base64 = "0.22"
jsonwebtoken = "9.3"
# MCP Protocol
async-trait = "0.1"
# Regex & Parsing
regex = "1.10"
nom = "7.1"
# Time
chrono = { version = "0.4", features = ["serde"] }
# UUID
uuid = { version = "1.8", features = ["v4", "serde"] }
# Directories
dirs = "5.0"
# Diff
similar = "2.5"
# Markdown
pulldown-cmark = "0.10"
# File operations
fs_extra = "1.3"
# WebAssembly
wasm-bindgen = { version = "0.2", optional = true }
wasm-bindgen-futures = { version = "0.4", optional = true }
js-sys = { version = "0.3", optional = true }
web-sys = { version = "0.3", optional = true }
# GUI (egui)
eframe = { version = "0.28", optional = true }
egui = { version = "0.28", optional = true }
egui_extras = { version = "0.28", optional = true }
# Note: iced is disabled due to web-sys version conflicts with eframe
# GUI (iced) - alternative (disabled)
# iced = { version = "0.12", optional = true, features = ["tokio"] }
# Web server for plugin marketplace
axum = { version = "0.7", optional = true }
tower = { version = "0.4", optional = true }
tower-http = { version = "0.5", optional = true, features = ["fs", "cors"] }
askama = { version = "0.12", optional = true }
# Internationalization (i18n)
fluent = { version = "0.16", optional = true }
fluent-bundle = { version = "0.15", optional = true }
unic-langid = { version = "0.9", optional = true, features = ["macros"] }
rust-embed = { version = "8.4", optional = true }
[dev-dependencies]
tempfile = "3.10"
mockall = "0.12"
wasm-bindgen-test = "0.3"
[features]
default = ["gui-egui", "i18n"]
wasm = ["wasm-bindgen", "wasm-bindgen-futures", "js-sys", "web-sys"]
gui-egui = ["eframe", "egui", "egui_extras"]
# gui-iced = ["iced"]
web = ["axum", "tower", "tower-http", "askama"]
i18n = ["fluent", "fluent-bundle", "unic-langid", "rust-embed"]
full = ["wasm", "gui-egui", "web", "i18n"]
[[bin]]
name = "claude-code"
path = "src/main.rs"
[[bin]]
name = "claude-code-gui"
path = "src/gui/main.rs"
required-features = ["gui-egui"]
[[bin]]
name = "claude-code-web"
path = "src/web/main.rs"
required-features = ["web"]