gardesk/tarmac / 6755ea7

Browse files

init cargo workspace with tarmac and tarmacctl

Authored by espadonne
SHA
6755ea7586d41d18e6e6d52bca60e9c65a6ec7d2
Parents
374eaf6
Tree
f42c32c

4 changed files

StatusFile+-
A Cargo.lock 517 0
A Cargo.toml 14 0
A tarmac/Cargo.toml 59 0
A tarmacctl/Cargo.toml 6 0
Cargo.lockadded
@@ -0,0 +1,517 @@
1
+# This file is automatically @generated by Cargo.
2
+# It is not intended for manual editing.
3
+version = 4
4
+
5
+[[package]]
6
+name = "aho-corasick"
7
+version = "1.1.4"
8
+source = "registry+https://github.com/rust-lang/crates.io-index"
9
+checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
10
+dependencies = [
11
+ "memchr",
12
+]
13
+
14
+[[package]]
15
+name = "anyhow"
16
+version = "1.0.102"
17
+source = "registry+https://github.com/rust-lang/crates.io-index"
18
+checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
19
+
20
+[[package]]
21
+name = "bitflags"
22
+version = "2.11.0"
23
+source = "registry+https://github.com/rust-lang/crates.io-index"
24
+checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af"
25
+
26
+[[package]]
27
+name = "block2"
28
+version = "0.6.2"
29
+source = "registry+https://github.com/rust-lang/crates.io-index"
30
+checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
31
+dependencies = [
32
+ "objc2",
33
+]
34
+
35
+[[package]]
36
+name = "cc"
37
+version = "1.2.57"
38
+source = "registry+https://github.com/rust-lang/crates.io-index"
39
+checksum = "7a0dd1ca384932ff3641c8718a02769f1698e7563dc6974ffd03346116310423"
40
+dependencies = [
41
+ "find-msvc-tools",
42
+ "shlex",
43
+]
44
+
45
+[[package]]
46
+name = "cfg-if"
47
+version = "1.0.4"
48
+source = "registry+https://github.com/rust-lang/crates.io-index"
49
+checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
50
+
51
+[[package]]
52
+name = "cfg_aliases"
53
+version = "0.2.1"
54
+source = "registry+https://github.com/rust-lang/crates.io-index"
55
+checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
56
+
57
+[[package]]
58
+name = "ctrlc"
59
+version = "3.5.2"
60
+source = "registry+https://github.com/rust-lang/crates.io-index"
61
+checksum = "e0b1fab2ae45819af2d0731d60f2afe17227ebb1a1538a236da84c93e9a60162"
62
+dependencies = [
63
+ "dispatch2",
64
+ "nix",
65
+ "windows-sys",
66
+]
67
+
68
+[[package]]
69
+name = "dirs"
70
+version = "6.0.0"
71
+source = "registry+https://github.com/rust-lang/crates.io-index"
72
+checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e"
73
+dependencies = [
74
+ "dirs-sys",
75
+]
76
+
77
+[[package]]
78
+name = "dirs-sys"
79
+version = "0.5.0"
80
+source = "registry+https://github.com/rust-lang/crates.io-index"
81
+checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab"
82
+dependencies = [
83
+ "libc",
84
+ "option-ext",
85
+ "redox_users",
86
+ "windows-sys",
87
+]
88
+
89
+[[package]]
90
+name = "dispatch2"
91
+version = "0.3.1"
92
+source = "registry+https://github.com/rust-lang/crates.io-index"
93
+checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
94
+dependencies = [
95
+ "bitflags",
96
+ "block2",
97
+ "libc",
98
+ "objc2",
99
+]
100
+
101
+[[package]]
102
+name = "find-msvc-tools"
103
+version = "0.1.9"
104
+source = "registry+https://github.com/rust-lang/crates.io-index"
105
+checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
106
+
107
+[[package]]
108
+name = "getrandom"
109
+version = "0.2.17"
110
+source = "registry+https://github.com/rust-lang/crates.io-index"
111
+checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
112
+dependencies = [
113
+ "cfg-if",
114
+ "libc",
115
+ "wasi",
116
+]
117
+
118
+[[package]]
119
+name = "lazy_static"
120
+version = "1.5.0"
121
+source = "registry+https://github.com/rust-lang/crates.io-index"
122
+checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
123
+
124
+[[package]]
125
+name = "libc"
126
+version = "0.2.183"
127
+source = "registry+https://github.com/rust-lang/crates.io-index"
128
+checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d"
129
+
130
+[[package]]
131
+name = "libredox"
132
+version = "0.1.14"
133
+source = "registry+https://github.com/rust-lang/crates.io-index"
134
+checksum = "1744e39d1d6a9948f4f388969627434e31128196de472883b39f148769bfe30a"
135
+dependencies = [
136
+ "libc",
137
+]
138
+
139
+[[package]]
140
+name = "log"
141
+version = "0.4.29"
142
+source = "registry+https://github.com/rust-lang/crates.io-index"
143
+checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
144
+
145
+[[package]]
146
+name = "matchers"
147
+version = "0.2.0"
148
+source = "registry+https://github.com/rust-lang/crates.io-index"
149
+checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
150
+dependencies = [
151
+ "regex-automata",
152
+]
153
+
154
+[[package]]
155
+name = "memchr"
156
+version = "2.8.0"
157
+source = "registry+https://github.com/rust-lang/crates.io-index"
158
+checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
159
+
160
+[[package]]
161
+name = "nix"
162
+version = "0.31.2"
163
+source = "registry+https://github.com/rust-lang/crates.io-index"
164
+checksum = "5d6d0705320c1e6ba1d912b5e37cf18071b6c2e9b7fa8215a1e8a7651966f5d3"
165
+dependencies = [
166
+ "bitflags",
167
+ "cfg-if",
168
+ "cfg_aliases",
169
+ "libc",
170
+]
171
+
172
+[[package]]
173
+name = "nu-ansi-term"
174
+version = "0.50.3"
175
+source = "registry+https://github.com/rust-lang/crates.io-index"
176
+checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
177
+dependencies = [
178
+ "windows-sys",
179
+]
180
+
181
+[[package]]
182
+name = "objc2"
183
+version = "0.6.4"
184
+source = "registry+https://github.com/rust-lang/crates.io-index"
185
+checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"
186
+dependencies = [
187
+ "objc2-encode",
188
+ "objc2-exception-helper",
189
+]
190
+
191
+[[package]]
192
+name = "objc2-app-kit"
193
+version = "0.3.2"
194
+source = "registry+https://github.com/rust-lang/crates.io-index"
195
+checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
196
+dependencies = [
197
+ "bitflags",
198
+ "libc",
199
+ "objc2",
200
+ "objc2-core-foundation",
201
+ "objc2-core-graphics",
202
+ "objc2-foundation",
203
+]
204
+
205
+[[package]]
206
+name = "objc2-application-services"
207
+version = "0.3.2"
208
+source = "registry+https://github.com/rust-lang/crates.io-index"
209
+checksum = "69282c2b5bc58fba07cb9de2113619532eb551e98efe3d8d695509ef45fbd53b"
210
+dependencies = [
211
+ "bitflags",
212
+ "libc",
213
+ "objc2-core-foundation",
214
+]
215
+
216
+[[package]]
217
+name = "objc2-core-foundation"
218
+version = "0.3.2"
219
+source = "registry+https://github.com/rust-lang/crates.io-index"
220
+checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
221
+dependencies = [
222
+ "bitflags",
223
+ "dispatch2",
224
+ "objc2",
225
+]
226
+
227
+[[package]]
228
+name = "objc2-core-graphics"
229
+version = "0.3.2"
230
+source = "registry+https://github.com/rust-lang/crates.io-index"
231
+checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
232
+dependencies = [
233
+ "bitflags",
234
+ "dispatch2",
235
+ "objc2",
236
+ "objc2-core-foundation",
237
+ "objc2-io-surface",
238
+]
239
+
240
+[[package]]
241
+name = "objc2-encode"
242
+version = "4.1.0"
243
+source = "registry+https://github.com/rust-lang/crates.io-index"
244
+checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
245
+
246
+[[package]]
247
+name = "objc2-exception-helper"
248
+version = "0.1.1"
249
+source = "registry+https://github.com/rust-lang/crates.io-index"
250
+checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a"
251
+dependencies = [
252
+ "cc",
253
+]
254
+
255
+[[package]]
256
+name = "objc2-foundation"
257
+version = "0.3.2"
258
+source = "registry+https://github.com/rust-lang/crates.io-index"
259
+checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
260
+dependencies = [
261
+ "bitflags",
262
+ "objc2",
263
+ "objc2-core-foundation",
264
+]
265
+
266
+[[package]]
267
+name = "objc2-io-surface"
268
+version = "0.3.2"
269
+source = "registry+https://github.com/rust-lang/crates.io-index"
270
+checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
271
+dependencies = [
272
+ "bitflags",
273
+ "objc2",
274
+ "objc2-core-foundation",
275
+]
276
+
277
+[[package]]
278
+name = "once_cell"
279
+version = "1.21.4"
280
+source = "registry+https://github.com/rust-lang/crates.io-index"
281
+checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
282
+
283
+[[package]]
284
+name = "option-ext"
285
+version = "0.2.0"
286
+source = "registry+https://github.com/rust-lang/crates.io-index"
287
+checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
288
+
289
+[[package]]
290
+name = "pin-project-lite"
291
+version = "0.2.17"
292
+source = "registry+https://github.com/rust-lang/crates.io-index"
293
+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
294
+
295
+[[package]]
296
+name = "proc-macro2"
297
+version = "1.0.106"
298
+source = "registry+https://github.com/rust-lang/crates.io-index"
299
+checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
300
+dependencies = [
301
+ "unicode-ident",
302
+]
303
+
304
+[[package]]
305
+name = "quote"
306
+version = "1.0.45"
307
+source = "registry+https://github.com/rust-lang/crates.io-index"
308
+checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
309
+dependencies = [
310
+ "proc-macro2",
311
+]
312
+
313
+[[package]]
314
+name = "redox_users"
315
+version = "0.5.2"
316
+source = "registry+https://github.com/rust-lang/crates.io-index"
317
+checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac"
318
+dependencies = [
319
+ "getrandom",
320
+ "libredox",
321
+ "thiserror",
322
+]
323
+
324
+[[package]]
325
+name = "regex-automata"
326
+version = "0.4.14"
327
+source = "registry+https://github.com/rust-lang/crates.io-index"
328
+checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
329
+dependencies = [
330
+ "aho-corasick",
331
+ "memchr",
332
+ "regex-syntax",
333
+]
334
+
335
+[[package]]
336
+name = "regex-syntax"
337
+version = "0.8.10"
338
+source = "registry+https://github.com/rust-lang/crates.io-index"
339
+checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
340
+
341
+[[package]]
342
+name = "sharded-slab"
343
+version = "0.1.7"
344
+source = "registry+https://github.com/rust-lang/crates.io-index"
345
+checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
346
+dependencies = [
347
+ "lazy_static",
348
+]
349
+
350
+[[package]]
351
+name = "shlex"
352
+version = "1.3.0"
353
+source = "registry+https://github.com/rust-lang/crates.io-index"
354
+checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
355
+
356
+[[package]]
357
+name = "smallvec"
358
+version = "1.15.1"
359
+source = "registry+https://github.com/rust-lang/crates.io-index"
360
+checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
361
+
362
+[[package]]
363
+name = "syn"
364
+version = "2.0.117"
365
+source = "registry+https://github.com/rust-lang/crates.io-index"
366
+checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
367
+dependencies = [
368
+ "proc-macro2",
369
+ "quote",
370
+ "unicode-ident",
371
+]
372
+
373
+[[package]]
374
+name = "tarmac"
375
+version = "0.1.0"
376
+dependencies = [
377
+ "anyhow",
378
+ "bitflags",
379
+ "ctrlc",
380
+ "dirs",
381
+ "objc2",
382
+ "objc2-app-kit",
383
+ "objc2-application-services",
384
+ "objc2-core-foundation",
385
+ "objc2-core-graphics",
386
+ "objc2-foundation",
387
+ "thiserror",
388
+ "tracing",
389
+ "tracing-subscriber",
390
+]
391
+
392
+[[package]]
393
+name = "tarmacctl"
394
+version = "0.1.0"
395
+
396
+[[package]]
397
+name = "thiserror"
398
+version = "2.0.18"
399
+source = "registry+https://github.com/rust-lang/crates.io-index"
400
+checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
401
+dependencies = [
402
+ "thiserror-impl",
403
+]
404
+
405
+[[package]]
406
+name = "thiserror-impl"
407
+version = "2.0.18"
408
+source = "registry+https://github.com/rust-lang/crates.io-index"
409
+checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
410
+dependencies = [
411
+ "proc-macro2",
412
+ "quote",
413
+ "syn",
414
+]
415
+
416
+[[package]]
417
+name = "thread_local"
418
+version = "1.1.9"
419
+source = "registry+https://github.com/rust-lang/crates.io-index"
420
+checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185"
421
+dependencies = [
422
+ "cfg-if",
423
+]
424
+
425
+[[package]]
426
+name = "tracing"
427
+version = "0.1.44"
428
+source = "registry+https://github.com/rust-lang/crates.io-index"
429
+checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
430
+dependencies = [
431
+ "pin-project-lite",
432
+ "tracing-attributes",
433
+ "tracing-core",
434
+]
435
+
436
+[[package]]
437
+name = "tracing-attributes"
438
+version = "0.1.31"
439
+source = "registry+https://github.com/rust-lang/crates.io-index"
440
+checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
441
+dependencies = [
442
+ "proc-macro2",
443
+ "quote",
444
+ "syn",
445
+]
446
+
447
+[[package]]
448
+name = "tracing-core"
449
+version = "0.1.36"
450
+source = "registry+https://github.com/rust-lang/crates.io-index"
451
+checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
452
+dependencies = [
453
+ "once_cell",
454
+ "valuable",
455
+]
456
+
457
+[[package]]
458
+name = "tracing-log"
459
+version = "0.2.0"
460
+source = "registry+https://github.com/rust-lang/crates.io-index"
461
+checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
462
+dependencies = [
463
+ "log",
464
+ "once_cell",
465
+ "tracing-core",
466
+]
467
+
468
+[[package]]
469
+name = "tracing-subscriber"
470
+version = "0.3.23"
471
+source = "registry+https://github.com/rust-lang/crates.io-index"
472
+checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319"
473
+dependencies = [
474
+ "matchers",
475
+ "nu-ansi-term",
476
+ "once_cell",
477
+ "regex-automata",
478
+ "sharded-slab",
479
+ "smallvec",
480
+ "thread_local",
481
+ "tracing",
482
+ "tracing-core",
483
+ "tracing-log",
484
+]
485
+
486
+[[package]]
487
+name = "unicode-ident"
488
+version = "1.0.24"
489
+source = "registry+https://github.com/rust-lang/crates.io-index"
490
+checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
491
+
492
+[[package]]
493
+name = "valuable"
494
+version = "0.1.1"
495
+source = "registry+https://github.com/rust-lang/crates.io-index"
496
+checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
497
+
498
+[[package]]
499
+name = "wasi"
500
+version = "0.11.1+wasi-snapshot-preview1"
501
+source = "registry+https://github.com/rust-lang/crates.io-index"
502
+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
503
+
504
+[[package]]
505
+name = "windows-link"
506
+version = "0.2.1"
507
+source = "registry+https://github.com/rust-lang/crates.io-index"
508
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
509
+
510
+[[package]]
511
+name = "windows-sys"
512
+version = "0.61.2"
513
+source = "registry+https://github.com/rust-lang/crates.io-index"
514
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
515
+dependencies = [
516
+ "windows-link",
517
+]
Cargo.tomladded
@@ -0,0 +1,14 @@
1
+[workspace]
2
+members = ["tarmac", "tarmacctl"]
3
+resolver = "2"
4
+
5
+[profile.dev]
6
+opt-level = 0
7
+debug = 1
8
+incremental = true
9
+
10
+[profile.release]
11
+opt-level = 3
12
+lto = "thin"
13
+strip = true
14
+codegen-units = 1
tarmac/Cargo.tomladded
@@ -0,0 +1,59 @@
1
+[package]
2
+name = "tarmac"
3
+version = "0.1.0"
4
+edition = "2024"
5
+
6
+[dependencies]
7
+# macOS interop
8
+objc2 = { version = "0.6", default-features = false, features = ["exception"] }
9
+objc2-app-kit = { version = "0.3", default-features = false, features = [
10
+    "NSApplication",
11
+    "NSResponder",
12
+    "NSRunningApplication",
13
+    "NSWorkspace",
14
+    "NSScreen",
15
+    "NSEvent",
16
+    "libc",
17
+    "objc2-core-foundation",
18
+    "objc2-core-graphics",
19
+] }
20
+objc2-application-services = { version = "0.3", default-features = false, features = [
21
+    "AXError",
22
+    "AXUIElement",
23
+    "AXValue",
24
+    "HIServices",
25
+    "libc",
26
+] }
27
+objc2-core-foundation = { version = "0.3", default-features = false, features = [
28
+    "CFArray",
29
+    "CFDictionary",
30
+    "CFMachPort",
31
+    "CFNumber",
32
+    "CFRunLoop",
33
+    "CFString",
34
+] }
35
+objc2-core-graphics = { version = "0.3", default-features = false, features = [
36
+    "CGDirectDisplay",
37
+    "CGEvent",
38
+    "CGEventTypes",
39
+    "CGWindow",
40
+] }
41
+objc2-foundation = { version = "0.3", default-features = false, features = [
42
+    "NSArray",
43
+    "NSString",
44
+    "NSNotification",
45
+    "NSProcessInfo",
46
+] }
47
+
48
+# Logging
49
+tracing = "0.1"
50
+tracing-subscriber = { version = "0.3", features = ["env-filter"] }
51
+
52
+# Error handling
53
+thiserror = "2"
54
+anyhow = "1"
55
+
56
+# Utilities
57
+bitflags = "2"
58
+ctrlc = "3"
59
+dirs = "6"
tarmacctl/Cargo.tomladded
@@ -0,0 +1,6 @@
1
+[package]
2
+name = "tarmacctl"
3
+version = "0.1.0"
4
+edition = "2024"
5
+
6
+[dependencies]