-
Notifications
You must be signed in to change notification settings - Fork 662
/
Copy pathCargo.toml
257 lines (229 loc) · 7.47 KB
/
Cargo.toml
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
[package]
name = "clash-nyanpasu"
version = "0.1.0"
description = "clash verge"
authors = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
default-run = "clash-nyanpasu"
edition = { workspace = true }
build = "build.rs"
[lib]
name = "clash_nyanpasu_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
doctest = false
[build-dependencies]
tauri-build = { version = "2.0.1", features = [] }
serde = "1"
serde_json = { version = "1.0", features = ["preserve_order"] }
chrono = "0.4"
rustc_version = "0.4"
semver = "1.0"
[dependencies]
# Local Dependencies
nyanpasu-ipc = { git = "https://github.com/libnyanpasu/nyanpasu-service.git", features = [
"client",
"specta",
] } # IPC bridge between the UI process and service process
nyanpasu-macro = { path = "../nyanpasu-macro" }
nyanpasu-utils = { git = "https://github.com/libnyanpasu/nyanpasu-utils.git", features = [
"specta",
] }
nyanpasu-egui = { path = "../nyanpasu-egui" }
# Common Utilities
tokio = { version = "1", features = ["full"] }
tokio-util = { version = "0.7", features = ["full"] }
oneshot = "0.1"
futures = "0.3"
futures-util = "0.3"
glob = "0.3.1"
timeago = "0.4"
humansize = "2.1.3"
convert_case = "0.8.0"
anyhow = "1.0"
pretty_assertions = "1.4.0"
chrono = "0.4.31"
time = { version = "0.3", features = ["formatting", "parsing", "serde"] }
once_cell = "1.19.0"
async-trait = "0.1.77"
dyn-clone = "1.0.16"
thiserror = { workspace = true }
parking_lot = { version = "0.12.1" }
itertools = "0.14" # sweet iterator utilities
rayon = "1.10" # for iterator parallel processing
ambassador = "0.4.1" # for trait delegation
derive_builder = "0.20" # for builder pattern
strum = { version = "0.27", features = ["derive"] } # for enum string conversion
atomic_enum = "0.3.0" # for atomic enum
enumflags2 = "0.7" # for enum flags
backon = { version = "1.0.1", features = ["tokio-sleep"] } # for backoff retry
# Data Structures
dashmap = "6"
indexmap = { version = "2.2.3", features = ["serde"] }
bimap = "0.6.3"
# Terminal Utilities
ansi-str = "0.9" # for ansi str stripped
ctrlc = "3.4.2"
colored = "3"
clap = { version = "4.5.4", features = ["derive"] }
# GUI Utilities
rfd = { version = "0.15", default-features = false, features = [
"tokio",
"gtk3",
"common-controls-v6",
] } # cross platform dialog
# Internationalization
rust-i18n = "3"
# Networking Libraries
axum = "0.8"
url = "2"
mime = "0.3"
reqwest = { version = "0.12", features = ["json", "stream"] }
tokio-tungstenite = "0.26.1"
urlencoding = "2.1"
port_scanner = "0.1.5"
sysproxy = { git = "https://github.com/libnyanpasu/sysproxy-rs.git", version = "0.3" }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", features = ["preserve_order"] }
serde_yaml = { version = "0.10", package = "serde_yaml_ng", branch = "feat/specta", git = "https://github.com/libnyanpasu/serde-yaml-ng.git", features = [
"specta",
] }
bincode = "1"
bytes = { version = "1", features = ["serde"] }
semver = "1.0"
# Compression & Encoding
flate2 = "1.0"
zip = "2.0.0"
zip-extensions = "0.8.0"
base64 = "0.22"
adler = "1.0.2"
hex = "0.4"
percent-encoding = "2.3.1"
# Algorithms
uuid = "1.7.0"
rand = "0.9"
md-5 = "0.10.6"
sha2 = "0.10"
nanoid = "0.4.0"
rs-snowflake = "0.6"
seahash = "4.1"
# System Utilities
auto-launch = { git = "https://github.com/libnyanpasu/auto-launch.git", version = "0.5" }
delay_timer = { version = "0.11", git = "https://github.com/libnyanpasu/delay-timer.git" } # Task scheduler with timer
dunce = "1.0.4" # for cross platform path normalization
runas = { git = "https://github.com/libnyanpasu/rust-runas.git" }
single-instance = "0.3.3"
which = "7"
open = "5.0.1"
sysinfo = "0.33"
num_cpus = "1"
os_pipe = "1.2.1"
whoami = "1.5.1"
camino = { version = "1.1.9", features = ["serde1"] }
# IO Utilities
dirs = "6"
tempfile = "3.9.0"
fs_extra = "1.3.0"
notify-debouncer-full = "0.5.0"
notify = "8.0.0"
# Database
redb = "2.0.0"
# Logging & Tracing
log = "0.4.20"
tracing = { workspace = true }
tracing-attributes = "0.1"
tracing-futures = "0.2"
tracing-subscriber = { version = "0.3", features = [
"env-filter",
"json",
"parking_lot",
] }
tracing-error = "0.2"
tracing-log = { version = "0.2" }
tracing-appender = { version = "0.2", features = ["parking_lot"] }
test-log = { version = "0.2.16", features = ["trace"] }
# Image & Graphics
image = "0.25.5"
fast_image_resize = "5"
display-info = "0.5.0" # should be removed after upgrading to tauri v2
# OXC (The Oxidation Compiler)
# We use it to parse and transpile the old script profile to esm based script profile
oxc_parser = "0.53"
oxc_allocator = "0.53"
oxc_span = "0.53"
oxc_ast = "0.53"
oxc_syntax = "0.53"
# Lua Integration
mlua = { version = "0.10", features = [
"lua54",
"async",
"serialize",
"vendored",
"error-send",
] }
# JavaScript Integration
boa_utils = { path = "../boa_utils" } # should be removed when boa support console customize
boa_engine = { workspace = true, features = ["annex-b"] }
# Tauri Dependencies
tauri = { version = "2.2", features = ["tray-icon", "image-png", "image-ico"] }
tauri-plugin-deep-link = { path = "../tauri-plugin-deep-link", version = "0.1.2" } # This should be migrated to official tauri plugin
tauri-plugin-os = "2.2"
tauri-plugin-clipboard-manager = "2.2"
tauri-plugin-fs = "2.2"
tauri-plugin-dialog = "2.2"
tauri-plugin-process = "2.2"
tauri-plugin-updater = "2.2"
tauri-plugin-shell = "2.2"
tauri-plugin-notification = "2.2"
window-vibrancy = { version = "0.6.0" }
# Strong typed api binding between typescript and rust
specta-typescript = "0.0.9"
tauri-specta = { version = "=2.0.0-rc.21", features = ["derive", "typescript"] }
specta = { version = "=2.0.0-rc.22", features = [
"serde",
"serde_json",
"serde_yaml",
"uuid",
"url",
"indexmap",
"function",
] }
surrealdb = { version = "2.2.1", features = ["kv-mem"] }
[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
tauri-plugin-global-shortcut = "2.2.0"
[target.'cfg(target_os = "linux")'.dependencies]
openssl = { version = "0.10", features = ["vendored"] }
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.5.2"
objc2-app-kit = { version = "0.2.2", features = [
"NSApplication",
"NSResponder",
"NSRunningApplication",
"NSWindow",
"NSView",
] }
objc2-foundation = { version = "0.2.2", features = ["NSGeometry"] }
[target.'cfg(unix)'.dependencies]
nix = { version = "0.29.0", features = ["user", "fs"] }
[target.'cfg(windows)'.dependencies]
deelevate = "0.2.0"
winreg = { version = "0.55", features = ["transactions"] }
windows-registry = "0.5"
windows-sys = { version = "0.59", features = [
"Win32_System_LibraryLoader",
"Win32_System_SystemInformation",
"Win32_UI_WindowsAndMessaging",
"Win32_System_Shutdown",
] }
windows-core = "0.60.0"
webview2-com = "0.36"
[features]
default = ["custom-protocol", "default-meta"]
nightly = ["devtools", "deadlock-detection"]
custom-protocol = ["tauri/custom-protocol"]
verge-dev = []
default-meta = []
devtools = ["tauri/devtools"]
deadlock-detection = ["parking_lot/deadlock_detection"]
openssl_vendored = ["openssl/vendored"]