forked from longbridge/gpui-component
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathCargo.toml
More file actions
207 lines (183 loc) · 5.95 KB
/
Cargo.toml
File metadata and controls
207 lines (183 loc) · 5.95 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
[workspace]
default-members = ["crates/ui", "crates/story", "crates/assets", "main"]
members = [
"crates/macros",
"crates/story",
"crates/ui",
"crates/assets",
"crates/webview",
"crates/reqwest_client",
"examples/app_assets",
"examples/hello_world",
"examples/input",
"examples/window_title",
"examples/dialog_overlay",
"examples/webview",
"examples/system_monitor",
"examples/focus_trap",
"crates/db",
"crates/db_view",
"crates/terminal",
"crates/terminal_view"
, "main", "crates/ssh", "crates/sftp", "crates/sftp_view", "crates/one_ui", "crates/redis_view", "crates/license_tool", "crates/mongodb_view"]
resolver = "2"
[workspace.package]
publish = false
edition = "2024"
[workspace.dependencies]
gpui-component = { path = "crates/ui", version = "0.5.1" }
gpui-component-macros = { path = "crates/macros", version = "0.5.1" }
gpui-component-assets = { path = "crates/assets", version = "0.5.1" }
story = { path = "crates/story" }
gpui = { git = "https://github.com/zed-industries/zed" }
gpui_tokio = { git = "https://github.com/zed-industries/zed" }
util = { git = "https://github.com/zed-industries/zed" }
gpui-macros = "0.2.2"
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"
log = "0.4"
lsp-types = { version = "0.97.0", features = ["proposed"] }
notify = "7.0.0"
raw-window-handle = "0.6.2"
ropey = { version = "=2.0.0-beta.1", features = [
"metric_lines_lf",
"metric_utf16",
] }
rust-i18n = "3"
schemars = "1"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1"
serde_repr = "0.1"
smallvec = "1"
smol = "2"
tracing = "0.1.41"
reqwest_client = { path = "crates/reqwest_client" }
db = { path = "crates/db" }
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" }
sftp_view = { path = "crates/sftp_view" }
one-core = { path = "crates/core" }
mongodb_view = {path = "crates/mongodb_view"}
json5 = "1.3.0"
semver = "1.0.22"
regex = "1.10.0"
futures = "0.3"
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"
chrono = {version = "0.4.23", features = ["serde"]}
rust_decimal = { version = "1.19.0" }
hex = "0.4"
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"] }
clickhouse = { version = "0.14.1", features = ["rustls-tls-native-roots"] }
sqlformat = "0.5.0"
sqlparser = "0.60.0"
uuid = { version = "1.18.0", features = ["v4", "serde"] }
dashmap = "5.5.3"
moka = { version = "0.12", features = ["sync"] }
thiserror="2.0.14"
llm-connector = { version = "1.1.14", features = ["streaming"] }
redis_client = { package = "redis", version = "0.27", features = ["tokio-comp", "cluster-async"] }
# SSH and SFTP
russh = "0.57"
russh-sftp = "2.1.1"
tokio-socks = "0.5"
# Encryption
aes-gcm = "0.10"
rand = "0.8"
base64 = "0.22"
sha2 = "0.10"
# Terminal emulation
alacritty_terminal = "0.25"
# Serial port
serialport = "4"
parking_lot = "0.12"
bytes = "1.5"
mongodb = "3.5.1"
futures-util="0.3.31"
url = "2.5.4"
percent-encoding = "2.3.1"
global-hotkey = "0.7.0"
[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 }