-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathCargo.toml
More file actions
298 lines (291 loc) · 9.35 KB
/
Cargo.toml
File metadata and controls
298 lines (291 loc) · 9.35 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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
[workspace]
resolver = "2"
# This value defines every rust crate for the project. Each entry must map to
# the path to a crate.
members = [
"dsc",
"dsc-bicep-ext",
"lib/dsc-lib",
"lib/dsc-lib-jsonschema",
"lib/dsc-lib-jsonschema-macros",
"resources/dscecho",
"lib/dsc-lib-osinfo",
"resources/osinfo",
"lib/dsc-lib-pal",
"resources/process",
"resources/registry",
"lib/dsc-lib-registry",
"resources/runcommandonset",
"lib/dsc-lib-security_context",
"resources/dism_dsc",
"resources/sshdconfig",
"resources/WindowsUpdate",
"resources/windows_service",
"resources/windows_firewall",
"tools/dsctest",
"tools/test_group_resource",
"grammars/tree-sitter-dscexpression",
"grammars/tree-sitter-ssh-server-config",
"y2j",
"xtask"
]
# This value is modified by the `Set-DefaultWorkspaceMember` helper.
# Be sure to use `Reset-DefaultWorkspaceMember` before committing to
# avoid unintentionally modifying this value.
default-members = [
"dsc",
"dsc-bicep-ext",
"lib/dsc-lib",
"lib/dsc-lib-jsonschema",
"lib/dsc-lib-jsonschema-macros",
"resources/dscecho",
"lib/dsc-lib-osinfo",
"resources/osinfo",
"lib/dsc-lib-pal",
"resources/process",
"resources/registry",
"lib/dsc-lib-registry",
"resources/runcommandonset",
"lib/dsc-lib-security_context",
"resources/dism_dsc",
"resources/sshdconfig",
"resources/WindowsUpdate",
"resources/windows_service",
"resources/windows_firewall",
"tools/dsctest",
"tools/test_group_resource",
"grammars/tree-sitter-dscexpression",
"grammars/tree-sitter-ssh-server-config",
"y2j",
"xtask"
]
[workspace.metadata.groups]
# The entries in this table map crates by operating system. Use the helper
# function `Set-DefaultWorkspaceMember` to choose the correct target for your
# current operating system to enable faster builds.
Windows = [
"dsc",
"dsc-bicep-ext",
"lib/dsc-lib",
"lib/dsc-lib-jsonschema",
"lib/dsc-lib-jsonschema-macros",
"resources/dscecho",
"lib/dsc-lib-osinfo",
"resources/osinfo",
"lib/dsc-lib-pal",
"resources/process",
"resources/registry",
"lib/dsc-lib-registry",
"resources/runcommandonset",
"lib/dsc-lib-security_context",
"resources/sshdconfig",
"resources/WindowsUpdate",
"resources/windows_service",
"resources/windows_firewall",
"tools/dsctest",
"tools/test_group_resource",
"grammars/tree-sitter-dscexpression",
"grammars/tree-sitter-ssh-server-config",
"y2j",
"xtask",
"resources/dism_dsc"
]
macOS = [
"dsc",
"dsc-bicep-ext",
"lib/dsc-lib",
"lib/dsc-lib-jsonschema",
"lib/dsc-lib-jsonschema-macros",
"resources/dscecho",
"lib/dsc-lib-osinfo",
"resources/osinfo",
"resources/process",
"resources/runcommandonset",
"lib/dsc-lib-security_context",
"resources/sshdconfig",
"tools/dsctest",
"tools/test_group_resource",
"grammars/tree-sitter-dscexpression",
"grammars/tree-sitter-ssh-server-config",
"y2j",
"xtask"
]
Linux = [
"dsc",
"dsc-bicep-ext",
"lib/dsc-lib",
"lib/dsc-lib-jsonschema",
"lib/dsc-lib-jsonschema-macros",
"resources/dscecho",
"lib/dsc-lib-osinfo",
"resources/osinfo",
"resources/process",
"resources/runcommandonset",
"lib/dsc-lib-security_context",
"resources/sshdconfig",
"tools/dsctest",
"tools/test_group_resource",
"grammars/tree-sitter-dscexpression",
"grammars/tree-sitter-ssh-server-config",
"y2j",
"xtask"
]
[profile.release]
codegen-units = 1 # reduces binary size by ~2%
debug = "full" # No one needs an undebuggable release binary
lto = true # reduces binary size by ~14%
opt-level = "s" # reduces binary size by ~25%
panic = "abort" # reduces binary size by ~50% in combination with -Zbuild-std-features=panic_immediate_abort
split-debuginfo = "packed" # generates a seperate *.dwp/*.dSYM so the binary can get stripped
strip = "symbols" # See split-debuginfo - allows us to drop the size by ~65%
[workspace.dependencies]
#external dependencies
# dsc-lib
base32 = { version = "0.5" }
# dsc-lib
base64 = { version = "0.22" }
# used by other crates
bytes = { version = "1.11.1" }
# dsc-lib, sshdconfig
chrono = { version = "0.4.44" }
# dsc, dsc-lib, dsc-bicep-ext, dscecho, registry, runcommandonset, sshdconfig, dsctest, test_group_resource
clap = { version = "4.6.1", features = ["derive"] }
# dsc
clap_complete = { version = "4.6.2" }
# dsc-lib
const-str = {version = "1.1" }
# dsc, registry, dsc-lib-registry, sshdconfig
crossterm = { version = "0.29" }
# dsc
ctrlc = { version = "3.5.2" }
# dsc-lib-jsonschema-macros
darling = { version = "0.23" }
# dsc-lib
derive_builder = { version = "0.20" }
# dsc, dsc-lib
indicatif = { version = "0.18.4" }
# dsc-bicep-ext
async-stream = { version = "0.3" }
# dsc-lib-security_context::windows
is_elevated = { version = "0.1" }
# dsc, dsc-lib
jsonschema = { version = "0.38", default-features = false }
# dsc-lib
linked-hash-map = { version = "0.5" }
# dsc-lib
miette = { version = "7.6.0" }
# dsc-lib
murmurhash64 = { version = "0.3" }
# dsc-lib-security_context::not_windows
nix = { version = "0.31" }
# dsc-lib
num-traits = { version = "0.2" }
# dsc-lib-osinfo
os_info = { version = "3.14" }
# dsc, dsc-lib
path-absolutize = { version = "3.1" }
# dsc-bicep-ext
prost = { version = "0.14.3" }
# dsc-lib-jsonschema-macros
proc-macro2 = { version = "1.0" }
# dsc-lib-jsonschema-macros
quote = { version = "1.0" }
# used by other crates
rand = { version = "0.10.1" }
# dsc, dsc-lib
regex = { version = "1.12.3" }
# registry, dsc-lib, dsc-lib-registry, dsctest
registry = { version = "1.3" }
# dsc
rmcp = { version = "1.5.0" }
# dsc_lib
rt-format = { version = "0.3" }
# dsc, dsc-lib, dsc-bicep-ext, dscecho, registry, dsc-lib-registry, runcommandonset, sshdconfig
rust-i18n = { version = "4.0.0" }
# dsc, dsc-lib, dscecho, registry, dsc-lib-registry, sshdconfig, dsctest, test_group_resource
schemars = { version = "1.2.1", features = ["preserve_order"] }
# dsc, dsc-lib
semver = { version = "1.0.28" }
# dsc, dsc-lib, dscecho, dsc-lib-osinfo, process, registry, dsc-lib-registry, runcommandonset, sshdconfig, dsctest, test_group_resource
serde = { version = "1.0", features = ["derive"] }
# dsc, dsc-lib, dscecho, dsc-lib-osinfo, osinfo, process, registry, dsc-lib-registry, runcommandonset, sshdconfig, dsctest, test_group_resource, y2j
serde_json = { version = "1.0.149", features = ["preserve_order"] }
# dsc, dsc-lib, y2j
serde_yaml = { version = "0.9" }
# dsc-lib-jsonschema-macros
syn = { version = "2.0" }
# dsc, y2j
syntect = { version = "5.3", features = ["default-fancy"], default-features = false }
# dsc, process
sysinfo = { version = "0.38.4" }
# sshdconfig
tempfile = { version = "3.27" }
# dsc, dsc-lib, registry, dsc-lib-registry, sshdconfig
thiserror = { version = "2.0.18" }
# used by other crates
time = { version = "0.3.47" }
# dsc, dsc-lib, dsc-bicep-ext
tokio = { version = "1.52.1" }
# dsc-bicep-ext
tokio-stream = { version = "0.1.18" }
# dsc
tokio-util = { version = "0.7.18" }
# dsc-bicep-ext
tonic = { version = "0.14.5" }
# dsc-bicep-ext
tonic-prost = { version = "0.14.5" }
# dsc-bicep-ext
tonic-reflection = { version = "0.14.5" }
# dsc, dsc-lib, dsc-bicep-ext, registry, dsc-lib-registry, runcommandonset, sshdconfig
tracing = { version = "0.1.44" }
# dsc, dsc-lib
tracing-indicatif = { version = "0.3.14" }
# dsc, dsc-bicep-ext, registry, dsc-lib-registry, runcommandonset, sshdconfig
tracing-subscriber = { version = "0.3.23", features = ["ansi", "env-filter", "json"] }
# dsc-lib, sshdconfig, tree-sitter-dscexpression, tree-sitter-ssh-server-config
tree-sitter = { version = "0.26.8" }
# tree-sitter-dscexpression, tree-sitter-ssh-server-config
tree-sitter-language = { version = "0.1.7" }
# dsc-lib, sshdconfig, tree-sitter-dscexpression, tree-sitter-ssh-server-config
tree-sitter-rust = { version = "0.24.2" }
# registry, dsc-lib-registry, dsctest
utfx = { version = "0.1" }
# dsc-lib
uuid = { version = "1.23.1", features = ["v4"] }
# dsc-lib, dsc-lib-jsonschema
url = { version = "2.5.8" }
# dsc-lib, dsc-lib-jsonschema
urlencoding = { version = "2.1" }
# dsc-lib
which = { version = "8.0.2" }
# dsc-lib
ipnetwork = { version = "0.21" }
# WindowsUpdate, windows_service
windows = { version = "0.62", features = [
"Win32_Foundation",
"Win32_NetworkManagement_WindowsFirewall",
"Win32_System_Com",
"Win32_System_Ole",
"Win32_System_Services",
"Win32_System_Variant",
"Win32_System_UpdateAgent"
] }
# build-only dependencies
# dsc-lib, dsc-lib-registry, sshdconfig, tree-sitter-dscexpression, tree-sitter-ssh-server-config
cc = { version = "1.2.60" }
# dsc
tonic-prost-build = { version = "0.14.5" }
# test-only dependencies
# dsc-lib-jsonschema, dsc-lib
pretty_assertions = { version = "1.4.1" }
# dsc-lib
test-case = { version = "3.3" }
# Workspace crates as dependencies
dsc-lib = { path = "lib/dsc-lib" }
dsc-lib-jsonschema = { path = "lib/dsc-lib-jsonschema" }
dsc-lib-jsonschema-macros = { path = "lib/dsc-lib-jsonschema-macros" }
dsc-lib-osinfo = { path = "lib/dsc-lib-osinfo" }
dsc-lib-security_context = { path = "lib/dsc-lib-security_context" }
tree-sitter-dscexpression = { path = "grammars/tree-sitter-dscexpression" }
dsc-lib-registry = { path = "lib/dsc-lib-registry" }
tree-sitter-ssh-server-config = { path = "grammars/tree-sitter-ssh-server-config" }