-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathCargo.toml
More file actions
186 lines (169 loc) · 4.87 KB
/
Cargo.toml
File metadata and controls
186 lines (169 loc) · 4.87 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
[workspace]
members = ["cli", "common"]
default-members = [".", "cli"]
[workspace.dependencies]
clap = { version = "4.5", features = ["cargo", "derive", "env"] }
defguard_wireguard_rs = "0.9"
dirs-next = "2.0"
prost = "0.14"
reqwest = { version = "0.13", features = ["cookies", "json"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "2.0"
tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal"] }
tonic = { version = "0.14", default-features = false, features = [
"codegen",
"gzip",
"router",
"tls-native-roots",
"tls-ring",
"transport",
] }
tonic-prost = "0.14"
tonic-prost-build = "0.14"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
[workspace.package]
authors = ["Defguard"]
edition = "2021"
homepage = "https://github.com/DefGuard/client"
license-file = "../LICENSE.md"
rust-version = "1.95"
version = "2.1.0"
[package]
name = "defguard-client"
description = "Defguard desktop client"
repository = "https://github.com/DefGuard/client"
default-run = "defguard-client"
autobins = false
authors.workspace = true
edition.workspace = true
homepage.workspace = true
license-file.workspace = true
rust-version.workspace = true
version.workspace = true
[[bin]]
name = "defguard-client"
[[bin]]
name = "defguard-service"
required-features = ["service"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
tonic-prost-build.workspace = true
vergen-git2 = { version = "9.1", features = ["build"] }
[dependencies]
anyhow = "1.0"
base64 = "0.22"
clap.workspace = true
chrono = { version = "0.4", features = ["serde"] }
common = { path = "common" }
dark-light = "2.0"
defguard_wireguard_rs = { workspace = true, features = ["check_dependencies"] }
dirs-next.workspace = true
hyper-util = "0.1"
log = { version = "0.4", features = ["serde"] }
os_info = { version = "3.14", default-features = false }
prost.workspace = true
regex = "1.12"
reqwest.workspace = true
rust-ini = "0.21"
semver = "1.0"
serde.workspace = true
serde_json.workspace = true
serde_with = "3.11"
sqlx = { version = "0.8", features = [
"chrono",
"sqlite",
"runtime-tokio",
"uuid",
"macros",
] }
struct-patch = "0.12"
strum = { version = "0.28", features = ["derive"] }
sysinfo = { version = "0.39", default-features = false, features = ["apple-app-store", "system"] }
tauri = { version = "2", features = [
"native-tls-vendored",
"image-png",
"tray-icon",
] }
# Must match Tauri plugins in package.json.
tauri-plugin-clipboard-manager = "2"
tauri-plugin-deep-link = "2"
tauri-plugin-dialog = "2"
tauri-plugin-fs = "2"
tauri-plugin-http = { version = "2", features = ["unsafe-headers", "native-tls"] }
tauri-plugin-log = "2"
tauri-plugin-notification = "2"
tauri-plugin-opener = "2"
tauri-plugin-os = "2"
tauri-plugin-process = "2"
tauri-plugin-single-instance = { version = "2", features = ["deep-link"] }
tauri-plugin-window-state = "2"
thiserror.workspace = true
time = { version = "0.3", features = ["formatting", "macros"] }
tokio.workspace = true
tokio-util = "0.7"
tonic.workspace = true
tonic-prost.workspace = true
tower = "0.5"
tracing.workspace = true
tracing-appender = "0.2"
tracing-subscriber.workspace = true
webbrowser = "1.0"
x25519-dalek = { version = "2", features = [
"getrandom",
"serde",
"static_secrets",
] }
[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.26"
block2 = "0.6"
objc2 = "0.6"
objc2-foundation = "0.3"
objc2-network-extension = "0.3"
objc = "0.2"
[target.'cfg(unix)'.dependencies]
nix = { version = "0.31", features = ["user", "fs"] }
tokio-stream = "0.1"
[target.'cfg(windows)'.dependencies]
async-stream = "0.3"
futures-core = "0.3"
known-folders = "1.3"
windows = { version = "0.62", features = [
"Win32",
"Win32_System",
"Win32_System_RemoteDesktop",
"Win32_Graphics_Gdi",
"Win32_UI_HiDpi",
"Win32_Foundation",
] }
windows-acl = "0.3"
windows-service = "0.8"
windows-sys = { version = "0.61", features = [
# Core Win32 types
"Win32_Foundation",
# Security descriptors, ACLs, SDDL
"Win32_Security",
"Win32_Security_Authorization",
# Named pipes (CreateNamedPipeW)
"Win32_System_Pipes",
# HANDLE & file functions
"Win32_System_IO",
"Win32_System_Threading",
# Network address change notifications (NotifyAddrChange)
"Win32_NetworkManagement_IpHelper",
] }
wmi = {version = "0.18", default-features = false}
[features]
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes.
# DO NOT REMOVE!!
custom-protocol = ["tauri/custom-protocol"]
service = []
[dev-dependencies]
tokio = { version = "1", features = ["full"] }
[profile.release]
codegen-units = 1
lto = "thin"
panic = "abort"
strip = true