-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
130 lines (113 loc) · 3.29 KB
/
Cargo.toml
File metadata and controls
130 lines (113 loc) · 3.29 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
[workspace]
resolver = "3"
members = [
"crates/builder",
"crates/client",
"crates/config",
"crates/config-unmanaged", "crates/gui-helper",
"crates/service",
"crates/shared"
]
[profile.release]
opt-level = "z" # For size (use "s" for speed if size is not critical)
lto = true # Link Time Optimization (better optimizations across crates)
codegen-units = 1 # compiles in a single unit to allow for more cross-crate optimization
panic = "unwind" # removes support for backtraces (reduces size)
strip = "symbols" # removes debug symbols (requires Rust 1.70+)
[workspace.dependencies]
windows = { version = "0.62.2", features = [
"Win32_UI_WindowsAndMessaging",
"Win32_Foundation",
"Win32_System_LibraryLoader",
"Win32_System_Threading",
"Win32_Graphics_Gdi",
"Win32_Security",
"Win32_UI_Shell",
"Win32_System_SystemInformation",
"Win32_System_Shutdown",
"Win32_System_Registry",
"Win32_System_Diagnostics_Debug",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_System_WindowsProgramming",
# We need all three for network adapter enumeration
"Win32_NetworkManagement_IpHelper",
"Win32_Networking_WinSock",
"Win32_NetworkManagement_Ndis",
"Win32_NetworkManagement_NetManagement",
"Win32_Storage_FileSystem",
"Win32_Security_Authorization",
"Win32_System_Services",
"Win32_System_EventLog",
"Win32_System_EventNotificationService",
"Win32_System_Com_Events",
"Win32_System_Com", # For SENS
"Win32_System_Ole",
"Win32_System_Variant",
] }
windows-core = "0.62.2"
winres = "0.1.12"
widestring = "1.2.0"
zbus = {version ="5.14.0", features = ["tokio"] }
whoami = "2.1.1"
libc = "0.2.183"
libloading = "0.9.0"
toml = "1.1"
user-idle = "0.6.0"
# Logging
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = [
"env-filter",
"local-time",
] }
tracing-log = "0.2.0"
anyhow = "1.0"
chrono = { version = "0.4.44" }
reqwest = { version = "0.13.2", features = [
"json",
"rustls",
"system-proxy",
] }
ipnetwork = "0.21.1"
shlex = "1.3.0"
# For maintain compat with 4.0, we need to decrypt the pem key
# so we use pkcs8 an pem crates
pkcs8 = { version = "0.10.2", features = ["encryption"] }
pem = "3.0.6"
rustls = { version = "0.23.37", features = ["ring"] }
async-trait = "0.1.89"
tokio = { version = "1.50.0", features = [
"macros",
"rt",
"rt-multi-thread",
"time",
"sync",
"net",
"process",
"signal",
] }
rustls-native-certs = "0.8.3"
rustls-pki-types = "1.14.0"
tokio-rustls = "0.26.4"
axum = { version = "0.8.8", features = ["json", "tokio", "ws"] }
tower-http = { version = "0.6.8", features = ["trace"] }
axum-server = { version = "0.8.0", features = ["tls-rustls"] }
socket2 = "0.6.0" # To disable dual stack on listening, make IPv4 and IPv6 listeners separately
# GUI
slint = { version = "1.15", features=["log"] }
slint-build = "1.15"
rfd = "0.15"
# Web services
tokio-tungstenite = { version = "0.29.0", features = [
"rustls-tls-native-roots",
] }
futures-util = "0.3.32"
# json & related
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149"
base64 = "0.22.1"
rand = "0.10.0"
mockito = "1.7.2"
tower = "0.5.3"
hyper = "1.8.1"
local-ip-address = "0.6.10"
serial_test = "3.2.0"