forked from longbridge/gpui-component
-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathCargo.toml
More file actions
275 lines (247 loc) · 9.36 KB
/
Copy pathCargo.toml
File metadata and controls
275 lines (247 loc) · 9.36 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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
[workspace]
default-members = [ "main"]
members = [
"crates/macros",
"crates/ui",
"crates/assets",
"crates/ai_chat_view",
"crates/html-preview",
"crates/webview",
"crates/reqwest_client",
"crates/db",
"crates/connection-import-protocol",
"crates/db_view",
"crates/extension-runtime",
"crates/extension_view",
"crates/agent_runtime",
"crates/extension-protocol",
"crates/extension-host",
"crates/extension-driver",
"crates/extension-api",
"crates/extension-component",
"crates/extension-wasm",
"crates/tool_runtime",
"crates/onetcli_runtime",
"crates/er_flow",
"crates/onetcli_cli",
"crates/public_mcp",
"crates/terminal",
"crates/terminal_view",
"crates/port_forwarding",
"crates/connection_tunnel",
"crates/connection_form",
"crates/port_forwarding_view",
"crates/process-util",
"crates/remote_desktop",
"crates/remote_desktop_view",
"main", "crates/ssh", "crates/sftp", "crates/sftp_view", "crates/one_ui", "crates/redis_view", "crates/license_tool", "crates/mongodb_view", "crates/remote_file_editor", "crates/remote_image_preview"]
resolver = "2"
[workspace.package]
publish = false
edition = "2024"
[workspace.dependencies]
gpui-component = { path = "crates/ui", version = "0.5.2" }
gpui-component-macros = { path = "crates/macros", version = "0.5.1" }
gpui-component-assets = { path = "crates/assets", version = "0.5.1" }
gpui = { git = "https://github.com/zed-industries/zed", rev = "76c93968da5b8b8809bdd72e4ad9e7d0e946bad0", version = "=0.2.2" }
gpui_tokio = { git = "https://github.com/zed-industries/zed", rev = "76c93968da5b8b8809bdd72e4ad9e7d0e946bad0" }
gpui_platform = { git = "https://github.com/zed-industries/zed", rev = "76c93968da5b8b8809bdd72e4ad9e7d0e946bad0", features = ["font-kit", "x11", "wayland", "runtime_shaders"] }
gpui_macros = { git = "https://github.com/zed-industries/zed", rev = "76c93968da5b8b8809bdd72e4ad9e7d0e946bad0" }
util = { git = "https://github.com/zed-industries/zed", rev = "76c93968da5b8b8809bdd72e4ad9e7d0e946bad0" }
sum-tree = { version = "0.2.0", package = "zed-sum-tree" }
# reqwest = { version = "0.12.15-zed", package = "zed-reqwest" }
reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "c15662463bda39148ba154100dd44d3fba5873a4", default-features = false, features = [
"charset",
"http2",
"macos-system-configuration",
"multipart",
"rustls-tls-native-roots",
"socks",
"stream",
], package = "zed-reqwest", version = "0.12.15-zed" }
anyhow = "1.0.102"
clap = { version = "4.5", features = ["derive"] }
log = "0.4"
lsp-types = { version = "0.97.0", features = ["proposed"] }
notify = "7.0.0"
plist = "1"
raw-window-handle = "0.6.2"
ropey = { version = "=2.0.0-beta.1", features = [
"metric_lines_lf",
"metric_utf16",
] }
rust-i18n = "4"
schemars = "1"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = { version = "1", features = ["arbitrary_precision"] }
serde_yaml = "0.9"
serde_repr = "0.1"
shell-words = "1.1.1"
smallvec = "1"
smol = "2"
sys-locale = "0.3.2"
tracing = "0.1.41"
reqwest_client = { path = "crates/reqwest_client" }
agent_runtime = { path = "crates/agent_runtime" }
ai_chat_view = { path = "crates/ai_chat_view" }
html-preview = { path = "crates/html-preview" }
agent-client-protocol = "0.14.0"
public_mcp = { path = "crates/public_mcp" }
tool_runtime = { path = "crates/tool_runtime" }
db = { path = "crates/db" }
connection-import-protocol = { path = "crates/connection-import-protocol" }
db_view = { path = "crates/db_view" }
redis_view = { path = "crates/redis_view" }
one-ui = { path = "crates/one_ui" }
ssh = { path = "crates/ssh" }
sftp = { path = "crates/sftp" }
terminal = { path = "crates/terminal" }
terminal_view = { path = "crates/terminal_view" }
port_forwarding = { path = "crates/port_forwarding" }
connection_tunnel = { path = "crates/connection_tunnel" }
connection-form = { path = "crates/connection_form" }
port_forwarding_view = { path = "crates/port_forwarding_view" }
process-util = { path = "crates/process-util" }
remote_desktop = { path = "crates/remote_desktop" }
remote_desktop_view = { path = "crates/remote_desktop_view" }
sftp_view = { path = "crates/sftp_view" }
one-core = { path = "crates/core" }
mongodb_view = {path = "crates/mongodb_view"}
onetcli_cli = { path = "crates/onetcli_cli" }
onetcli_runtime = { path = "crates/onetcli_runtime" }
remote_file_editor = { path = "crates/remote_file_editor" }
remote_image_preview = { path = "crates/remote_image_preview" }
er_flow = { path = "crates/er_flow" }
extension-protocol = { path = "crates/extension-protocol" }
extension-host = { path = "crates/extension-host" }
extension-driver = { path = "crates/extension-driver" }
extension-runtime = { path = "crates/extension-runtime", default-features = false }
extension_view = { path = "crates/extension_view" }
extension-api = { path = "crates/extension-api" }
extension-component = { path = "crates/extension-component" }
extension-wasm = { path = "crates/extension-wasm" }
json5 = "1.3.0"
semver = "1.0.22"
regex = "1.10.0"
roxmltree = "0.20"
futures = "0.3.32"
image = "0.25.6"
rustls = "0.23.35"
tracing-subscriber = "0.3"
async-trait = "0.1"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "time"] }
tokio-util = "0.7.17"
dirs = "6.0"
aes = "0.8"
cbc = "0.1"
chrono = {version = "0.4.23", features = ["serde"]}
rust_decimal = { version = "1.19.0" }
hex = "0.4"
hmac = "0.12"
tiberius = { version = "0.12.3", default-features = false, features = ["chrono", "rustls", "tds73", "winauth"] }
oracle = {version = "0.6.3", features = ["chrono"]}
once_cell = "1.21"
proptest = "1.4"
mysql_async = { version = "0.36.1", features = ["rustls-tls"] }
tokio-postgres = { version = "0.7.15",features = ["with-serde_json-1", "with-chrono-0_4", "with-uuid-1"] }
tokio-postgres-rustls = "0.13.0"
rustls-native-certs = "0.8.1"
rustls-pemfile = "2.2.0"
rusqlite = { version = "0.38", features = ["bundled", "column_decltype"] }
duckdb = { version = "1.10501.0", features = ["bundled"] }
clickhouse = { version = "0.14.1", features = ["rustls-tls-native-roots"] }
sqlformat = "0.5.0"
sqlparser = "0.60.0"
uuid = { version = "1.23.0", features = ["v4", "serde"] }
rust_xlsxwriter = "0.94.0"
dashmap = "5.5.3"
moka = { version = "0.12", features = ["sync"] }
thiserror="2.0.14"
llm-connector = { version = "1.4.0", features = ["streaming"] }
redis_client = { package = "redis", version = "0.27", features = ["tokio-comp", "cluster-async", "connection-manager"] }
# SSH and SFTP
russh = "0.60.3"
russh-sftp = "2.1.2"
tokio-socks = "0.5"
# Encryption
aes-gcm = "0.10"
rand = "0.8"
base64 = "0.22"
sha2 = "0.10"
security-framework = "3.7.0"
# Terminal emulation
alacritty_terminal = "0.26"
# Serial port
serialport = "4"
parking_lot = "0.12"
bytes = "1.5"
mongodb = "3.5.1"
futures-util="0.3.31"
interprocess = { version = "2.4.0", features = ["tokio"] }
url = "2.5.4"
percent-encoding = "2.3.1"
global-hotkey = "0.7.0"
ferrum-flow = { git = "https://github.com/tu6ge/ferrum-flow.git", branch = "master" }
errno = { version = "0.3.14", default-features = false }
[patch.crates-io]
gpui = { git = "https://github.com/zed-industries/zed", rev = "76c93968da5b8b8809bdd72e4ad9e7d0e946bad0", version = "=0.2.2" }
async-process = { git = "https://github.com/zed-industries/async-process.git", rev = "0b6d6713570af61806e1e5cb40e0f757cb93fd9d" }
async-task = { git = "https://github.com/smol-rs/async-task.git", rev = "b4486cd71e4e94fbda54ce6302444de14f4d190e" }
# Use stacker's psm version which may have better WASM support
psm = { git = "https://github.com/rust-lang/stacker", branch = "master" }
[workspace.dependencies.windows]
features = ["Wdk", "Wdk_System", "Wdk_System_SystemServices"]
version = "0.61.0"
[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(feature, values("cargo-clippy"))'] }
[workspace.lints.clippy]
almost_complete_range = "allow"
arc_with_non_send_sync = "allow"
borrowed_box = "allow"
dbg_macro = "deny"
let_underscore_future = "allow"
manual_is_multiple_of = "allow"
map_entry = "allow"
module_inception = "allow"
non_canonical_partial_ord_impl = "allow"
reversed_empty_ranges = "allow"
single_range_in_vec_init = "allow"
style = { level = "allow", priority = -1 }
todo = "deny"
type_complexity = "allow"
[profile.dev]
#codegen-units = 16
#debug = "limited"
#split-debuginfo = "unpacked"
# 优化级别:0=无优化(默认,调试最佳),1=轻度优化,2=中度,3=高度
opt-level = 0
# 是否启用调试符号:true=启用(默认),false=禁用,"full"=完整符号(推荐)
debug = true
# 是否启用 debuginfo 行表(保证调试器能对应源码行)
debug-assertions = true
# 是否启用溢出检查(Debug 模式默认开启,Release 关闭)
overflow-checks = true
# 是否增量编译(加速二次构建,默认开启)
incremental = true
# panic 处理方式:"unwind"=展开栈(默认),"abort"=直接终止程序
panic = "unwind"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true
[profile.dev.package]
resvg = { opt-level = 3 }
rustybuzz = { opt-level = 3 }
taffy = { opt-level = 3 }
ttf-parser = { opt-level = 3 }
smol = { opt-level = 3 }
gpui = { opt-level = 3 }
gpui_macros = { opt-level = 3 }
tree-sitter = { opt-level = 3 }
sum_tree = { opt-level = 3 }
ropey = { opt-level = 3 }
lsp-types = { opt-level = 3 }
reqwest_client = { opt-level = 3 }
markdown = { opt-level = 3 }
xml5ever = { opt-level = 3 }