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
128 lines (116 loc) · 2.98 KB
/
Copy pathCargo.toml
File metadata and controls
128 lines (116 loc) · 2.98 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
[workspace]
resolver = "2"
members = [
"crates/claude-cli",
"crates/api-client",
"crates/tools",
"crates/runtime",
"crates/dcc-tools",
# 后续添加其他Crate
# "crates/commands",
# "crates/plugins",
# "crates/compat-harness",
# "crates/server",
# "crates/lsp",
]
# Workspace级别的依赖配置
[workspace.dependencies]
tokio = { version = "1.35", features = ["full"] }
anyhow = "1.0"
thiserror = "1.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
async-trait = "0.1"
futures = "0.3"
# HTTP相关依赖
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "cookies", "gzip", "default-tls"] }
url = "2.5"
urlencoding = "2.1"
flate2 = { version = "1.0", default-features = false, features = ["rust_backend"] }
tokio-tungstenite = "0.21"
# 配置和文件系统
config = "0.14"
toml = "0.8"
dirs = "5.0"
walkdir = "2.4"
# 数据结构和工具
indexmap = "2.1"
once_cell = "1.19"
uuid = { version = "1.6", features = ["v4"] }
chrono = { version = "0.4", features = ["serde"] }
rand = "0.8"
lru = "0.12"
# CLI和终端
clap = { version = "4.4", features = ["derive", "cargo"] }
console = "0.15"
indicatif = "0.18"
ratatui = "0.30"
# 其他通用依赖
async-stream = "0.3"
libloading = "0.8"
# Workspace包配置(供成员使用)
[workspace.package]
version = "0.1.1"
edition = "2021"
authors = ["Claude Code Team"]
license = "MIT"
description = "Claude Code - AI-powered coding assistant (Rust implementation)"
# 虚拟包,实际构建由成员Crate处理
[package]
name = "claude-code-workspace"
version = "0.1.1"
edition = "2021"
publish = false
[dependencies]
tokio = { version = "1.35", features = ["full"] }
anyhow = "1.0"
thiserror = "1.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
async-trait = "0.1"
futures = "0.3"
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "cookies", "gzip", "default-tls"] }
url = "2.5"
urlencoding = "2.1"
flate2 = { version = "1.0", default-features = false, features = ["rust_backend"] }
config = "0.14"
toml = "0.8"
dirs = "5.0"
walkdir = "2.4"
indexmap = "2.1"
once_cell = "1.19"
uuid = { version = "1.6", features = ["v4"] }
chrono = { version = "0.4", features = ["serde"] }
rand = "0.8"
lru = "0.12"
clap = { version = "4.4", features = ["derive", "cargo"] }
console = "0.15"
indicatif = "0.18"
async-stream = "0.3"
libloading = "0.8"
tokio-tungstenite.workspace = true
axum = "0.7"
api-client = { path = "crates/api-client" }
tools = { path = "crates/tools" }
regex = "1.10"
crossterm = "0.27"
base64 = "0.21"
whoami = "1.5"
retry = "2.0"
ctrlc = "3.4"
glob-match = "0.2"
num_cpus = "1.16"
[features]
default = []
git-worktree = ["tools/git-worktree"]
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
[profile.dev]
opt-level = 1