diff options
author | fx <[email protected]> | 2023-10-18 15:11:44 +0200 |
---|---|---|
committer | fx <[email protected]> | 2023-10-18 15:11:44 +0200 |
commit | b4f59c226c6916a3e45f1a52dc6a9b15c800297a (patch) | |
tree | 07016e2ac7278da6b63aa839065c5ad572215e50 | |
download | webol-cli-b4f59c226c6916a3e45f1a52dc6a9b15c800297a.tar webol-cli-b4f59c226c6916a3e45f1a52dc6a9b15c800297a.tar.gz webol-cli-b4f59c226c6916a3e45f1a52dc6a9b15c800297a.zip |
basic cli, only start and get device
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Cargo.lock | 1540 | ||||
-rw-r--r-- | Cargo.toml | 15 | ||||
-rw-r--r-- | docker-compose.yml | 25 | ||||
-rw-r--r-- | src/config.rs | 19 | ||||
-rw-r--r-- | src/error.rs | 19 | ||||
-rw-r--r-- | src/main.rs | 60 | ||||
-rw-r--r-- | src/requests/get.rs | 21 | ||||
-rw-r--r-- | src/requests/mod.rs | 2 | ||||
-rw-r--r-- | src/requests/start.rs | 34 | ||||
-rw-r--r-- | webol-cli.toml | 2 |
11 files changed, 1739 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..13a2081 --- /dev/null +++ b/.gitignore | |||
@@ -0,0 +1,2 @@ | |||
1 | /target | ||
2 | /postgres-data | ||
diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..57bd864 --- /dev/null +++ b/Cargo.lock | |||
@@ -0,0 +1,1540 @@ | |||
1 | # This file is automatically @generated by Cargo. | ||
2 | # It is not intended for manual editing. | ||
3 | version = 3 | ||
4 | |||
5 | [[package]] | ||
6 | name = "addr2line" | ||
7 | version = "0.21.0" | ||
8 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
9 | checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" | ||
10 | dependencies = [ | ||
11 | "gimli", | ||
12 | ] | ||
13 | |||
14 | [[package]] | ||
15 | name = "adler" | ||
16 | version = "1.0.2" | ||
17 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
18 | checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" | ||
19 | |||
20 | [[package]] | ||
21 | name = "ahash" | ||
22 | version = "0.7.6" | ||
23 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
24 | checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" | ||
25 | dependencies = [ | ||
26 | "getrandom", | ||
27 | "once_cell", | ||
28 | "version_check", | ||
29 | ] | ||
30 | |||
31 | [[package]] | ||
32 | name = "anstream" | ||
33 | version = "0.6.4" | ||
34 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
35 | checksum = "2ab91ebe16eb252986481c5b62f6098f3b698a45e34b5b98200cf20dd2484a44" | ||
36 | dependencies = [ | ||
37 | "anstyle", | ||
38 | "anstyle-parse", | ||
39 | "anstyle-query", | ||
40 | "anstyle-wincon", | ||
41 | "colorchoice", | ||
42 | "utf8parse", | ||
43 | ] | ||
44 | |||
45 | [[package]] | ||
46 | name = "anstyle" | ||
47 | version = "1.0.4" | ||
48 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
49 | checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87" | ||
50 | |||
51 | [[package]] | ||
52 | name = "anstyle-parse" | ||
53 | version = "0.2.2" | ||
54 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
55 | checksum = "317b9a89c1868f5ea6ff1d9539a69f45dffc21ce321ac1fd1160dfa48c8e2140" | ||
56 | dependencies = [ | ||
57 | "utf8parse", | ||
58 | ] | ||
59 | |||
60 | [[package]] | ||
61 | name = "anstyle-query" | ||
62 | version = "1.0.0" | ||
63 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
64 | checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b" | ||
65 | dependencies = [ | ||
66 | "windows-sys", | ||
67 | ] | ||
68 | |||
69 | [[package]] | ||
70 | name = "anstyle-wincon" | ||
71 | version = "3.0.1" | ||
72 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
73 | checksum = "f0699d10d2f4d628a98ee7b57b289abbc98ff3bad977cb3152709d4bf2330628" | ||
74 | dependencies = [ | ||
75 | "anstyle", | ||
76 | "windows-sys", | ||
77 | ] | ||
78 | |||
79 | [[package]] | ||
80 | name = "async-trait" | ||
81 | version = "0.1.74" | ||
82 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
83 | checksum = "a66537f1bb974b254c98ed142ff995236e81b9d0fe4db0575f46612cb15eb0f9" | ||
84 | dependencies = [ | ||
85 | "proc-macro2", | ||
86 | "quote", | ||
87 | "syn", | ||
88 | ] | ||
89 | |||
90 | [[package]] | ||
91 | name = "autocfg" | ||
92 | version = "1.1.0" | ||
93 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
94 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" | ||
95 | |||
96 | [[package]] | ||
97 | name = "backtrace" | ||
98 | version = "0.3.69" | ||
99 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
100 | checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" | ||
101 | dependencies = [ | ||
102 | "addr2line", | ||
103 | "cc", | ||
104 | "cfg-if", | ||
105 | "libc", | ||
106 | "miniz_oxide", | ||
107 | "object", | ||
108 | "rustc-demangle", | ||
109 | ] | ||
110 | |||
111 | [[package]] | ||
112 | name = "base64" | ||
113 | version = "0.13.1" | ||
114 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
115 | checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" | ||
116 | |||
117 | [[package]] | ||
118 | name = "base64" | ||
119 | version = "0.21.4" | ||
120 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
121 | checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2" | ||
122 | |||
123 | [[package]] | ||
124 | name = "bitflags" | ||
125 | version = "1.3.2" | ||
126 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
127 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" | ||
128 | |||
129 | [[package]] | ||
130 | name = "bitflags" | ||
131 | version = "2.4.1" | ||
132 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
133 | checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" | ||
134 | |||
135 | [[package]] | ||
136 | name = "block-buffer" | ||
137 | version = "0.10.4" | ||
138 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
139 | checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" | ||
140 | dependencies = [ | ||
141 | "generic-array", | ||
142 | ] | ||
143 | |||
144 | [[package]] | ||
145 | name = "bumpalo" | ||
146 | version = "3.14.0" | ||
147 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
148 | checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" | ||
149 | |||
150 | [[package]] | ||
151 | name = "bytes" | ||
152 | version = "1.5.0" | ||
153 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
154 | checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" | ||
155 | |||
156 | [[package]] | ||
157 | name = "cc" | ||
158 | version = "1.0.83" | ||
159 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
160 | checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" | ||
161 | dependencies = [ | ||
162 | "libc", | ||
163 | ] | ||
164 | |||
165 | [[package]] | ||
166 | name = "cfg-if" | ||
167 | version = "1.0.0" | ||
168 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
169 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" | ||
170 | |||
171 | [[package]] | ||
172 | name = "clap" | ||
173 | version = "4.4.6" | ||
174 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
175 | checksum = "d04704f56c2cde07f43e8e2c154b43f216dc5c92fc98ada720177362f953b956" | ||
176 | dependencies = [ | ||
177 | "clap_builder", | ||
178 | "clap_derive", | ||
179 | ] | ||
180 | |||
181 | [[package]] | ||
182 | name = "clap_builder" | ||
183 | version = "4.4.6" | ||
184 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
185 | checksum = "0e231faeaca65ebd1ea3c737966bf858971cd38c3849107aa3ea7de90a804e45" | ||
186 | dependencies = [ | ||
187 | "anstream", | ||
188 | "anstyle", | ||
189 | "clap_lex", | ||
190 | "strsim", | ||
191 | ] | ||
192 | |||
193 | [[package]] | ||
194 | name = "clap_derive" | ||
195 | version = "4.4.2" | ||
196 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
197 | checksum = "0862016ff20d69b84ef8247369fabf5c008a7417002411897d40ee1f4532b873" | ||
198 | dependencies = [ | ||
199 | "heck", | ||
200 | "proc-macro2", | ||
201 | "quote", | ||
202 | "syn", | ||
203 | ] | ||
204 | |||
205 | [[package]] | ||
206 | name = "clap_lex" | ||
207 | version = "0.5.1" | ||
208 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
209 | checksum = "cd7cc57abe963c6d3b9d8be5b06ba7c8957a930305ca90304f24ef040aa6f961" | ||
210 | |||
211 | [[package]] | ||
212 | name = "colorchoice" | ||
213 | version = "1.0.0" | ||
214 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
215 | checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" | ||
216 | |||
217 | [[package]] | ||
218 | name = "config" | ||
219 | version = "0.13.3" | ||
220 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
221 | checksum = "d379af7f68bfc21714c6c7dea883544201741d2ce8274bb12fa54f89507f52a7" | ||
222 | dependencies = [ | ||
223 | "async-trait", | ||
224 | "json5", | ||
225 | "lazy_static", | ||
226 | "nom", | ||
227 | "pathdiff", | ||
228 | "ron", | ||
229 | "rust-ini", | ||
230 | "serde", | ||
231 | "serde_json", | ||
232 | "toml", | ||
233 | "yaml-rust", | ||
234 | ] | ||
235 | |||
236 | [[package]] | ||
237 | name = "core-foundation" | ||
238 | version = "0.9.3" | ||
239 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
240 | checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" | ||
241 | dependencies = [ | ||
242 | "core-foundation-sys", | ||
243 | "libc", | ||
244 | ] | ||
245 | |||
246 | [[package]] | ||
247 | name = "core-foundation-sys" | ||
248 | version = "0.8.4" | ||
249 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
250 | checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" | ||
251 | |||
252 | [[package]] | ||
253 | name = "cpufeatures" | ||
254 | version = "0.2.9" | ||
255 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
256 | checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1" | ||
257 | dependencies = [ | ||
258 | "libc", | ||
259 | ] | ||
260 | |||
261 | [[package]] | ||
262 | name = "crypto-common" | ||
263 | version = "0.1.6" | ||
264 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
265 | checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" | ||
266 | dependencies = [ | ||
267 | "generic-array", | ||
268 | "typenum", | ||
269 | ] | ||
270 | |||
271 | [[package]] | ||
272 | name = "digest" | ||
273 | version = "0.10.7" | ||
274 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
275 | checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" | ||
276 | dependencies = [ | ||
277 | "block-buffer", | ||
278 | "crypto-common", | ||
279 | ] | ||
280 | |||
281 | [[package]] | ||
282 | name = "dirs" | ||
283 | version = "5.0.1" | ||
284 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
285 | checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225" | ||
286 | dependencies = [ | ||
287 | "dirs-sys", | ||
288 | ] | ||
289 | |||
290 | [[package]] | ||
291 | name = "dirs-sys" | ||
292 | version = "0.4.1" | ||
293 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
294 | checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" | ||
295 | dependencies = [ | ||
296 | "libc", | ||
297 | "option-ext", | ||
298 | "redox_users", | ||
299 | "windows-sys", | ||
300 | ] | ||
301 | |||
302 | [[package]] | ||
303 | name = "dlv-list" | ||
304 | version = "0.3.0" | ||
305 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
306 | checksum = "0688c2a7f92e427f44895cd63841bff7b29f8d7a1648b9e7e07a4a365b2e1257" | ||
307 | |||
308 | [[package]] | ||
309 | name = "encoding_rs" | ||
310 | version = "0.8.33" | ||
311 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
312 | checksum = "7268b386296a025e474d5140678f75d6de9493ae55a5d709eeb9dd08149945e1" | ||
313 | dependencies = [ | ||
314 | "cfg-if", | ||
315 | ] | ||
316 | |||
317 | [[package]] | ||
318 | name = "errno" | ||
319 | version = "0.3.5" | ||
320 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
321 | checksum = "ac3e13f66a2f95e32a39eaa81f6b95d42878ca0e1db0c7543723dfe12557e860" | ||
322 | dependencies = [ | ||
323 | "libc", | ||
324 | "windows-sys", | ||
325 | ] | ||
326 | |||
327 | [[package]] | ||
328 | name = "fastrand" | ||
329 | version = "2.0.1" | ||
330 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
331 | checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" | ||
332 | |||
333 | [[package]] | ||
334 | name = "fnv" | ||
335 | version = "1.0.7" | ||
336 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
337 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" | ||
338 | |||
339 | [[package]] | ||
340 | name = "foreign-types" | ||
341 | version = "0.3.2" | ||
342 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
343 | checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" | ||
344 | dependencies = [ | ||
345 | "foreign-types-shared", | ||
346 | ] | ||
347 | |||
348 | [[package]] | ||
349 | name = "foreign-types-shared" | ||
350 | version = "0.1.1" | ||
351 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
352 | checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" | ||
353 | |||
354 | [[package]] | ||
355 | name = "form_urlencoded" | ||
356 | version = "1.2.0" | ||
357 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
358 | checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652" | ||
359 | dependencies = [ | ||
360 | "percent-encoding", | ||
361 | ] | ||
362 | |||
363 | [[package]] | ||
364 | name = "futures-channel" | ||
365 | version = "0.3.28" | ||
366 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
367 | checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" | ||
368 | dependencies = [ | ||
369 | "futures-core", | ||
370 | ] | ||
371 | |||
372 | [[package]] | ||
373 | name = "futures-core" | ||
374 | version = "0.3.28" | ||
375 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
376 | checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" | ||
377 | |||
378 | [[package]] | ||
379 | name = "futures-io" | ||
380 | version = "0.3.28" | ||
381 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
382 | checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" | ||
383 | |||
384 | [[package]] | ||
385 | name = "futures-sink" | ||
386 | version = "0.3.28" | ||
387 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
388 | checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" | ||
389 | |||
390 | [[package]] | ||
391 | name = "futures-task" | ||
392 | version = "0.3.28" | ||
393 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
394 | checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" | ||
395 | |||
396 | [[package]] | ||
397 | name = "futures-util" | ||
398 | version = "0.3.28" | ||
399 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
400 | checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" | ||
401 | dependencies = [ | ||
402 | "futures-core", | ||
403 | "futures-io", | ||
404 | "futures-task", | ||
405 | "memchr", | ||
406 | "pin-project-lite", | ||
407 | "pin-utils", | ||
408 | "slab", | ||
409 | ] | ||
410 | |||
411 | [[package]] | ||
412 | name = "generic-array" | ||
413 | version = "0.14.7" | ||
414 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
415 | checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" | ||
416 | dependencies = [ | ||
417 | "typenum", | ||
418 | "version_check", | ||
419 | ] | ||
420 | |||
421 | [[package]] | ||
422 | name = "getrandom" | ||
423 | version = "0.2.10" | ||
424 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
425 | checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" | ||
426 | dependencies = [ | ||
427 | "cfg-if", | ||
428 | "libc", | ||
429 | "wasi", | ||
430 | ] | ||
431 | |||
432 | [[package]] | ||
433 | name = "gimli" | ||
434 | version = "0.28.0" | ||
435 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
436 | checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0" | ||
437 | |||
438 | [[package]] | ||
439 | name = "h2" | ||
440 | version = "0.3.21" | ||
441 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
442 | checksum = "91fc23aa11be92976ef4729127f1a74adf36d8436f7816b185d18df956790833" | ||
443 | dependencies = [ | ||
444 | "bytes", | ||
445 | "fnv", | ||
446 | "futures-core", | ||
447 | "futures-sink", | ||
448 | "futures-util", | ||
449 | "http", | ||
450 | "indexmap", | ||
451 | "slab", | ||
452 | "tokio", | ||
453 | "tokio-util", | ||
454 | "tracing", | ||
455 | ] | ||
456 | |||
457 | [[package]] | ||
458 | name = "hashbrown" | ||
459 | version = "0.12.3" | ||
460 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
461 | checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" | ||
462 | dependencies = [ | ||
463 | "ahash", | ||
464 | ] | ||
465 | |||
466 | [[package]] | ||
467 | name = "heck" | ||
468 | version = "0.4.1" | ||
469 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
470 | checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" | ||
471 | |||
472 | [[package]] | ||
473 | name = "hermit-abi" | ||
474 | version = "0.3.3" | ||
475 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
476 | checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" | ||
477 | |||
478 | [[package]] | ||
479 | name = "http" | ||
480 | version = "0.2.9" | ||
481 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
482 | checksum = "bd6effc99afb63425aff9b05836f029929e345a6148a14b7ecd5ab67af944482" | ||
483 | dependencies = [ | ||
484 | "bytes", | ||
485 | "fnv", | ||
486 | "itoa", | ||
487 | ] | ||
488 | |||
489 | [[package]] | ||
490 | name = "http-body" | ||
491 | version = "0.4.5" | ||
492 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
493 | checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" | ||
494 | dependencies = [ | ||
495 | "bytes", | ||
496 | "http", | ||
497 | "pin-project-lite", | ||
498 | ] | ||
499 | |||
500 | [[package]] | ||
501 | name = "httparse" | ||
502 | version = "1.8.0" | ||
503 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
504 | checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" | ||
505 | |||
506 | [[package]] | ||
507 | name = "httpdate" | ||
508 | version = "1.0.3" | ||
509 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
510 | checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" | ||
511 | |||
512 | [[package]] | ||
513 | name = "hyper" | ||
514 | version = "0.14.27" | ||
515 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
516 | checksum = "ffb1cfd654a8219eaef89881fdb3bb3b1cdc5fa75ded05d6933b2b382e395468" | ||
517 | dependencies = [ | ||
518 | "bytes", | ||
519 | "futures-channel", | ||
520 | "futures-core", | ||
521 | "futures-util", | ||
522 | "h2", | ||
523 | "http", | ||
524 | "http-body", | ||
525 | "httparse", | ||
526 | "httpdate", | ||
527 | "itoa", | ||
528 | "pin-project-lite", | ||
529 | "socket2 0.4.9", | ||
530 | "tokio", | ||
531 | "tower-service", | ||
532 | "tracing", | ||
533 | "want", | ||
534 | ] | ||
535 | |||
536 | [[package]] | ||
537 | name = "hyper-tls" | ||
538 | version = "0.5.0" | ||
539 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
540 | checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" | ||
541 | dependencies = [ | ||
542 | "bytes", | ||
543 | "hyper", | ||
544 | "native-tls", | ||
545 | "tokio", | ||
546 | "tokio-native-tls", | ||
547 | ] | ||
548 | |||
549 | [[package]] | ||
550 | name = "idna" | ||
551 | version = "0.4.0" | ||
552 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
553 | checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" | ||
554 | dependencies = [ | ||
555 | "unicode-bidi", | ||
556 | "unicode-normalization", | ||
557 | ] | ||
558 | |||
559 | [[package]] | ||
560 | name = "indexmap" | ||
561 | version = "1.9.3" | ||
562 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
563 | checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" | ||
564 | dependencies = [ | ||
565 | "autocfg", | ||
566 | "hashbrown", | ||
567 | ] | ||
568 | |||
569 | [[package]] | ||
570 | name = "ipnet" | ||
571 | version = "2.8.0" | ||
572 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
573 | checksum = "28b29a3cd74f0f4598934efe3aeba42bae0eb4680554128851ebbecb02af14e6" | ||
574 | |||
575 | [[package]] | ||
576 | name = "itoa" | ||
577 | version = "1.0.9" | ||
578 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
579 | checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" | ||
580 | |||
581 | [[package]] | ||
582 | name = "js-sys" | ||
583 | version = "0.3.64" | ||
584 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
585 | checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" | ||
586 | dependencies = [ | ||
587 | "wasm-bindgen", | ||
588 | ] | ||
589 | |||
590 | [[package]] | ||
591 | name = "json5" | ||
592 | version = "0.4.1" | ||
593 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
594 | checksum = "96b0db21af676c1ce64250b5f40f3ce2cf27e4e47cb91ed91eb6fe9350b430c1" | ||
595 | dependencies = [ | ||
596 | "pest", | ||
597 | "pest_derive", | ||
598 | "serde", | ||
599 | ] | ||
600 | |||
601 | [[package]] | ||
602 | name = "lazy_static" | ||
603 | version = "1.4.0" | ||
604 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
605 | checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" | ||
606 | |||
607 | [[package]] | ||
608 | name = "libc" | ||
609 | version = "0.2.149" | ||
610 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
611 | checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b" | ||
612 | |||
613 | [[package]] | ||
614 | name = "linked-hash-map" | ||
615 | version = "0.5.6" | ||
616 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
617 | checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" | ||
618 | |||
619 | [[package]] | ||
620 | name = "linux-raw-sys" | ||
621 | version = "0.4.10" | ||
622 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
623 | checksum = "da2479e8c062e40bf0066ffa0bc823de0a9368974af99c9f6df941d2c231e03f" | ||
624 | |||
625 | [[package]] | ||
626 | name = "log" | ||
627 | version = "0.4.20" | ||
628 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
629 | checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" | ||
630 | |||
631 | [[package]] | ||
632 | name = "memchr" | ||
633 | version = "2.6.4" | ||
634 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
635 | checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" | ||
636 | |||
637 | [[package]] | ||
638 | name = "mime" | ||
639 | version = "0.3.17" | ||
640 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
641 | checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" | ||
642 | |||
643 | [[package]] | ||
644 | name = "minimal-lexical" | ||
645 | version = "0.2.1" | ||
646 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
647 | checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" | ||
648 | |||
649 | [[package]] | ||
650 | name = "miniz_oxide" | ||
651 | version = "0.7.1" | ||
652 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
653 | checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" | ||
654 | dependencies = [ | ||
655 | "adler", | ||
656 | ] | ||
657 | |||
658 | [[package]] | ||
659 | name = "mio" | ||
660 | version = "0.8.8" | ||
661 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
662 | checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" | ||
663 | dependencies = [ | ||
664 | "libc", | ||
665 | "wasi", | ||
666 | "windows-sys", | ||
667 | ] | ||
668 | |||
669 | [[package]] | ||
670 | name = "native-tls" | ||
671 | version = "0.2.11" | ||
672 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
673 | checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e" | ||
674 | dependencies = [ | ||
675 | "lazy_static", | ||
676 | "libc", | ||
677 | "log", | ||
678 | "openssl", | ||
679 | "openssl-probe", | ||
680 | "openssl-sys", | ||
681 | "schannel", | ||
682 | "security-framework", | ||
683 | "security-framework-sys", | ||
684 | "tempfile", | ||
685 | ] | ||
686 | |||
687 | [[package]] | ||
688 | name = "nom" | ||
689 | version = "7.1.3" | ||
690 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
691 | checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" | ||
692 | dependencies = [ | ||
693 | "memchr", | ||
694 | "minimal-lexical", | ||
695 | ] | ||
696 | |||
697 | [[package]] | ||
698 | name = "num_cpus" | ||
699 | version = "1.16.0" | ||
700 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
701 | checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" | ||
702 | dependencies = [ | ||
703 | "hermit-abi", | ||
704 | "libc", | ||
705 | ] | ||
706 | |||
707 | [[package]] | ||
708 | name = "object" | ||
709 | version = "0.32.1" | ||
710 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
711 | checksum = "9cf5f9dd3933bd50a9e1f149ec995f39ae2c496d31fd772c1fd45ebc27e902b0" | ||
712 | dependencies = [ | ||
713 | "memchr", | ||
714 | ] | ||
715 | |||
716 | [[package]] | ||
717 | name = "once_cell" | ||
718 | version = "1.18.0" | ||
719 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
720 | checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" | ||
721 | |||
722 | [[package]] | ||
723 | name = "openssl" | ||
724 | version = "0.10.57" | ||
725 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
726 | checksum = "bac25ee399abb46215765b1cb35bc0212377e58a061560d8b29b024fd0430e7c" | ||
727 | dependencies = [ | ||
728 | "bitflags 2.4.1", | ||
729 | "cfg-if", | ||
730 | "foreign-types", | ||
731 | "libc", | ||
732 | "once_cell", | ||
733 | "openssl-macros", | ||
734 | "openssl-sys", | ||
735 | ] | ||
736 | |||
737 | [[package]] | ||
738 | name = "openssl-macros" | ||
739 | version = "0.1.1" | ||
740 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
741 | checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" | ||
742 | dependencies = [ | ||
743 | "proc-macro2", | ||
744 | "quote", | ||
745 | "syn", | ||
746 | ] | ||
747 | |||
748 | [[package]] | ||
749 | name = "openssl-probe" | ||
750 | version = "0.1.5" | ||
751 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
752 | checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" | ||
753 | |||
754 | [[package]] | ||
755 | name = "openssl-sys" | ||
756 | version = "0.9.93" | ||
757 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
758 | checksum = "db4d56a4c0478783083cfafcc42493dd4a981d41669da64b4572a2a089b51b1d" | ||
759 | dependencies = [ | ||
760 | "cc", | ||
761 | "libc", | ||
762 | "pkg-config", | ||
763 | "vcpkg", | ||
764 | ] | ||
765 | |||
766 | [[package]] | ||
767 | name = "option-ext" | ||
768 | version = "0.2.0" | ||
769 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
770 | checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" | ||
771 | |||
772 | [[package]] | ||
773 | name = "ordered-multimap" | ||
774 | version = "0.4.3" | ||
775 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
776 | checksum = "ccd746e37177e1711c20dd619a1620f34f5c8b569c53590a72dedd5344d8924a" | ||
777 | dependencies = [ | ||
778 | "dlv-list", | ||
779 | "hashbrown", | ||
780 | ] | ||
781 | |||
782 | [[package]] | ||
783 | name = "pathdiff" | ||
784 | version = "0.2.1" | ||
785 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
786 | checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" | ||
787 | |||
788 | [[package]] | ||
789 | name = "percent-encoding" | ||
790 | version = "2.3.0" | ||
791 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
792 | checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" | ||
793 | |||
794 | [[package]] | ||
795 | name = "pest" | ||
796 | version = "2.7.4" | ||
797 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
798 | checksum = "c022f1e7b65d6a24c0dbbd5fb344c66881bc01f3e5ae74a1c8100f2f985d98a4" | ||
799 | dependencies = [ | ||
800 | "memchr", | ||
801 | "thiserror", | ||
802 | "ucd-trie", | ||
803 | ] | ||
804 | |||
805 | [[package]] | ||
806 | name = "pest_derive" | ||
807 | version = "2.7.4" | ||
808 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
809 | checksum = "35513f630d46400a977c4cb58f78e1bfbe01434316e60c37d27b9ad6139c66d8" | ||
810 | dependencies = [ | ||
811 | "pest", | ||
812 | "pest_generator", | ||
813 | ] | ||
814 | |||
815 | [[package]] | ||
816 | name = "pest_generator" | ||
817 | version = "2.7.4" | ||
818 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
819 | checksum = "bc9fc1b9e7057baba189b5c626e2d6f40681ae5b6eb064dc7c7834101ec8123a" | ||
820 | dependencies = [ | ||
821 | "pest", | ||
822 | "pest_meta", | ||
823 | "proc-macro2", | ||
824 | "quote", | ||
825 | "syn", | ||
826 | ] | ||
827 | |||
828 | [[package]] | ||
829 | name = "pest_meta" | ||
830 | version = "2.7.4" | ||
831 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
832 | checksum = "1df74e9e7ec4053ceb980e7c0c8bd3594e977fde1af91daba9c928e8e8c6708d" | ||
833 | dependencies = [ | ||
834 | "once_cell", | ||
835 | "pest", | ||
836 | "sha2", | ||
837 | ] | ||
838 | |||
839 | [[package]] | ||
840 | name = "pin-project-lite" | ||
841 | version = "0.2.13" | ||
842 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
843 | checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" | ||
844 | |||
845 | [[package]] | ||
846 | name = "pin-utils" | ||
847 | version = "0.1.0" | ||
848 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
849 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" | ||
850 | |||
851 | [[package]] | ||
852 | name = "pkg-config" | ||
853 | version = "0.3.27" | ||
854 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
855 | checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" | ||
856 | |||
857 | [[package]] | ||
858 | name = "proc-macro2" | ||
859 | version = "1.0.69" | ||
860 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
861 | checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da" | ||
862 | dependencies = [ | ||
863 | "unicode-ident", | ||
864 | ] | ||
865 | |||
866 | [[package]] | ||
867 | name = "quote" | ||
868 | version = "1.0.33" | ||
869 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
870 | checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" | ||
871 | dependencies = [ | ||
872 | "proc-macro2", | ||
873 | ] | ||
874 | |||
875 | [[package]] | ||
876 | name = "redox_syscall" | ||
877 | version = "0.2.16" | ||
878 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
879 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" | ||
880 | dependencies = [ | ||
881 | "bitflags 1.3.2", | ||
882 | ] | ||
883 | |||
884 | [[package]] | ||
885 | name = "redox_syscall" | ||
886 | version = "0.3.5" | ||
887 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
888 | checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" | ||
889 | dependencies = [ | ||
890 | "bitflags 1.3.2", | ||
891 | ] | ||
892 | |||
893 | [[package]] | ||
894 | name = "redox_users" | ||
895 | version = "0.4.3" | ||
896 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
897 | checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" | ||
898 | dependencies = [ | ||
899 | "getrandom", | ||
900 | "redox_syscall 0.2.16", | ||
901 | "thiserror", | ||
902 | ] | ||
903 | |||
904 | [[package]] | ||
905 | name = "reqwest" | ||
906 | version = "0.11.22" | ||
907 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
908 | checksum = "046cd98826c46c2ac8ddecae268eb5c2e58628688a5fc7a2643704a73faba95b" | ||
909 | dependencies = [ | ||
910 | "base64 0.21.4", | ||
911 | "bytes", | ||
912 | "encoding_rs", | ||
913 | "futures-core", | ||
914 | "futures-util", | ||
915 | "h2", | ||
916 | "http", | ||
917 | "http-body", | ||
918 | "hyper", | ||
919 | "hyper-tls", | ||
920 | "ipnet", | ||
921 | "js-sys", | ||
922 | "log", | ||
923 | "mime", | ||
924 | "native-tls", | ||
925 | "once_cell", | ||
926 | "percent-encoding", | ||
927 | "pin-project-lite", | ||
928 | "serde", | ||
929 | "serde_json", | ||
930 | "serde_urlencoded", | ||
931 | "system-configuration", | ||
932 | "tokio", | ||
933 | "tokio-native-tls", | ||
934 | "tower-service", | ||
935 | "url", | ||
936 | "wasm-bindgen", | ||
937 | "wasm-bindgen-futures", | ||
938 | "web-sys", | ||
939 | "winreg", | ||
940 | ] | ||
941 | |||
942 | [[package]] | ||
943 | name = "ron" | ||
944 | version = "0.7.1" | ||
945 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
946 | checksum = "88073939a61e5b7680558e6be56b419e208420c2adb92be54921fa6b72283f1a" | ||
947 | dependencies = [ | ||
948 | "base64 0.13.1", | ||
949 | "bitflags 1.3.2", | ||
950 | "serde", | ||
951 | ] | ||
952 | |||
953 | [[package]] | ||
954 | name = "rust-ini" | ||
955 | version = "0.18.0" | ||
956 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
957 | checksum = "f6d5f2436026b4f6e79dc829837d467cc7e9a55ee40e750d716713540715a2df" | ||
958 | dependencies = [ | ||
959 | "cfg-if", | ||
960 | "ordered-multimap", | ||
961 | ] | ||
962 | |||
963 | [[package]] | ||
964 | name = "rustc-demangle" | ||
965 | version = "0.1.23" | ||
966 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
967 | checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" | ||
968 | |||
969 | [[package]] | ||
970 | name = "rustix" | ||
971 | version = "0.38.19" | ||
972 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
973 | checksum = "745ecfa778e66b2b63c88a61cb36e0eea109e803b0b86bf9879fbc77c70e86ed" | ||
974 | dependencies = [ | ||
975 | "bitflags 2.4.1", | ||
976 | "errno", | ||
977 | "libc", | ||
978 | "linux-raw-sys", | ||
979 | "windows-sys", | ||
980 | ] | ||
981 | |||
982 | [[package]] | ||
983 | name = "ryu" | ||
984 | version = "1.0.15" | ||
985 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
986 | checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" | ||
987 | |||
988 | [[package]] | ||
989 | name = "schannel" | ||
990 | version = "0.1.22" | ||
991 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
992 | checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" | ||
993 | dependencies = [ | ||
994 | "windows-sys", | ||
995 | ] | ||
996 | |||
997 | [[package]] | ||
998 | name = "security-framework" | ||
999 | version = "2.9.2" | ||
1000 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1001 | checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" | ||
1002 | dependencies = [ | ||
1003 | "bitflags 1.3.2", | ||
1004 | "core-foundation", | ||
1005 | "core-foundation-sys", | ||
1006 | "libc", | ||
1007 | "security-framework-sys", | ||
1008 | ] | ||
1009 | |||
1010 | [[package]] | ||
1011 | name = "security-framework-sys" | ||
1012 | version = "2.9.1" | ||
1013 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1014 | checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" | ||
1015 | dependencies = [ | ||
1016 | "core-foundation-sys", | ||
1017 | "libc", | ||
1018 | ] | ||
1019 | |||
1020 | [[package]] | ||
1021 | name = "serde" | ||
1022 | version = "1.0.189" | ||
1023 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1024 | checksum = "8e422a44e74ad4001bdc8eede9a4570ab52f71190e9c076d14369f38b9200537" | ||
1025 | dependencies = [ | ||
1026 | "serde_derive", | ||
1027 | ] | ||
1028 | |||
1029 | [[package]] | ||
1030 | name = "serde_derive" | ||
1031 | version = "1.0.189" | ||
1032 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1033 | checksum = "1e48d1f918009ce3145511378cf68d613e3b3d9137d67272562080d68a2b32d5" | ||
1034 | dependencies = [ | ||
1035 | "proc-macro2", | ||
1036 | "quote", | ||
1037 | "syn", | ||
1038 | ] | ||
1039 | |||
1040 | [[package]] | ||
1041 | name = "serde_json" | ||
1042 | version = "1.0.107" | ||
1043 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1044 | checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" | ||
1045 | dependencies = [ | ||
1046 | "itoa", | ||
1047 | "ryu", | ||
1048 | "serde", | ||
1049 | ] | ||
1050 | |||
1051 | [[package]] | ||
1052 | name = "serde_urlencoded" | ||
1053 | version = "0.7.1" | ||
1054 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1055 | checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" | ||
1056 | dependencies = [ | ||
1057 | "form_urlencoded", | ||
1058 | "itoa", | ||
1059 | "ryu", | ||
1060 | "serde", | ||
1061 | ] | ||
1062 | |||
1063 | [[package]] | ||
1064 | name = "sha2" | ||
1065 | version = "0.10.8" | ||
1066 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1067 | checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" | ||
1068 | dependencies = [ | ||
1069 | "cfg-if", | ||
1070 | "cpufeatures", | ||
1071 | "digest", | ||
1072 | ] | ||
1073 | |||
1074 | [[package]] | ||
1075 | name = "slab" | ||
1076 | version = "0.4.9" | ||
1077 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1078 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" | ||
1079 | dependencies = [ | ||
1080 | "autocfg", | ||
1081 | ] | ||
1082 | |||
1083 | [[package]] | ||
1084 | name = "socket2" | ||
1085 | version = "0.4.9" | ||
1086 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1087 | checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" | ||
1088 | dependencies = [ | ||
1089 | "libc", | ||
1090 | "winapi", | ||
1091 | ] | ||
1092 | |||
1093 | [[package]] | ||
1094 | name = "socket2" | ||
1095 | version = "0.5.4" | ||
1096 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1097 | checksum = "4031e820eb552adee9295814c0ced9e5cf38ddf1e8b7d566d6de8e2538ea989e" | ||
1098 | dependencies = [ | ||
1099 | "libc", | ||
1100 | "windows-sys", | ||
1101 | ] | ||
1102 | |||
1103 | [[package]] | ||
1104 | name = "strsim" | ||
1105 | version = "0.10.0" | ||
1106 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1107 | checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" | ||
1108 | |||
1109 | [[package]] | ||
1110 | name = "syn" | ||
1111 | version = "2.0.38" | ||
1112 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1113 | checksum = "e96b79aaa137db8f61e26363a0c9b47d8b4ec75da28b7d1d614c2303e232408b" | ||
1114 | dependencies = [ | ||
1115 | "proc-macro2", | ||
1116 | "quote", | ||
1117 | "unicode-ident", | ||
1118 | ] | ||
1119 | |||
1120 | [[package]] | ||
1121 | name = "system-configuration" | ||
1122 | version = "0.5.1" | ||
1123 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1124 | checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" | ||
1125 | dependencies = [ | ||
1126 | "bitflags 1.3.2", | ||
1127 | "core-foundation", | ||
1128 | "system-configuration-sys", | ||
1129 | ] | ||
1130 | |||
1131 | [[package]] | ||
1132 | name = "system-configuration-sys" | ||
1133 | version = "0.5.0" | ||
1134 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1135 | checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" | ||
1136 | dependencies = [ | ||
1137 | "core-foundation-sys", | ||
1138 | "libc", | ||
1139 | ] | ||
1140 | |||
1141 | [[package]] | ||
1142 | name = "tempfile" | ||
1143 | version = "3.8.0" | ||
1144 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1145 | checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef" | ||
1146 | dependencies = [ | ||
1147 | "cfg-if", | ||
1148 | "fastrand", | ||
1149 | "redox_syscall 0.3.5", | ||
1150 | "rustix", | ||
1151 | "windows-sys", | ||
1152 | ] | ||
1153 | |||
1154 | [[package]] | ||
1155 | name = "thiserror" | ||
1156 | version = "1.0.49" | ||
1157 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1158 | checksum = "1177e8c6d7ede7afde3585fd2513e611227efd6481bd78d2e82ba1ce16557ed4" | ||
1159 | dependencies = [ | ||
1160 | "thiserror-impl", | ||
1161 | ] | ||
1162 | |||
1163 | [[package]] | ||
1164 | name = "thiserror-impl" | ||
1165 | version = "1.0.49" | ||
1166 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1167 | checksum = "10712f02019e9288794769fba95cd6847df9874d49d871d062172f9dd41bc4cc" | ||
1168 | dependencies = [ | ||
1169 | "proc-macro2", | ||
1170 | "quote", | ||
1171 | "syn", | ||
1172 | ] | ||
1173 | |||
1174 | [[package]] | ||
1175 | name = "tinyvec" | ||
1176 | version = "1.6.0" | ||
1177 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1178 | checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" | ||
1179 | dependencies = [ | ||
1180 | "tinyvec_macros", | ||
1181 | ] | ||
1182 | |||
1183 | [[package]] | ||
1184 | name = "tinyvec_macros" | ||
1185 | version = "0.1.1" | ||
1186 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1187 | checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" | ||
1188 | |||
1189 | [[package]] | ||
1190 | name = "tokio" | ||
1191 | version = "1.33.0" | ||
1192 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1193 | checksum = "4f38200e3ef7995e5ef13baec2f432a6da0aa9ac495b2c0e8f3b7eec2c92d653" | ||
1194 | dependencies = [ | ||
1195 | "backtrace", | ||
1196 | "bytes", | ||
1197 | "libc", | ||
1198 | "mio", | ||
1199 | "num_cpus", | ||
1200 | "pin-project-lite", | ||
1201 | "socket2 0.5.4", | ||
1202 | "windows-sys", | ||
1203 | ] | ||
1204 | |||
1205 | [[package]] | ||
1206 | name = "tokio-native-tls" | ||
1207 | version = "0.3.1" | ||
1208 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1209 | checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" | ||
1210 | dependencies = [ | ||
1211 | "native-tls", | ||
1212 | "tokio", | ||
1213 | ] | ||
1214 | |||
1215 | [[package]] | ||
1216 | name = "tokio-util" | ||
1217 | version = "0.7.9" | ||
1218 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1219 | checksum = "1d68074620f57a0b21594d9735eb2e98ab38b17f80d3fcb189fca266771ca60d" | ||
1220 | dependencies = [ | ||
1221 | "bytes", | ||
1222 | "futures-core", | ||
1223 | "futures-sink", | ||
1224 | "pin-project-lite", | ||
1225 | "tokio", | ||
1226 | "tracing", | ||
1227 | ] | ||
1228 | |||
1229 | [[package]] | ||
1230 | name = "toml" | ||
1231 | version = "0.5.11" | ||
1232 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1233 | checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" | ||
1234 | dependencies = [ | ||
1235 | "serde", | ||
1236 | ] | ||
1237 | |||
1238 | [[package]] | ||
1239 | name = "tower-service" | ||
1240 | version = "0.3.2" | ||
1241 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1242 | checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" | ||
1243 | |||
1244 | [[package]] | ||
1245 | name = "tracing" | ||
1246 | version = "0.1.39" | ||
1247 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1248 | checksum = "ee2ef2af84856a50c1d430afce2fdded0a4ec7eda868db86409b4543df0797f9" | ||
1249 | dependencies = [ | ||
1250 | "pin-project-lite", | ||
1251 | "tracing-core", | ||
1252 | ] | ||
1253 | |||
1254 | [[package]] | ||
1255 | name = "tracing-core" | ||
1256 | version = "0.1.32" | ||
1257 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1258 | checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" | ||
1259 | dependencies = [ | ||
1260 | "once_cell", | ||
1261 | ] | ||
1262 | |||
1263 | [[package]] | ||
1264 | name = "try-lock" | ||
1265 | version = "0.2.4" | ||
1266 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1267 | checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" | ||
1268 | |||
1269 | [[package]] | ||
1270 | name = "typenum" | ||
1271 | version = "1.17.0" | ||
1272 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1273 | checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" | ||
1274 | |||
1275 | [[package]] | ||
1276 | name = "ucd-trie" | ||
1277 | version = "0.1.6" | ||
1278 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1279 | checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" | ||
1280 | |||
1281 | [[package]] | ||
1282 | name = "unicode-bidi" | ||
1283 | version = "0.3.13" | ||
1284 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1285 | checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" | ||
1286 | |||
1287 | [[package]] | ||
1288 | name = "unicode-ident" | ||
1289 | version = "1.0.12" | ||
1290 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1291 | checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" | ||
1292 | |||
1293 | [[package]] | ||
1294 | name = "unicode-normalization" | ||
1295 | version = "0.1.22" | ||
1296 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1297 | checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" | ||
1298 | dependencies = [ | ||
1299 | "tinyvec", | ||
1300 | ] | ||
1301 | |||
1302 | [[package]] | ||
1303 | name = "url" | ||
1304 | version = "2.4.1" | ||
1305 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1306 | checksum = "143b538f18257fac9cad154828a57c6bf5157e1aa604d4816b5995bf6de87ae5" | ||
1307 | dependencies = [ | ||
1308 | "form_urlencoded", | ||
1309 | "idna", | ||
1310 | "percent-encoding", | ||
1311 | ] | ||
1312 | |||
1313 | [[package]] | ||
1314 | name = "utf8parse" | ||
1315 | version = "0.2.1" | ||
1316 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1317 | checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" | ||
1318 | |||
1319 | [[package]] | ||
1320 | name = "vcpkg" | ||
1321 | version = "0.2.15" | ||
1322 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1323 | checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" | ||
1324 | |||
1325 | [[package]] | ||
1326 | name = "version_check" | ||
1327 | version = "0.9.4" | ||
1328 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1329 | checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" | ||
1330 | |||
1331 | [[package]] | ||
1332 | name = "want" | ||
1333 | version = "0.3.1" | ||
1334 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1335 | checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" | ||
1336 | dependencies = [ | ||
1337 | "try-lock", | ||
1338 | ] | ||
1339 | |||
1340 | [[package]] | ||
1341 | name = "wasi" | ||
1342 | version = "0.11.0+wasi-snapshot-preview1" | ||
1343 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1344 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" | ||
1345 | |||
1346 | [[package]] | ||
1347 | name = "wasm-bindgen" | ||
1348 | version = "0.2.87" | ||
1349 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1350 | checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" | ||
1351 | dependencies = [ | ||
1352 | "cfg-if", | ||
1353 | "wasm-bindgen-macro", | ||
1354 | ] | ||
1355 | |||
1356 | [[package]] | ||
1357 | name = "wasm-bindgen-backend" | ||
1358 | version = "0.2.87" | ||
1359 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1360 | checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" | ||
1361 | dependencies = [ | ||
1362 | "bumpalo", | ||
1363 | "log", | ||
1364 | "once_cell", | ||
1365 | "proc-macro2", | ||
1366 | "quote", | ||
1367 | "syn", | ||
1368 | "wasm-bindgen-shared", | ||
1369 | ] | ||
1370 | |||
1371 | [[package]] | ||
1372 | name = "wasm-bindgen-futures" | ||
1373 | version = "0.4.37" | ||
1374 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1375 | checksum = "c02dbc21516f9f1f04f187958890d7e6026df8d16540b7ad9492bc34a67cea03" | ||
1376 | dependencies = [ | ||
1377 | "cfg-if", | ||
1378 | "js-sys", | ||
1379 | "wasm-bindgen", | ||
1380 | "web-sys", | ||
1381 | ] | ||
1382 | |||
1383 | [[package]] | ||
1384 | name = "wasm-bindgen-macro" | ||
1385 | version = "0.2.87" | ||
1386 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1387 | checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" | ||
1388 | dependencies = [ | ||
1389 | "quote", | ||
1390 | "wasm-bindgen-macro-support", | ||
1391 | ] | ||
1392 | |||
1393 | [[package]] | ||
1394 | name = "wasm-bindgen-macro-support" | ||
1395 | version = "0.2.87" | ||
1396 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1397 | checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" | ||
1398 | dependencies = [ | ||
1399 | "proc-macro2", | ||
1400 | "quote", | ||
1401 | "syn", | ||
1402 | "wasm-bindgen-backend", | ||
1403 | "wasm-bindgen-shared", | ||
1404 | ] | ||
1405 | |||
1406 | [[package]] | ||
1407 | name = "wasm-bindgen-shared" | ||
1408 | version = "0.2.87" | ||
1409 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1410 | checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" | ||
1411 | |||
1412 | [[package]] | ||
1413 | name = "web-sys" | ||
1414 | version = "0.3.64" | ||
1415 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1416 | checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" | ||
1417 | dependencies = [ | ||
1418 | "js-sys", | ||
1419 | "wasm-bindgen", | ||
1420 | ] | ||
1421 | |||
1422 | [[package]] | ||
1423 | name = "webol-cli" | ||
1424 | version = "0.1.0" | ||
1425 | dependencies = [ | ||
1426 | "clap", | ||
1427 | "config", | ||
1428 | "dirs", | ||
1429 | "once_cell", | ||
1430 | "reqwest", | ||
1431 | "serde", | ||
1432 | "serde_json", | ||
1433 | ] | ||
1434 | |||
1435 | [[package]] | ||
1436 | name = "winapi" | ||
1437 | version = "0.3.9" | ||
1438 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1439 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" | ||
1440 | dependencies = [ | ||
1441 | "winapi-i686-pc-windows-gnu", | ||
1442 | "winapi-x86_64-pc-windows-gnu", | ||
1443 | ] | ||
1444 | |||
1445 | [[package]] | ||
1446 | name = "winapi-i686-pc-windows-gnu" | ||
1447 | version = "0.4.0" | ||
1448 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1449 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" | ||
1450 | |||
1451 | [[package]] | ||
1452 | name = "winapi-x86_64-pc-windows-gnu" | ||
1453 | version = "0.4.0" | ||
1454 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1455 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" | ||
1456 | |||
1457 | [[package]] | ||
1458 | name = "windows-sys" | ||
1459 | version = "0.48.0" | ||
1460 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1461 | checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" | ||
1462 | dependencies = [ | ||
1463 | "windows-targets", | ||
1464 | ] | ||
1465 | |||
1466 | [[package]] | ||
1467 | name = "windows-targets" | ||
1468 | version = "0.48.5" | ||
1469 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1470 | checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" | ||
1471 | dependencies = [ | ||
1472 | "windows_aarch64_gnullvm", | ||
1473 | "windows_aarch64_msvc", | ||
1474 | "windows_i686_gnu", | ||
1475 | "windows_i686_msvc", | ||
1476 | "windows_x86_64_gnu", | ||
1477 | "windows_x86_64_gnullvm", | ||
1478 | "windows_x86_64_msvc", | ||
1479 | ] | ||
1480 | |||
1481 | [[package]] | ||
1482 | name = "windows_aarch64_gnullvm" | ||
1483 | version = "0.48.5" | ||
1484 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1485 | checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" | ||
1486 | |||
1487 | [[package]] | ||
1488 | name = "windows_aarch64_msvc" | ||
1489 | version = "0.48.5" | ||
1490 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1491 | checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" | ||
1492 | |||
1493 | [[package]] | ||
1494 | name = "windows_i686_gnu" | ||
1495 | version = "0.48.5" | ||
1496 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1497 | checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" | ||
1498 | |||
1499 | [[package]] | ||
1500 | name = "windows_i686_msvc" | ||
1501 | version = "0.48.5" | ||
1502 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1503 | checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" | ||
1504 | |||
1505 | [[package]] | ||
1506 | name = "windows_x86_64_gnu" | ||
1507 | version = "0.48.5" | ||
1508 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1509 | checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" | ||
1510 | |||
1511 | [[package]] | ||
1512 | name = "windows_x86_64_gnullvm" | ||
1513 | version = "0.48.5" | ||
1514 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1515 | checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" | ||
1516 | |||
1517 | [[package]] | ||
1518 | name = "windows_x86_64_msvc" | ||
1519 | version = "0.48.5" | ||
1520 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1521 | checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" | ||
1522 | |||
1523 | [[package]] | ||
1524 | name = "winreg" | ||
1525 | version = "0.50.0" | ||
1526 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1527 | checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" | ||
1528 | dependencies = [ | ||
1529 | "cfg-if", | ||
1530 | "windows-sys", | ||
1531 | ] | ||
1532 | |||
1533 | [[package]] | ||
1534 | name = "yaml-rust" | ||
1535 | version = "0.4.5" | ||
1536 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1537 | checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85" | ||
1538 | dependencies = [ | ||
1539 | "linked-hash-map", | ||
1540 | ] | ||
diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..2807827 --- /dev/null +++ b/Cargo.toml | |||
@@ -0,0 +1,15 @@ | |||
1 | [package] | ||
2 | name = "webol-cli" | ||
3 | version = "0.1.0" | ||
4 | edition = "2021" | ||
5 | |||
6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
7 | |||
8 | [dependencies] | ||
9 | clap = { version = "4.4.6", features = ["derive"] } | ||
10 | config = "0.13.3" | ||
11 | dirs = "5.0.1" | ||
12 | once_cell = "1.18.0" | ||
13 | reqwest = { version = "0.11.22", features = ["blocking"] } | ||
14 | serde = "1.0.189" | ||
15 | serde_json = "1.0.107" | ||
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0a52d16 --- /dev/null +++ b/docker-compose.yml | |||
@@ -0,0 +1,25 @@ | |||
1 | services: | ||
2 | webol: | ||
3 | image: ghcr.io/fxqnlr/webol:dev-2 | ||
4 | container_name: webol | ||
5 | restart: no | ||
6 | depends_on: | ||
7 | - db | ||
8 | environment: | ||
9 | - RUST_LOG=info,webol=trace | ||
10 | - WEBOL_DATABASE_URL=postgres://postgres:postgres@localhost:5432/webol | ||
11 | - WEBOL_APIKEY=aaa | ||
12 | - WEBOL_SERVERADDR=127.0.0.1:7229 | ||
13 | network_mode: host | ||
14 | |||
15 | db: | ||
16 | image: postgres | ||
17 | container_name: webol-db | ||
18 | restart: no | ||
19 | environment: | ||
20 | POSTGRES_PASSWORD: postgres | ||
21 | POSTGRES_DB: webol | ||
22 | volumes: | ||
23 | - ./postgres-data:/var/lib/postgresql/data | ||
24 | ports: | ||
25 | - "5432:5432" | ||
diff --git a/src/config.rs b/src/config.rs new file mode 100644 index 0000000..9a9e44b --- /dev/null +++ b/src/config.rs | |||
@@ -0,0 +1,19 @@ | |||
1 | use config::Config; | ||
2 | use once_cell::sync::Lazy; | ||
3 | |||
4 | pub static SETTINGS: Lazy<Config> = Lazy::new(setup); | ||
5 | |||
6 | fn setup() -> Config { | ||
7 | #[cfg(not(debug_assertions))] | ||
8 | let builder = Config::builder().add_source(config::File::with_name( | ||
9 | format!("{}/webol-cli.toml", dirs::config_dir().unwrap().to_string_lossy()).as_str(), | ||
10 | )); | ||
11 | |||
12 | #[cfg(debug_assertions)] | ||
13 | let builder = Config::builder().add_source(config::File::with_name("webol-cli.toml")); | ||
14 | |||
15 | builder | ||
16 | .add_source(config::Environment::with_prefix("WEBOL_CLI_").separator("_")) | ||
17 | .build() | ||
18 | .unwrap() | ||
19 | } | ||
diff --git a/src/error.rs b/src/error.rs new file mode 100644 index 0000000..9aa8c08 --- /dev/null +++ b/src/error.rs | |||
@@ -0,0 +1,19 @@ | |||
1 | use std::fmt::Debug; | ||
2 | |||
3 | pub enum CliError { | ||
4 | Reqwest(reqwest::Error), | ||
5 | Config(config::ConfigError), | ||
6 | Serde(serde_json::Error), | ||
7 | // Cli(Box<dyn std::error::Error>), | ||
8 | } | ||
9 | |||
10 | impl Debug for CliError { | ||
11 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||
12 | match self { | ||
13 | Self::Reqwest(err) => { err.fmt(f) }, | ||
14 | Self::Config(err) => { err.fmt(f) }, | ||
15 | Self::Serde(err) => { err.fmt(f) }, | ||
16 | // Self::Cli(err) => {err.fmt(f)}, | ||
17 | } | ||
18 | } | ||
19 | } | ||
diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..d2f0c3a --- /dev/null +++ b/src/main.rs | |||
@@ -0,0 +1,60 @@ | |||
1 | use clap::{Parser, Subcommand}; | ||
2 | use config::SETTINGS; | ||
3 | use error::CliError; | ||
4 | use requests::{start::start, get::get}; | ||
5 | use reqwest::header::{HeaderMap, HeaderValue}; | ||
6 | |||
7 | mod config; | ||
8 | mod error; | ||
9 | mod requests; | ||
10 | |||
11 | /// webol http client | ||
12 | #[derive(Parser)] | ||
13 | #[command(author, version, about, long_about = None)] | ||
14 | struct Args { | ||
15 | #[command(subcommand)] | ||
16 | commands: Commands, | ||
17 | } | ||
18 | |||
19 | #[derive(Subcommand)] | ||
20 | enum Commands { | ||
21 | Start { | ||
22 | /// id of the device | ||
23 | id: String | ||
24 | }, | ||
25 | Get { | ||
26 | id: String | ||
27 | } | ||
28 | } | ||
29 | |||
30 | fn main() -> Result<(), CliError> { | ||
31 | let cli = Args::parse(); | ||
32 | |||
33 | match cli.commands { | ||
34 | Commands::Start { id } => { | ||
35 | start(id)?; | ||
36 | }, | ||
37 | Commands::Get { id } => { | ||
38 | get(id)?; | ||
39 | } | ||
40 | } | ||
41 | |||
42 | Ok(()) | ||
43 | } | ||
44 | |||
45 | fn default_headers() -> Result<HeaderMap, CliError> { | ||
46 | let mut map = HeaderMap::new(); | ||
47 | map.append("Accept-Content", HeaderValue::from_str("application/json").unwrap()); | ||
48 | map.append("Content-Type", HeaderValue::from_str("application/json").unwrap()); | ||
49 | map.append( | ||
50 | "Authorization", | ||
51 | HeaderValue::from_str( | ||
52 | SETTINGS.get_string("key") | ||
53 | .map_err(CliError::Config)? | ||
54 | .as_str() | ||
55 | ).unwrap() | ||
56 | ); | ||
57 | |||
58 | Ok(map) | ||
59 | |||
60 | } | ||
diff --git a/src/requests/get.rs b/src/requests/get.rs new file mode 100644 index 0000000..225562d --- /dev/null +++ b/src/requests/get.rs | |||
@@ -0,0 +1,21 @@ | |||
1 | use crate::{error::CliError, config::SETTINGS, default_headers}; | ||
2 | |||
3 | pub fn get(id: String) -> Result<(), CliError> { | ||
4 | let res = reqwest::blocking::Client::new() | ||
5 | .get( | ||
6 | format!( | ||
7 | "{}/start", | ||
8 | SETTINGS.get_string("server").map_err(CliError::Config)? | ||
9 | ) | ||
10 | ) | ||
11 | .headers(default_headers()?) | ||
12 | .body( | ||
13 | format!(r#"{{"id": "{}"}}"#, id) | ||
14 | ) | ||
15 | .send() | ||
16 | .map_err(CliError::Reqwest)? | ||
17 | .text(); | ||
18 | |||
19 | println!("{:?}", res); | ||
20 | Ok(()) | ||
21 | } | ||
diff --git a/src/requests/mod.rs b/src/requests/mod.rs new file mode 100644 index 0000000..ddf0ea9 --- /dev/null +++ b/src/requests/mod.rs | |||
@@ -0,0 +1,2 @@ | |||
1 | pub mod start; | ||
2 | pub mod get; | ||
diff --git a/src/requests/start.rs b/src/requests/start.rs new file mode 100644 index 0000000..1a8cb6c --- /dev/null +++ b/src/requests/start.rs | |||
@@ -0,0 +1,34 @@ | |||
1 | use serde::Deserialize; | ||
2 | |||
3 | use crate::{config::SETTINGS, error::CliError, default_headers}; | ||
4 | |||
5 | pub fn start(id: String) -> Result<(), CliError> { | ||
6 | let res = reqwest::blocking::Client::new() | ||
7 | .post( | ||
8 | format!( | ||
9 | "{}/start", | ||
10 | SETTINGS.get_string("server").map_err(CliError::Config)? | ||
11 | ) | ||
12 | ) | ||
13 | .headers(default_headers()?) | ||
14 | .body( | ||
15 | format!(r#"{{"id": "{}"}}"#, id) | ||
16 | ) | ||
17 | .send() | ||
18 | .map_err(CliError::Reqwest)? | ||
19 | .text(); | ||
20 | |||
21 | let res = serde_json::from_str::<StartResponse>(&res.map_err(CliError::Reqwest)?).map_err(CliError::Serde)?; | ||
22 | |||
23 | if res.boot { | ||
24 | println!("successfully started {}", res.id); | ||
25 | } | ||
26 | |||
27 | Ok(()) | ||
28 | } | ||
29 | |||
30 | #[derive(Debug, Deserialize)] | ||
31 | struct StartResponse { | ||
32 | boot: bool, | ||
33 | id: String, | ||
34 | } | ||
diff --git a/webol-cli.toml b/webol-cli.toml new file mode 100644 index 0000000..3eabc97 --- /dev/null +++ b/webol-cli.toml | |||
@@ -0,0 +1,2 @@ | |||
1 | server = "http://localhost:7229" | ||
2 | key = "aaa" | ||