Commit bb22983de1

bb22983de16cf0c0bb9a5cad615d39112c687297

parent: a7e790037a

Unsigned

Siriusmart <71584876+Siriusmart@users.noreply.github.com> · 2023-04-29 17:06 UTC

better config loading (issue 29)

Layout: unified · split

Cargo.lock +317 −203
@@ -64,15 +64,15 @@ checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
64 64
65[[package]] 65[[package]]
66name = "bumpalo" 66name = "bumpalo"
67version = "3.12.0" 67version = "3.12.1"
68source = "registry+https://github.com/rust-lang/crates.io-index" 68source = "registry+https://github.com/rust-lang/crates.io-index"
69checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" 69checksum = "9b1ce199063694f33ffb7dd4e0ee620741495c32833cde5aa08f02a0bf96f0c8"
70 70
71[[package]] 71[[package]]
72name = "bytemuck" 72name = "bytemuck"
73version = "1.13.0" 73version = "1.13.1"
74source = "registry+https://github.com/rust-lang/crates.io-index" 74source = "registry+https://github.com/rust-lang/crates.io-index"
75checksum = "c041d3eab048880cb0b86b256447da3f18859a163c3b8d8893f4e6368abe6393" 75checksum = "17febce684fd15d89027105661fec94afb475cb995fbc59d2865198446ba2eea"
76 76
77[[package]] 77[[package]]
78name = "byteorder" 78name = "byteorder"
@@ -106,9 +106,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
106 106
107[[package]] 107[[package]]
108name = "chrono" 108name = "chrono"
109version = "0.4.23" 109version = "0.4.24"
110source = "registry+https://github.com/rust-lang/crates.io-index" 110source = "registry+https://github.com/rust-lang/crates.io-index"
111checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f" 111checksum = "4e3c5919066adf22df73762e50cffcde3a758f2a848b113b586d1f86728b673b"
112dependencies = [ 112dependencies = [
113 "iana-time-zone", 113 "iana-time-zone",
114 "num-integer", 114 "num-integer",
@@ -178,9 +178,9 @@ dependencies = [
178 178
179[[package]] 179[[package]]
180name = "core-foundation-sys" 180name = "core-foundation-sys"
181version = "0.8.3" 181version = "0.8.4"
182source = "registry+https://github.com/rust-lang/crates.io-index" 182source = "registry+https://github.com/rust-lang/crates.io-index"
183checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" 183checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
184 184
185[[package]] 185[[package]]
186name = "crc32fast" 186name = "crc32fast"
@@ -193,9 +193,9 @@ dependencies = [
193 193
194[[package]] 194[[package]]
195name = "crossbeam-channel" 195name = "crossbeam-channel"
196version = "0.5.6" 196version = "0.5.8"
197source = "registry+https://github.com/rust-lang/crates.io-index" 197source = "registry+https://github.com/rust-lang/crates.io-index"
198checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" 198checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200"
199dependencies = [ 199dependencies = [
200 "cfg-if", 200 "cfg-if",
201 "crossbeam-utils", 201 "crossbeam-utils",
@@ -203,9 +203,9 @@ dependencies = [
203 203
204[[package]] 204[[package]]
205name = "crossbeam-deque" 205name = "crossbeam-deque"
206version = "0.8.2" 206version = "0.8.3"
207source = "registry+https://github.com/rust-lang/crates.io-index" 207source = "registry+https://github.com/rust-lang/crates.io-index"
208checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc" 208checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef"
209dependencies = [ 209dependencies = [
210 "cfg-if", 210 "cfg-if",
211 "crossbeam-epoch", 211 "crossbeam-epoch",
@@ -214,9 +214,9 @@ dependencies = [
214 214
215[[package]] 215[[package]]
216name = "crossbeam-epoch" 216name = "crossbeam-epoch"
217version = "0.9.13" 217version = "0.9.14"
218source = "registry+https://github.com/rust-lang/crates.io-index" 218source = "registry+https://github.com/rust-lang/crates.io-index"
219checksum = "01a9af1f4c2ef74bb8aa1f7e19706bc72d03598c8a570bb5de72243c7a9d9d5a" 219checksum = "46bd5f3f85273295a9d14aedfb86f6aadbff6d8f5295c4a9edb08e819dcf5695"
220dependencies = [ 220dependencies = [
221 "autocfg", 221 "autocfg",
222 "cfg-if", 222 "cfg-if",
@@ -227,9 +227,9 @@ dependencies = [
227 227
228[[package]] 228[[package]]
229name = "crossbeam-utils" 229name = "crossbeam-utils"
230version = "0.8.14" 230version = "0.8.15"
231source = "registry+https://github.com/rust-lang/crates.io-index" 231source = "registry+https://github.com/rust-lang/crates.io-index"
232checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f" 232checksum = "3c063cd8cc95f5c377ed0d4b49a4b21f632396ff690e8470c29b3359b346984b"
233dependencies = [ 233dependencies = [
234 "cfg-if", 234 "cfg-if",
235] 235]
@@ -252,9 +252,9 @@ dependencies = [
252 252
253[[package]] 253[[package]]
254name = "crossterm" 254name = "crossterm"
255version = "0.26.0" 255version = "0.26.1"
256source = "registry+https://github.com/rust-lang/crates.io-index" 256source = "registry+https://github.com/rust-lang/crates.io-index"
257checksum = "77f67c7faacd4db07a939f55d66a983a5355358a1f17d32cc9a8d01d1266b9ce" 257checksum = "a84cda67535339806297f1b331d6dd6320470d2a0fe65381e79ee9e156dd3d13"
258dependencies = [ 258dependencies = [
259 "bitflags", 259 "bitflags",
260 "crossterm_winapi", 260 "crossterm_winapi",
@@ -284,9 +284,9 @@ checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
284 284
285[[package]] 285[[package]]
286name = "cxx" 286name = "cxx"
287version = "1.0.91" 287version = "1.0.94"
288source = "registry+https://github.com/rust-lang/crates.io-index" 288source = "registry+https://github.com/rust-lang/crates.io-index"
289checksum = "86d3488e7665a7a483b57e25bdd90d0aeb2bc7608c8d0346acf2ad3f1caf1d62" 289checksum = "f61f1b6389c3fe1c316bf8a4dccc90a38208354b330925bce1f74a6c4756eb93"
290dependencies = [ 290dependencies = [
291 "cc", 291 "cc",
292 "cxxbridge-flags", 292 "cxxbridge-flags",
@@ -296,9 +296,9 @@ dependencies = [
296 296
297[[package]] 297[[package]]
298name = "cxx-build" 298name = "cxx-build"
299version = "1.0.91" 299version = "1.0.94"
300source = "registry+https://github.com/rust-lang/crates.io-index" 300source = "registry+https://github.com/rust-lang/crates.io-index"
301checksum = "48fcaf066a053a41a81dfb14d57d99738b767febb8b735c3016e469fac5da690" 301checksum = "12cee708e8962df2aeb38f594aae5d827c022b6460ac71a7a3e2c3c2aae5a07b"
302dependencies = [ 302dependencies = [
303 "cc", 303 "cc",
304 "codespan-reporting", 304 "codespan-reporting",
@@ -306,31 +306,31 @@ dependencies = [
306 "proc-macro2", 306 "proc-macro2",
307 "quote", 307 "quote",
308 "scratch", 308 "scratch",
309 "syn", 309 "syn 2.0.15",
310] 310]
311 311
312[[package]] 312[[package]]
313name = "cxxbridge-flags" 313name = "cxxbridge-flags"
314version = "1.0.91" 314version = "1.0.94"
315source = "registry+https://github.com/rust-lang/crates.io-index" 315source = "registry+https://github.com/rust-lang/crates.io-index"
316checksum = "a2ef98b8b717a829ca5603af80e1f9e2e48013ab227b68ef37872ef84ee479bf" 316checksum = "7944172ae7e4068c533afbb984114a56c46e9ccddda550499caa222902c7f7bb"
317 317
318[[package]] 318[[package]]
319name = "cxxbridge-macro" 319name = "cxxbridge-macro"
320version = "1.0.91" 320version = "1.0.94"
321source = "registry+https://github.com/rust-lang/crates.io-index" 321source = "registry+https://github.com/rust-lang/crates.io-index"
322checksum = "086c685979a698443656e5cf7856c95c642295a38599f12fb1ff76fb28d19892" 322checksum = "2345488264226bf682893e25de0769f3360aac9957980ec49361b083ddaa5bc5"
323dependencies = [ 323dependencies = [
324 "proc-macro2", 324 "proc-macro2",
325 "quote", 325 "quote",
326 "syn", 326 "syn 2.0.15",
327] 327]
328 328
329[[package]] 329[[package]]
330name = "dyn-clone" 330name = "dyn-clone"
331version = "1.0.10" 331version = "1.0.11"
332source = "registry+https://github.com/rust-lang/crates.io-index" 332source = "registry+https://github.com/rust-lang/crates.io-index"
333checksum = "c9b0705efd4599c15a38151f4721f7bc388306f61084d3bfd50bd07fbca5cb60" 333checksum = "68b0cf012f1230e43cd00ebb729c6bb58707ecfa8ad08b52ef3a4ccd2697fc30"
334 334
335[[package]] 335[[package]]
336name = "either" 336name = "either"
@@ -355,13 +355,13 @@ dependencies = [
355 355
356[[package]] 356[[package]]
357name = "errno" 357name = "errno"
358version = "0.2.8" 358version = "0.3.1"
359source = "registry+https://github.com/rust-lang/crates.io-index" 359source = "registry+https://github.com/rust-lang/crates.io-index"
360checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" 360checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a"
361dependencies = [ 361dependencies = [
362 "errno-dragonfly", 362 "errno-dragonfly",
363 "libc", 363 "libc",
364 "winapi", 364 "windows-sys 0.48.0",
365] 365]
366 366
367[[package]] 367[[package]]
@@ -376,17 +376,17 @@ dependencies = [
376 376
377[[package]] 377[[package]]
378name = "exr" 378name = "exr"
379version = "1.5.3" 379version = "1.6.3"
380source = "registry+https://github.com/rust-lang/crates.io-index" 380source = "registry+https://github.com/rust-lang/crates.io-index"
381checksum = "e8af5ef47e2ed89d23d0ecbc1b681b30390069de70260937877514377fc24feb" 381checksum = "bdd2162b720141a91a054640662d3edce3d50a944a50ffca5313cd951abb35b4"
382dependencies = [ 382dependencies = [
383 "bit_field", 383 "bit_field",
384 "flume", 384 "flume",
385 "half", 385 "half",
386 "lebe", 386 "lebe",
387 "miniz_oxide", 387 "miniz_oxide 0.6.2",
388 "rayon-core",
388 "smallvec", 389 "smallvec",
389 "threadpool",
390 "zune-inflate", 390 "zune-inflate",
391] 391]
392 392
@@ -399,14 +399,23 @@ dependencies = [
399 "instant", 399 "instant",
400] 400]
401 401
402[[package]]
403name = "fdeflate"
404version = "0.3.0"
405source = "registry+https://github.com/rust-lang/crates.io-index"
406checksum = "d329bdeac514ee06249dabc27877490f17f5d371ec693360768b838e19f3ae10"
407dependencies = [
408 "simd-adler32",
409]
410
402[[package]] 411[[package]]
403name = "flate2" 412name = "flate2"
404version = "1.0.25" 413version = "1.0.26"
405source = "registry+https://github.com/rust-lang/crates.io-index" 414source = "registry+https://github.com/rust-lang/crates.io-index"
406checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" 415checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743"
407dependencies = [ 416dependencies = [
408 "crc32fast", 417 "crc32fast",
409 "miniz_oxide", 418 "miniz_oxide 0.7.1",
410] 419]
411 420
412[[package]] 421[[package]]
@@ -454,9 +463,9 @@ dependencies = [
454 463
455[[package]] 464[[package]]
456name = "futures" 465name = "futures"
457version = "0.3.26" 466version = "0.3.28"
458source = "registry+https://github.com/rust-lang/crates.io-index" 467source = "registry+https://github.com/rust-lang/crates.io-index"
459checksum = "13e2792b0ff0340399d58445b88fd9770e3489eff258a4cbc1523418f12abf84" 468checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40"
460dependencies = [ 469dependencies = [
461 "futures-channel", 470 "futures-channel",
462 "futures-core", 471 "futures-core",
@@ -468,9 +477,9 @@ dependencies = [
468 477
469[[package]] 478[[package]]
470name = "futures-channel" 479name = "futures-channel"
471version = "0.3.26" 480version = "0.3.28"
472source = "registry+https://github.com/rust-lang/crates.io-index" 481source = "registry+https://github.com/rust-lang/crates.io-index"
473checksum = "2e5317663a9089767a1ec00a487df42e0ca174b61b4483213ac24448e4664df5" 482checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2"
474dependencies = [ 483dependencies = [
475 "futures-core", 484 "futures-core",
476 "futures-sink", 485 "futures-sink",
@@ -478,33 +487,33 @@ dependencies = [
478 487
479[[package]] 488[[package]]
480name = "futures-core" 489name = "futures-core"
481version = "0.3.26" 490version = "0.3.28"
482source = "registry+https://github.com/rust-lang/crates.io-index" 491source = "registry+https://github.com/rust-lang/crates.io-index"
483checksum = "ec90ff4d0fe1f57d600049061dc6bb68ed03c7d2fbd697274c41805dcb3f8608" 492checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c"
484 493
485[[package]] 494[[package]]
486name = "futures-io" 495name = "futures-io"
487version = "0.3.26" 496version = "0.3.28"
488source = "registry+https://github.com/rust-lang/crates.io-index" 497source = "registry+https://github.com/rust-lang/crates.io-index"
489checksum = "bfb8371b6fb2aeb2d280374607aeabfc99d95c72edfe51692e42d3d7f0d08531" 498checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964"
490 499
491[[package]] 500[[package]]
492name = "futures-sink" 501name = "futures-sink"
493version = "0.3.26" 502version = "0.3.28"
494source = "registry+https://github.com/rust-lang/crates.io-index" 503source = "registry+https://github.com/rust-lang/crates.io-index"
495checksum = "f310820bb3e8cfd46c80db4d7fb8353e15dfff853a127158425f31e0be6c8364" 504checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e"
496 505
497[[package]] 506[[package]]
498name = "futures-task" 507name = "futures-task"
499version = "0.3.26" 508version = "0.3.28"
500source = "registry+https://github.com/rust-lang/crates.io-index" 509source = "registry+https://github.com/rust-lang/crates.io-index"
501checksum = "dcf79a1bf610b10f42aea489289c5a2c478a786509693b80cd39c44ccd936366" 510checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65"
502 511
503[[package]] 512[[package]]
504name = "futures-util" 513name = "futures-util"
505version = "0.3.26" 514version = "0.3.28"
506source = "registry+https://github.com/rust-lang/crates.io-index" 515source = "registry+https://github.com/rust-lang/crates.io-index"
507checksum = "9c1d6de3acfef38d2be4b1f543f553131788603495be83da675e180c8d6b7bd1" 516checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533"
508dependencies = [ 517dependencies = [
509 "futures-core", 518 "futures-core",
510 "futures-io", 519 "futures-io",
@@ -518,9 +527,9 @@ dependencies = [
518 527
519[[package]] 528[[package]]
520name = "getrandom" 529name = "getrandom"
521version = "0.2.8" 530version = "0.2.9"
522source = "registry+https://github.com/rust-lang/crates.io-index" 531source = "registry+https://github.com/rust-lang/crates.io-index"
523checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" 532checksum = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4"
524dependencies = [ 533dependencies = [
525 "cfg-if", 534 "cfg-if",
526 "js-sys", 535 "js-sys",
@@ -531,9 +540,9 @@ dependencies = [
531 540
532[[package]] 541[[package]]
533name = "gif" 542name = "gif"
534version = "0.11.4" 543version = "0.12.0"
535source = "registry+https://github.com/rust-lang/crates.io-index" 544source = "registry+https://github.com/rust-lang/crates.io-index"
536checksum = "3edd93c6756b4dfaf2709eafcc345ba2636565295c198a9cfbf75fa5e3e00b06" 545checksum = "80792593675e051cf94a4b111980da2ba60d4a83e43e0048c5693baab3977045"
537dependencies = [ 546dependencies = [
538 "color_quant", 547 "color_quant",
539 "weezl", 548 "weezl",
@@ -541,9 +550,9 @@ dependencies = [
541 550
542[[package]] 551[[package]]
543name = "h2" 552name = "h2"
544version = "0.3.15" 553version = "0.3.18"
545source = "registry+https://github.com/rust-lang/crates.io-index" 554source = "registry+https://github.com/rust-lang/crates.io-index"
546checksum = "5f9f29bc9dda355256b2916cf526ab02ce0aeaaaf2bad60d65ef3f12f11dd0f4" 555checksum = "17f8a914c2987b688368b5138aa05321db91f4090cf26118185672ad588bce21"
547dependencies = [ 556dependencies = [
548 "bytes", 557 "bytes",
549 "fnv", 558 "fnv",
@@ -582,13 +591,19 @@ dependencies = [
582 "libc", 591 "libc",
583] 592]
584 593
594[[package]]
595name = "hermit-abi"
596version = "0.3.1"
597source = "registry+https://github.com/rust-lang/crates.io-index"
598checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286"
599
585[[package]] 600[[package]]
586name = "home" 601name = "home"
587version = "0.5.4" 602version = "0.5.5"
588source = "registry+https://github.com/rust-lang/crates.io-index" 603source = "registry+https://github.com/rust-lang/crates.io-index"
589checksum = "747309b4b440c06d57b0b25f2aee03ee9b5e5397d288c60e21fc709bb98a7408" 604checksum = "5444c27eef6923071f7ebcc33e3444508466a76f7a2b93da00ed6e19f30c1ddb"
590dependencies = [ 605dependencies = [
591 "winapi", 606 "windows-sys 0.48.0",
592] 607]
593 608
594[[package]] 609[[package]]
@@ -627,9 +642,9 @@ checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"
627 642
628[[package]] 643[[package]]
629name = "hyper" 644name = "hyper"
630version = "0.14.24" 645version = "0.14.26"
631source = "registry+https://github.com/rust-lang/crates.io-index" 646source = "registry+https://github.com/rust-lang/crates.io-index"
632checksum = "5e011372fa0b68db8350aa7a248930ecc7839bf46d8485577d69f117a75f164c" 647checksum = "ab302d72a6f11a3b910431ff93aae7e773078c769f0a3ef15fb9ec692ed147d4"
633dependencies = [ 648dependencies = [
634 "bytes", 649 "bytes",
635 "futures-channel", 650 "futures-channel",
@@ -664,16 +679,16 @@ dependencies = [
664 679
665[[package]] 680[[package]]
666name = "iana-time-zone" 681name = "iana-time-zone"
667version = "0.1.53" 682version = "0.1.56"
668source = "registry+https://github.com/rust-lang/crates.io-index" 683source = "registry+https://github.com/rust-lang/crates.io-index"
669checksum = "64c122667b287044802d6ce17ee2ddf13207ed924c712de9a66a5814d5b64765" 684checksum = "0722cd7114b7de04316e7ea5456a0bbb20e4adb46fd27a3697adb812cff0f37c"
670dependencies = [ 685dependencies = [
671 "android_system_properties", 686 "android_system_properties",
672 "core-foundation-sys", 687 "core-foundation-sys",
673 "iana-time-zone-haiku", 688 "iana-time-zone-haiku",
674 "js-sys", 689 "js-sys",
675 "wasm-bindgen", 690 "wasm-bindgen",
676 "winapi", 691 "windows",
677] 692]
678 693
679[[package]] 694[[package]]
@@ -698,9 +713,9 @@ dependencies = [
698 713
699[[package]] 714[[package]]
700name = "image" 715name = "image"
701version = "0.24.5" 716version = "0.24.6"
702source = "registry+https://github.com/rust-lang/crates.io-index" 717source = "registry+https://github.com/rust-lang/crates.io-index"
703checksum = "69b7ea949b537b0fd0af141fff8c77690f2ce96f4f41f042ccb6c69c6c965945" 718checksum = "527909aa81e20ac3a44803521443a765550f09b5130c2c2fa1ea59c2f8f50a3a"
704dependencies = [ 719dependencies = [
705 "bytemuck", 720 "bytemuck",
706 "byteorder", 721 "byteorder",
@@ -711,15 +726,15 @@ dependencies = [
711 "num-rational", 726 "num-rational",
712 "num-traits", 727 "num-traits",
713 "png", 728 "png",
714 "scoped_threadpool", 729 "qoi",
715 "tiff", 730 "tiff",
716] 731]
717 732
718[[package]] 733[[package]]
719name = "indexmap" 734name = "indexmap"
720version = "1.9.2" 735version = "1.9.3"
721source = "registry+https://github.com/rust-lang/crates.io-index" 736source = "registry+https://github.com/rust-lang/crates.io-index"
722checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" 737checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
723dependencies = [ 738dependencies = [
724 "autocfg", 739 "autocfg",
725 "hashbrown", 740 "hashbrown",
@@ -747,25 +762,26 @@ dependencies = [
747 762
748[[package]] 763[[package]]
749name = "io-lifetimes" 764name = "io-lifetimes"
750version = "1.0.5" 765version = "1.0.10"
751source = "registry+https://github.com/rust-lang/crates.io-index" 766source = "registry+https://github.com/rust-lang/crates.io-index"
752checksum = "1abeb7a0dd0f8181267ff8adc397075586500b81b28a73e8a0208b00fc170fb3" 767checksum = "9c66c74d2ae7e79a5a8f7ac924adbe38ee42a859c6539ad869eb51f0b52dc220"
753dependencies = [ 768dependencies = [
769 "hermit-abi 0.3.1",
754 "libc", 770 "libc",
755 "windows-sys 0.45.0", 771 "windows-sys 0.48.0",
756] 772]
757 773
758[[package]] 774[[package]]
759name = "ipnet" 775name = "ipnet"
760version = "2.7.1" 776version = "2.7.2"
761source = "registry+https://github.com/rust-lang/crates.io-index" 777source = "registry+https://github.com/rust-lang/crates.io-index"
762checksum = "30e22bd8629359895450b59ea7a776c850561b96a3b1d31321c1949d9e6c9146" 778checksum = "12b6ee2129af8d4fb011108c73d99a1b83a85977f23b82460c0ae2e25bb4b57f"
763 779
764[[package]] 780[[package]]
765name = "itoa" 781name = "itoa"
766version = "1.0.5" 782version = "1.0.6"
767source = "registry+https://github.com/rust-lang/crates.io-index" 783source = "registry+https://github.com/rust-lang/crates.io-index"
768checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" 784checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6"
769 785
770[[package]] 786[[package]]
771name = "jpeg-decoder" 787name = "jpeg-decoder"
@@ -799,9 +815,9 @@ checksum = "03087c2bad5e1034e8cace5926dec053fb3790248370865f5117a7d0213354c8"
799 815
800[[package]] 816[[package]]
801name = "libc" 817name = "libc"
802version = "0.2.139" 818version = "0.2.142"
803source = "registry+https://github.com/rust-lang/crates.io-index" 819source = "registry+https://github.com/rust-lang/crates.io-index"
804checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 820checksum = "6a987beff54b60ffa6d51982e1aa1146bc42f19bd26be28b0586f252fccf5317"
805 821
806[[package]] 822[[package]]
807name = "link-cplusplus" 823name = "link-cplusplus"
@@ -814,9 +830,9 @@ dependencies = [
814 830
815[[package]] 831[[package]]
816name = "linux-raw-sys" 832name = "linux-raw-sys"
817version = "0.1.4" 833version = "0.3.6"
818source = "registry+https://github.com/rust-lang/crates.io-index" 834source = "registry+https://github.com/rust-lang/crates.io-index"
819checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" 835checksum = "b64f40e5e03e0d54f03845c8197d0291253cdbedfb1cb46b13c2c117554a9f4c"
820 836
821[[package]] 837[[package]]
822name = "lock_api" 838name = "lock_api"
@@ -860,18 +876,18 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
860 876
861[[package]] 877[[package]]
862name = "memoffset" 878name = "memoffset"
863version = "0.7.1" 879version = "0.8.0"
864source = "registry+https://github.com/rust-lang/crates.io-index" 880source = "registry+https://github.com/rust-lang/crates.io-index"
865checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" 881checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1"
866dependencies = [ 882dependencies = [
867 "autocfg", 883 "autocfg",
868] 884]
869 885
870[[package]] 886[[package]]
871name = "mime" 887name = "mime"
872version = "0.3.16" 888version = "0.3.17"
873source = "registry+https://github.com/rust-lang/crates.io-index" 889source = "registry+https://github.com/rust-lang/crates.io-index"
874checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" 890checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
875 891
876[[package]] 892[[package]]
877name = "miniz_oxide" 893name = "miniz_oxide"
@@ -882,6 +898,16 @@ dependencies = [
882 "adler", 898 "adler",
883] 899]
884 900
901[[package]]
902name = "miniz_oxide"
903version = "0.7.1"
904source = "registry+https://github.com/rust-lang/crates.io-index"
905checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7"
906dependencies = [
907 "adler",
908 "simd-adler32",
909]
910
885[[package]] 911[[package]]
886name = "mio" 912name = "mio"
887version = "0.8.6" 913version = "0.8.6"
@@ -957,7 +983,7 @@ version = "1.15.0"
957source = "registry+https://github.com/rust-lang/crates.io-index" 983source = "registry+https://github.com/rust-lang/crates.io-index"
958checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 984checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b"
959dependencies = [ 985dependencies = [
960 "hermit-abi", 986 "hermit-abi 0.2.6",
961 "libc", 987 "libc",
962] 988]
963 989
@@ -998,9 +1024,9 @@ checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3"
998 1024
999[[package]] 1025[[package]]
1000name = "openssl" 1026name = "openssl"
1001version = "0.10.45" 1027version = "0.10.52"
1002source = "registry+https://github.com/rust-lang/crates.io-index" 1028source = "registry+https://github.com/rust-lang/crates.io-index"
1003checksum = "b102428fd03bc5edf97f62620f7298614c45cedf287c271e7ed450bbaf83f2e1" 1029checksum = "01b8574602df80f7b85fdfc5392fa884a4e3b3f4f35402c070ab34c3d3f78d56"
1004dependencies = [ 1030dependencies = [
1005 "bitflags", 1031 "bitflags",
1006 "cfg-if", 1032 "cfg-if",
@@ -1013,13 +1039,13 @@ dependencies = [
1013 1039
1014[[package]] 1040[[package]]
1015name = "openssl-macros" 1041name = "openssl-macros"
1016version = "0.1.0" 1042version = "0.1.1"
1017source = "registry+https://github.com/rust-lang/crates.io-index" 1043source = "registry+https://github.com/rust-lang/crates.io-index"
1018checksum = "b501e44f11665960c7e7fcf062c7d96a14ade4aa98116c004b2e37b5be7d736c" 1044checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
1019dependencies = [ 1045dependencies = [
1020 "proc-macro2", 1046 "proc-macro2",
1021 "quote", 1047 "quote",
1022 "syn", 1048 "syn 2.0.15",
1023] 1049]
1024 1050
1025[[package]] 1051[[package]]
@@ -1030,11 +1056,10 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
1030 1056
1031[[package]] 1057[[package]]
1032name = "openssl-sys" 1058name = "openssl-sys"
1033version = "0.9.80" 1059version = "0.9.87"
1034source = "registry+https://github.com/rust-lang/crates.io-index" 1060source = "registry+https://github.com/rust-lang/crates.io-index"
1035checksum = "23bbbf7854cd45b83958ebe919f0e8e516793727652e27fda10a8384cfc790b7" 1061checksum = "8e17f59264b2809d77ae94f0e1ebabc434773f370d6ca667bd223ea10e06cc7e"
1036dependencies = [ 1062dependencies = [
1037 "autocfg",
1038 "cc", 1063 "cc",
1039 "libc", 1064 "libc",
1040 "pkg-config", 1065 "pkg-config",
@@ -1059,7 +1084,7 @@ checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521"
1059dependencies = [ 1084dependencies = [
1060 "cfg-if", 1085 "cfg-if",
1061 "libc", 1086 "libc",
1062 "redox_syscall", 1087 "redox_syscall 0.2.16",
1063 "smallvec", 1088 "smallvec",
1064 "windows-sys 0.45.0", 1089 "windows-sys 0.45.0",
1065] 1090]
@@ -1087,7 +1112,7 @@ checksum = "069bdb1e05adc7a8990dce9cc75370895fbe4e3d58b9b73bf1aee56359344a55"
1087dependencies = [ 1112dependencies = [
1088 "proc-macro2", 1113 "proc-macro2",
1089 "quote", 1114 "quote",
1090 "syn", 1115 "syn 1.0.109",
1091] 1116]
1092 1117
1093[[package]] 1118[[package]]
@@ -1110,39 +1135,49 @@ checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160"
1110 1135
1111[[package]] 1136[[package]]
1112name = "png" 1137name = "png"
1113version = "0.17.7" 1138version = "0.17.8"
1114source = "registry+https://github.com/rust-lang/crates.io-index" 1139source = "registry+https://github.com/rust-lang/crates.io-index"
1115checksum = "5d708eaf860a19b19ce538740d2b4bdeeb8337fa53f7738455e706623ad5c638" 1140checksum = "aaeebc51f9e7d2c150d3f3bfeb667f2aa985db5ef1e3d212847bdedb488beeaa"
1116dependencies = [ 1141dependencies = [
1117 "bitflags", 1142 "bitflags",
1118 "crc32fast", 1143 "crc32fast",
1144 "fdeflate",
1119 "flate2", 1145 "flate2",
1120 "miniz_oxide", 1146 "miniz_oxide 0.7.1",
1121] 1147]
1122 1148
1123[[package]] 1149[[package]]
1124name = "proc-macro2" 1150name = "proc-macro2"
1125version = "1.0.51" 1151version = "1.0.56"
1126source = "registry+https://github.com/rust-lang/crates.io-index" 1152source = "registry+https://github.com/rust-lang/crates.io-index"
1127checksum = "5d727cae5b39d21da60fa540906919ad737832fe0b1c165da3a34d6548c849d6" 1153checksum = "2b63bdb0cd06f1f4dedf69b254734f9b45af66e4a031e42a7480257d9898b435"
1128dependencies = [ 1154dependencies = [
1129 "unicode-ident", 1155 "unicode-ident",
1130] 1156]
1131 1157
1158[[package]]
1159name = "qoi"
1160version = "0.4.1"
1161source = "registry+https://github.com/rust-lang/crates.io-index"
1162checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001"
1163dependencies = [
1164 "bytemuck",
1165]
1166
1132[[package]] 1167[[package]]
1133name = "quote" 1168name = "quote"
1134version = "1.0.23" 1169version = "1.0.26"
1135source = "registry+https://github.com/rust-lang/crates.io-index" 1170source = "registry+https://github.com/rust-lang/crates.io-index"
1136checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 1171checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc"
1137dependencies = [ 1172dependencies = [
1138 "proc-macro2", 1173 "proc-macro2",
1139] 1174]
1140 1175
1141[[package]] 1176[[package]]
1142name = "rayon" 1177name = "rayon"
1143version = "1.6.1" 1178version = "1.7.0"
1144source = "registry+https://github.com/rust-lang/crates.io-index" 1179source = "registry+https://github.com/rust-lang/crates.io-index"
1145checksum = "6db3a213adf02b3bcfd2d3846bb41cb22857d131789e01df434fb7e7bc0759b7" 1180checksum = "1d2df5196e37bcc87abebc0053e20787d73847bb33134a69841207dd0a47f03b"
1146dependencies = [ 1181dependencies = [
1147 "either", 1182 "either",
1148 "rayon-core", 1183 "rayon-core",
@@ -1150,9 +1185,9 @@ dependencies = [
1150 1185
1151[[package]] 1186[[package]]
1152name = "rayon-core" 1187name = "rayon-core"
1153version = "1.10.2" 1188version = "1.11.0"
1154source = "registry+https://github.com/rust-lang/crates.io-index" 1189source = "registry+https://github.com/rust-lang/crates.io-index"
1155checksum = "356a0625f1954f730c0201cdab48611198dc6ce21f4acff55089b5a78e6e835b" 1190checksum = "4b8f95bd6966f5c87776639160a66bd8ab9895d9d4ab01ddba9fc60661aebe8d"
1156dependencies = [ 1191dependencies = [
1157 "crossbeam-channel", 1192 "crossbeam-channel",
1158 "crossbeam-deque", 1193 "crossbeam-deque",
@@ -1169,11 +1204,20 @@ dependencies = [
1169 "bitflags", 1204 "bitflags",
1170] 1205]
1171 1206
1207[[package]]
1208name = "redox_syscall"
1209version = "0.3.5"
1210source = "registry+https://github.com/rust-lang/crates.io-index"
1211checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
1212dependencies = [
1213 "bitflags",
1214]
1215
1172[[package]] 1216[[package]]
1173name = "reqwest" 1217name = "reqwest"
1174version = "0.11.14" 1218version = "0.11.17"
1175source = "registry+https://github.com/rust-lang/crates.io-index" 1219source = "registry+https://github.com/rust-lang/crates.io-index"
1176checksum = "21eed90ec8570952d53b772ecf8f206aa1ec9a3d76b2521c56c42973f2d91ee9" 1220checksum = "13293b639a097af28fc8a90f22add145a9c954e49d77da06263d58cf44d5fb91"
1177dependencies = [ 1221dependencies = [
1178 "base64 0.21.0", 1222 "base64 0.21.0",
1179 "bytes", 1223 "bytes",
@@ -1217,23 +1261,23 @@ dependencies = [
1217 1261
1218[[package]] 1262[[package]]
1219name = "rustix" 1263name = "rustix"
1220version = "0.36.8" 1264version = "0.37.17"
1221source = "registry+https://github.com/rust-lang/crates.io-index" 1265source = "registry+https://github.com/rust-lang/crates.io-index"
1222checksum = "f43abb88211988493c1abb44a70efa56ff0ce98f233b7b276146f1f3f7ba9644" 1266checksum = "bc809f704c03a812ac71f22456c857be34185cac691a4316f27ab0f633bb9009"
1223dependencies = [ 1267dependencies = [
1224 "bitflags", 1268 "bitflags",
1225 "errno", 1269 "errno",
1226 "io-lifetimes", 1270 "io-lifetimes",
1227 "libc", 1271 "libc",
1228 "linux-raw-sys", 1272 "linux-raw-sys",
1229 "windows-sys 0.45.0", 1273 "windows-sys 0.48.0",
1230] 1274]
1231 1275
1232[[package]] 1276[[package]]
1233name = "ryu" 1277name = "ryu"
1234version = "1.0.12" 1278version = "1.0.13"
1235source = "registry+https://github.com/rust-lang/crates.io-index" 1279source = "registry+https://github.com/rust-lang/crates.io-index"
1236checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" 1280checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041"
1237 1281
1238[[package]] 1282[[package]]
1239name = "schannel" 1283name = "schannel"
@@ -1244,12 +1288,6 @@ dependencies = [
1244 "windows-sys 0.42.0", 1288 "windows-sys 0.42.0",
1245] 1289]
1246 1290
1247[[package]]
1248name = "scoped_threadpool"
1249version = "0.1.9"
1250source = "registry+https://github.com/rust-lang/crates.io-index"
1251checksum = "1d51f5df5af43ab3f1360b429fa5e0152ac5ce8c0bd6485cae490332e96846a8"
1252
1253[[package]] 1291[[package]]
1254name = "scopeguard" 1292name = "scopeguard"
1255version = "1.1.0" 1293version = "1.1.0"
@@ -1258,9 +1296,9 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
1258 1296
1259[[package]] 1297[[package]]
1260name = "scratch" 1298name = "scratch"
1261version = "1.0.3" 1299version = "1.0.5"
1262source = "registry+https://github.com/rust-lang/crates.io-index" 1300source = "registry+https://github.com/rust-lang/crates.io-index"
1263checksum = "ddccb15bcce173023b3fedd9436f882a0739b8dfb45e4f6b6002bee5929f61b2" 1301checksum = "1792db035ce95be60c3f8853017b3999209281c24e2ba5bc8e59bf97a0c590c1"
1264 1302
1265[[package]] 1303[[package]]
1266name = "security-framework" 1304name = "security-framework"
@@ -1287,29 +1325,29 @@ dependencies = [
1287 1325
1288[[package]] 1326[[package]]
1289name = "serde" 1327name = "serde"
1290version = "1.0.152" 1328version = "1.0.160"
1291source = "registry+https://github.com/rust-lang/crates.io-index" 1329source = "registry+https://github.com/rust-lang/crates.io-index"
1292checksum = "bb7d1f0d3021d347a83e556fc4683dea2ea09d87bccdf88ff5c12545d89d5efb" 1330checksum = "bb2f3770c8bce3bcda7e149193a069a0f4365bda1fa5cd88e03bca26afc1216c"
1293dependencies = [ 1331dependencies = [
1294 "serde_derive", 1332 "serde_derive",
1295] 1333]
1296 1334
1297[[package]] 1335[[package]]
1298name = "serde_derive" 1336name = "serde_derive"
1299version = "1.0.152" 1337version = "1.0.160"
1300source = "registry+https://github.com/rust-lang/crates.io-index" 1338source = "registry+https://github.com/rust-lang/crates.io-index"
1301checksum = "af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e" 1339checksum = "291a097c63d8497e00160b166a967a4a79c64f3facdd01cbd7502231688d77df"
1302dependencies = [ 1340dependencies = [
1303 "proc-macro2", 1341 "proc-macro2",
1304 "quote", 1342 "quote",
1305 "syn", 1343 "syn 2.0.15",
1306] 1344]
1307 1345
1308[[package]] 1346[[package]]
1309name = "serde_json" 1347name = "serde_json"
1310version = "1.0.93" 1348version = "1.0.96"
1311source = "registry+https://github.com/rust-lang/crates.io-index" 1349source = "registry+https://github.com/rust-lang/crates.io-index"
1312checksum = "cad406b69c91885b5107daf2c29572f6c8cdb3c66826821e286c533490c0bc76" 1350checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1"
1313dependencies = [ 1351dependencies = [
1314 "itoa", 1352 "itoa",
1315 "ryu", 1353 "ryu",
@@ -1330,9 +1368,9 @@ dependencies = [
1330 1368
1331[[package]] 1369[[package]]
1332name = "serde_yaml" 1370name = "serde_yaml"
1333version = "0.9.17" 1371version = "0.9.21"
1334source = "registry+https://github.com/rust-lang/crates.io-index" 1372source = "registry+https://github.com/rust-lang/crates.io-index"
1335checksum = "8fb06d4b6cdaef0e0c51fa881acb721bed3c924cfaa71d9c94a3b771dfdf6567" 1373checksum = "d9d684e3ec7de3bf5466b32bd75303ac16f0736426e5a4e0d6e489559ce1249c"
1336dependencies = [ 1374dependencies = [
1337 "indexmap", 1375 "indexmap",
1338 "itoa", 1376 "itoa",
@@ -1373,9 +1411,9 @@ dependencies = [
1373 1411
1374[[package]] 1412[[package]]
1375name = "simd-adler32" 1413name = "simd-adler32"
1376version = "0.3.4" 1414version = "0.3.5"
1377source = "registry+https://github.com/rust-lang/crates.io-index" 1415source = "registry+https://github.com/rust-lang/crates.io-index"
1378checksum = "14a5df39617d7c8558154693a1bb8157a4aab8179209540cc0b10e5dc24e0b18" 1416checksum = "238abfbb77c1915110ad968465608b68e869e0772622c9656714e73e5a1a522f"
1379 1417
1380[[package]] 1418[[package]]
1381name = "sixel-rs" 1419name = "sixel-rs"
@@ -1412,9 +1450,9 @@ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
1412 1450
1413[[package]] 1451[[package]]
1414name = "socket2" 1452name = "socket2"
1415version = "0.4.7" 1453version = "0.4.9"
1416source = "registry+https://github.com/rust-lang/crates.io-index" 1454source = "registry+https://github.com/rust-lang/crates.io-index"
1417checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 1455checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662"
1418dependencies = [ 1456dependencies = [
1419 "libc", 1457 "libc",
1420 "winapi", 1458 "winapi",
@@ -1422,9 +1460,9 @@ dependencies = [
1422 1460
1423[[package]] 1461[[package]]
1424name = "spin" 1462name = "spin"
1425version = "0.9.5" 1463version = "0.9.8"
1426source = "registry+https://github.com/rust-lang/crates.io-index" 1464source = "registry+https://github.com/rust-lang/crates.io-index"
1427checksum = "7dccf47db1b41fa1573ed27ccf5e08e3ca771cb994f776668c5ebda893b248fc" 1465checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
1428dependencies = [ 1466dependencies = [
1429 "lock_api", 1467 "lock_api",
1430] 1468]
@@ -1440,17 +1478,28 @@ dependencies = [
1440 "unicode-ident", 1478 "unicode-ident",
1441] 1479]
1442 1480
1481[[package]]
1482name = "syn"
1483version = "2.0.15"
1484source = "registry+https://github.com/rust-lang/crates.io-index"
1485checksum = "a34fcf3e8b60f57e6a14301a2e916d323af98b0ea63c599441eec8558660c822"
1486dependencies = [
1487 "proc-macro2",
1488 "quote",
1489 "unicode-ident",
1490]
1491
1443[[package]] 1492[[package]]
1444name = "tempfile" 1493name = "tempfile"
1445version = "3.4.0" 1494version = "3.5.0"
1446source = "registry+https://github.com/rust-lang/crates.io-index" 1495source = "registry+https://github.com/rust-lang/crates.io-index"
1447checksum = "af18f7ae1acd354b992402e9ec5864359d693cd8a79dcbef59f76891701c1e95" 1496checksum = "b9fbec84f381d5795b08656e4912bec604d162bff9291d6189a78f4c8ab87998"
1448dependencies = [ 1497dependencies = [
1449 "cfg-if", 1498 "cfg-if",
1450 "fastrand", 1499 "fastrand",
1451 "redox_syscall", 1500 "redox_syscall 0.3.5",
1452 "rustix", 1501 "rustix",
1453 "windows-sys 0.42.0", 1502 "windows-sys 0.45.0",
1454] 1503]
1455 1504
1456[[package]] 1505[[package]]
@@ -1462,15 +1511,6 @@ dependencies = [
1462 "winapi-util", 1511 "winapi-util",
1463] 1512]
1464 1513
1465[[package]]
1466name = "threadpool"
1467version = "1.8.1"
1468source = "registry+https://github.com/rust-lang/crates.io-index"
1469checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa"
1470dependencies = [
1471 "num_cpus",
1472]
1473
1474[[package]] 1514[[package]]
1475name = "tiff" 1515name = "tiff"
1476version = "0.8.1" 1516version = "0.8.1"
@@ -1499,19 +1539,18 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
1499 1539
1500[[package]] 1540[[package]]
1501name = "tokio" 1541name = "tokio"
1502version = "1.25.0" 1542version = "1.28.0"
1503source = "registry+https://github.com/rust-lang/crates.io-index" 1543source = "registry+https://github.com/rust-lang/crates.io-index"
1504checksum = "c8e00990ebabbe4c14c08aca901caed183ecd5c09562a12c824bb53d3c3fd3af" 1544checksum = "c3c786bf8134e5a3a166db9b29ab8f48134739014a3eca7bc6bfa95d673b136f"
1505dependencies = [ 1545dependencies = [
1506 "autocfg", 1546 "autocfg",
1507 "bytes", 1547 "bytes",
1508 "libc", 1548 "libc",
1509 "memchr",
1510 "mio", 1549 "mio",
1511 "num_cpus", 1550 "num_cpus",
1512 "pin-project-lite", 1551 "pin-project-lite",
1513 "socket2", 1552 "socket2",
1514 "windows-sys 0.42.0", 1553 "windows-sys 0.48.0",
1515] 1554]
1516 1555
1517[[package]] 1556[[package]]
@@ -1526,9 +1565,9 @@ dependencies = [
1526 1565
1527[[package]] 1566[[package]]
1528name = "tokio-util" 1567name = "tokio-util"
1529version = "0.7.7" 1568version = "0.7.8"
1530source = "registry+https://github.com/rust-lang/crates.io-index" 1569source = "registry+https://github.com/rust-lang/crates.io-index"
1531checksum = "5427d89453009325de0d8f342c9490009f76e999cb7672d77e46267448f7e6b2" 1570checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d"
1532dependencies = [ 1571dependencies = [
1533 "bytes", 1572 "bytes",
1534 "futures-core", 1573 "futures-core",
@@ -1596,7 +1635,7 @@ version = "0.1.13"
1596source = "registry+https://github.com/rust-lang/crates.io-index" 1635source = "registry+https://github.com/rust-lang/crates.io-index"
1597checksum = "37ad46291f8753853eb83c3e47c34c67a59f61129a13a93ba11907ca458bd72b" 1636checksum = "37ad46291f8753853eb83c3e47c34c67a59f61129a13a93ba11907ca458bd72b"
1598dependencies = [ 1637dependencies = [
1599 "crossterm 0.26.0", 1638 "crossterm 0.26.1",
1600 "dyn-clone", 1639 "dyn-clone",
1601 "tui", 1640 "tui",
1602 "typemap", 1641 "typemap",
@@ -1614,15 +1653,15 @@ dependencies = [
1614 1653
1615[[package]] 1654[[package]]
1616name = "unicode-bidi" 1655name = "unicode-bidi"
1617version = "0.3.10" 1656version = "0.3.13"
1618source = "registry+https://github.com/rust-lang/crates.io-index" 1657source = "registry+https://github.com/rust-lang/crates.io-index"
1619checksum = "d54675592c1dbefd78cbd98db9bacd89886e1ca50692a0692baefffdeb92dd58" 1658checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460"
1620 1659
1621[[package]] 1660[[package]]
1622name = "unicode-ident" 1661name = "unicode-ident"
1623version = "1.0.6" 1662version = "1.0.8"
1624source = "registry+https://github.com/rust-lang/crates.io-index" 1663source = "registry+https://github.com/rust-lang/crates.io-index"
1625checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 1664checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4"
1626 1665
1627[[package]] 1666[[package]]
1628name = "unicode-normalization" 1667name = "unicode-normalization"
@@ -1656,9 +1695,9 @@ dependencies = [
1656 1695
1657[[package]] 1696[[package]]
1658name = "unsafe-libyaml" 1697name = "unsafe-libyaml"
1659version = "0.2.5" 1698version = "0.2.8"
1660source = "registry+https://github.com/rust-lang/crates.io-index" 1699source = "registry+https://github.com/rust-lang/crates.io-index"
1661checksum = "bc7ed8ba44ca06be78ea1ad2c3682a43349126c8818054231ee6f4748012aed2" 1700checksum = "1865806a559042e51ab5414598446a5871b561d21b6764f2eabb0dd481d880a6"
1662 1701
1663[[package]] 1702[[package]]
1664name = "url" 1703name = "url"
@@ -1731,7 +1770,7 @@ dependencies = [
1731 "once_cell", 1770 "once_cell",
1732 "proc-macro2", 1771 "proc-macro2",
1733 "quote", 1772 "quote",
1734 "syn", 1773 "syn 1.0.109",
1735 "wasm-bindgen-shared", 1774 "wasm-bindgen-shared",
1736] 1775]
1737 1776
@@ -1765,7 +1804,7 @@ checksum = "2aff81306fcac3c7515ad4e177f521b5c9a15f2b08f4e32d823066102f35a5f6"
1765dependencies = [ 1804dependencies = [
1766 "proc-macro2", 1805 "proc-macro2",
1767 "quote", 1806 "quote",
1768 "syn", 1807 "syn 1.0.109",
1769 "wasm-bindgen-backend", 1808 "wasm-bindgen-backend",
1770 "wasm-bindgen-shared", 1809 "wasm-bindgen-shared",
1771] 1810]
@@ -1823,19 +1862,28 @@ version = "0.4.0"
1823source = "registry+https://github.com/rust-lang/crates.io-index" 1862source = "registry+https://github.com/rust-lang/crates.io-index"
1824checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1863checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
1825 1864
1865[[package]]
1866name = "windows"
1867version = "0.48.0"
1868source = "registry+https://github.com/rust-lang/crates.io-index"
1869checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f"
1870dependencies = [
1871 "windows-targets 0.48.0",
1872]
1873
1826[[package]] 1874[[package]]
1827name = "windows-sys" 1875name = "windows-sys"
1828version = "0.42.0" 1876version = "0.42.0"
1829source = "registry+https://github.com/rust-lang/crates.io-index" 1877source = "registry+https://github.com/rust-lang/crates.io-index"
1830checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 1878checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7"
1831dependencies = [ 1879dependencies = [
1832 "windows_aarch64_gnullvm", 1880 "windows_aarch64_gnullvm 0.42.2",
1833 "windows_aarch64_msvc", 1881 "windows_aarch64_msvc 0.42.2",
1834 "windows_i686_gnu", 1882 "windows_i686_gnu 0.42.2",
1835 "windows_i686_msvc", 1883 "windows_i686_msvc 0.42.2",
1836 "windows_x86_64_gnu", 1884 "windows_x86_64_gnu 0.42.2",
1837 "windows_x86_64_gnullvm", 1885 "windows_x86_64_gnullvm 0.42.2",
1838 "windows_x86_64_msvc", 1886 "windows_x86_64_msvc 0.42.2",
1839] 1887]
1840 1888
1841[[package]] 1889[[package]]
@@ -1844,65 +1892,131 @@ version = "0.45.0"
1844source = "registry+https://github.com/rust-lang/crates.io-index" 1892source = "registry+https://github.com/rust-lang/crates.io-index"
1845checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" 1893checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
1846dependencies = [ 1894dependencies = [
1847 "windows-targets", 1895 "windows-targets 0.42.2",
1896]
1897
1898[[package]]
1899name = "windows-sys"
1900version = "0.48.0"
1901source = "registry+https://github.com/rust-lang/crates.io-index"
1902checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
1903dependencies = [
1904 "windows-targets 0.48.0",
1848] 1905]
1849 1906
1850[[package]] 1907[[package]]
1851name = "windows-targets" 1908name = "windows-targets"
1852version = "0.42.1" 1909version = "0.42.2"
1853source = "registry+https://github.com/rust-lang/crates.io-index" 1910source = "registry+https://github.com/rust-lang/crates.io-index"
1854checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7" 1911checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"
1855dependencies = [ 1912dependencies = [
1856 "windows_aarch64_gnullvm", 1913 "windows_aarch64_gnullvm 0.42.2",
1857 "windows_aarch64_msvc", 1914 "windows_aarch64_msvc 0.42.2",
1858 "windows_i686_gnu", 1915 "windows_i686_gnu 0.42.2",
1859 "windows_i686_msvc", 1916 "windows_i686_msvc 0.42.2",
1860 "windows_x86_64_gnu", 1917 "windows_x86_64_gnu 0.42.2",
1861 "windows_x86_64_gnullvm", 1918 "windows_x86_64_gnullvm 0.42.2",
1862 "windows_x86_64_msvc", 1919 "windows_x86_64_msvc 0.42.2",
1863] 1920]
1864 1921
1922[[package]]
1923name = "windows-targets"
1924version = "0.48.0"
1925source = "registry+https://github.com/rust-lang/crates.io-index"
1926checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5"
1927dependencies = [
1928 "windows_aarch64_gnullvm 0.48.0",
1929 "windows_aarch64_msvc 0.48.0",
1930 "windows_i686_gnu 0.48.0",
1931 "windows_i686_msvc 0.48.0",
1932 "windows_x86_64_gnu 0.48.0",
1933 "windows_x86_64_gnullvm 0.48.0",
1934 "windows_x86_64_msvc 0.48.0",
1935]
1936
1937[[package]]
1938name = "windows_aarch64_gnullvm"
1939version = "0.42.2"
1940source = "registry+https://github.com/rust-lang/crates.io-index"
1941checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"
1942
1865[[package]] 1943[[package]]
1866name = "windows_aarch64_gnullvm" 1944name = "windows_aarch64_gnullvm"
1867version = "0.42.1" 1945version = "0.48.0"
1868source = "registry+https://github.com/rust-lang/crates.io-index" 1946source = "registry+https://github.com/rust-lang/crates.io-index"
1869checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" 1947checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc"
1870 1948
1871[[package]] 1949[[package]]
1872name = "windows_aarch64_msvc" 1950name = "windows_aarch64_msvc"
1873version = "0.42.1" 1951version = "0.42.2"
1874source = "registry+https://github.com/rust-lang/crates.io-index" 1952source = "registry+https://github.com/rust-lang/crates.io-index"
1875checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" 1953checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"
1954
1955[[package]]
1956name = "windows_aarch64_msvc"
1957version = "0.48.0"
1958source = "registry+https://github.com/rust-lang/crates.io-index"
1959checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3"
1876 1960
1877[[package]] 1961[[package]]
1878name = "windows_i686_gnu" 1962name = "windows_i686_gnu"
1879version = "0.42.1" 1963version = "0.42.2"
1880source = "registry+https://github.com/rust-lang/crates.io-index" 1964source = "registry+https://github.com/rust-lang/crates.io-index"
1881checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" 1965checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"
1966
1967[[package]]
1968name = "windows_i686_gnu"
1969version = "0.48.0"
1970source = "registry+https://github.com/rust-lang/crates.io-index"
1971checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241"
1882 1972
1883[[package]] 1973[[package]]
1884name = "windows_i686_msvc" 1974name = "windows_i686_msvc"
1885version = "0.42.1" 1975version = "0.42.2"
1886source = "registry+https://github.com/rust-lang/crates.io-index" 1976source = "registry+https://github.com/rust-lang/crates.io-index"
1887checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" 1977checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"
1978
1979[[package]]
1980name = "windows_i686_msvc"
1981version = "0.48.0"
1982source = "registry+https://github.com/rust-lang/crates.io-index"
1983checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00"
1888 1984
1889[[package]] 1985[[package]]
1890name = "windows_x86_64_gnu" 1986name = "windows_x86_64_gnu"
1891version = "0.42.1" 1987version = "0.42.2"
1892source = "registry+https://github.com/rust-lang/crates.io-index" 1988source = "registry+https://github.com/rust-lang/crates.io-index"
1893checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" 1989checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"
1990
1991[[package]]
1992name = "windows_x86_64_gnu"
1993version = "0.48.0"
1994source = "registry+https://github.com/rust-lang/crates.io-index"
1995checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1"
1894 1996
1895[[package]] 1997[[package]]
1896name = "windows_x86_64_gnullvm" 1998name = "windows_x86_64_gnullvm"
1897version = "0.42.1" 1999version = "0.42.2"
1898source = "registry+https://github.com/rust-lang/crates.io-index" 2000source = "registry+https://github.com/rust-lang/crates.io-index"
1899checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" 2001checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"
2002
2003[[package]]
2004name = "windows_x86_64_gnullvm"
2005version = "0.48.0"
2006source = "registry+https://github.com/rust-lang/crates.io-index"
2007checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953"
2008
2009[[package]]
2010name = "windows_x86_64_msvc"
2011version = "0.42.2"
2012source = "registry+https://github.com/rust-lang/crates.io-index"
2013checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"
1900 2014
1901[[package]] 2015[[package]]
1902name = "windows_x86_64_msvc" 2016name = "windows_x86_64_msvc"
1903version = "0.42.1" 2017version = "0.48.0"
1904source = "registry+https://github.com/rust-lang/crates.io-index" 2018source = "registry+https://github.com/rust-lang/crates.io-index"
1905checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" 2019checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a"
1906 2020
1907[[package]] 2021[[package]]
1908name = "winreg" 2022name = "winreg"
@@ -1934,11 +2048,11 @@ dependencies = [
1934 2048
1935[[package]] 2049[[package]]
1936name = "youtube-tui" 2050name = "youtube-tui"
1937version = "0.7.0" 2051version = "0.7.1"
1938dependencies = [ 2052dependencies = [
1939 "chrono", 2053 "chrono",
1940 "clipboard", 2054 "clipboard",
1941 "crossterm 0.26.0", 2055 "crossterm 0.26.1",
1942 "dyn-clone", 2056 "dyn-clone",
1943 "futures", 2057 "futures",
1944 "home", 2058 "home",
@@ -1956,9 +2070,9 @@ dependencies = [
1956 2070
1957[[package]] 2071[[package]]
1958name = "zune-inflate" 2072name = "zune-inflate"
1959version = "0.2.50" 2073version = "0.2.53"
1960source = "registry+https://github.com/rust-lang/crates.io-index" 2074source = "registry+https://github.com/rust-lang/crates.io-index"
1961checksum = "589245df6230839c305984dcc0a8385cc72af1fd223f360ffd5d65efa4216d40" 2075checksum = "440a08fd59c6442e4b846ea9b10386c38307eae728b216e1ab2c305d1c9daaf8"
1962dependencies = [ 2076dependencies = [
1963 "simd-adler32", 2077 "simd-adler32",
1964] 2078]
Cargo.toml +1 −1
@@ -1,6 +1,6 @@
1[package] 1[package]
2name = "youtube-tui" 2name = "youtube-tui"
3version = "0.7.0" 3version = "0.7.1"
4authors = ["Siriusmart <siriusmart@tuta.io>"] 4authors = ["Siriusmart <siriusmart@tuta.io>"]
5edition = "2021" 5edition = "2021"
6description = "An aesthetically pleasing YouTube TUI written in Rust" 6description = "An aesthetically pleasing YouTube TUI written in Rust"
docs/src/README.md +5 −3
@@ -31,13 +31,13 @@ env:
31 31
32Anything from layouts to colours and keybindings can be customised, more on that later. 32Anything from layouts to colours and keybindings can be customised, more on that later.
33 33
34## ~~Dependency-free~~ 34## Dependency-free*
35 35
36> Clipboard need to be put as an optional feature before before calling dependency-free, for now `libxcb` is a required dependency. 36<sub>See [installation#features](./installation.md#features) for more info on dependencies.</sub>
37 37
38The YouTube TUI does not work on its own, it is instead like a _TUI frontend_ for programs like `mpv` or `yt-dlp`/`youtube-dl`. 38The YouTube TUI does not work on its own, it is instead like a _TUI frontend_ for programs like `mpv` or `yt-dlp`/`youtube-dl`.
39 39
40However, the programs to launch can be changed, and therefore ~~the YouTube TUI <u>does not rely on any specific dependencies</u> to run~~. 40However, the programs to launch can be changed, and therefore the YouTube TUI <u>does not rely on any specific dependencies</u> to run.
41 41
42![](./images/custom-dependencies-showcase.png) 42![](./images/custom-dependencies-showcase.png)
43 43
@@ -60,6 +60,8 @@ It also includes features like:
60### What it doesn't have 60### What it doesn't have
61 61
62- Subscriptions (first priority) 62- Subscriptions (first priority)
63- Clipboard feature that does not depend on the `clipboard` feature
64- Up arrow command history + Ctrl arrow keys move between words
63 65
64## How to contribute 66## How to contribute
65 67
docs/src/changelogs.md +12 −2
@@ -1,14 +1,24 @@
1# Changelogs 1# Changelogs
2 2
3## v0.7.0 3## v0.7.1
4 4
5### Added 5### Added
6 6
7- Options for config loading. (`write_config` in `main.yml`)
8
9### Fixed
10
11- Fixed crashing when launching without permissions to write to config files (<a href="https://github.com/Siriusmart/youtube-tui/issues/29" target=_blank>issue 29</a>)
12
13### v0.7.0
14
15#### Added
16
7- File system based caching 17- File system based caching
8- Bookmark library 18- Bookmark library
9- Save video/playlists for offline viewing 19- Save video/playlists for offline viewing
10 20
11### Fixed 21#### Fixed
12 22
13- Empty ItemList crash (<a href="https://github.com/Siriusmart/youtube-tui/issues/26" target=_blank>issue 26</a>) 23- Empty ItemList crash (<a href="https://github.com/Siriusmart/youtube-tui/issues/26" target=_blank>issue 26</a>)
14 24
docs/src/commands.md +3
@@ -41,12 +41,15 @@ reload configs (alt `reload/r config/configs`)
41flush 41flush
42quit (alt `q`, `exit`, `x`) 42quit (alt `q`, `exit`, `x`)
43run [command] 43run [command]
44parrun [command]
44``` 45```
45 46
46> The `flush` command is used to run all tasks in queue immediately, this is usually done automatically. 47> The `flush` command is used to run all tasks in queue immediately, this is usually done automatically.
47> 48>
48> But for when tasks are stacked up in the *same* event loop and the order of which they are executed matters, this command can be used to force the already stacked up commands to be ran first. 49> But for when tasks are stacked up in the *same* event loop and the order of which they are executed matters, this command can be used to force the already stacked up commands to be ran first.
49 50
51> `run` is used for running *blocking commands*, while `parrun` is non-blocking.
52
50## Library 53## Library
51 54
52```vim 55```vim
docs/src/config/main.md +17 −2
@@ -6,7 +6,8 @@ The main config file is located in `~/.config/youtube-tui/main.yml`.
6 6
7```yaml 7```yaml
8mouse_support: true 8mouse_support: true
9invidious_instance: https://vid.puffyan.us 9invidious_instance: https://y.com.sb
10write_config: Try
10max_watch_history: 50 11max_watch_history: 50
11allow_unicode: false 12allow_unicode: false
12message_bar_default: All good :) 13message_bar_default: All good :)
@@ -36,7 +37,21 @@ Whether mouse click events are supports, if `false` then mouse will not do anyth
36The Invidious instance you want to use, a full list of Invidious instances can be found here <a href="https://api.invidious.io" target=_blank>*here*</a>. 37The Invidious instance you want to use, a full list of Invidious instances can be found here <a href="https://api.invidious.io" target=_blank>*here*</a>.
37 38
38*Accept: string of a valid url to an Invidious instance* 39*Accept: string of a valid url to an Invidious instance*
39 40
41### write_config
42
43Whether to write to config after every read, this allows for auto-formatting the config files, as well as removing any error/deprecated options and adding new options.
44
45|write_config|Description|
46|---|---|
47|`Must`|Always write to config, panics if failed.|
48|`Try`|Tries to write to config, continues if failed.|
49|`Dont`|Don't write to config at all|
50
51> `main.yml` is a loaded with `Try` no matter what.
52
53*Accept: `Must`/`Try`/`Dont`*
54
40### max_watch_history 55### max_watch_history
41 56
42The maximum length that the watch history can hold, a value higher will record more items, but will also result in a larger file size in storage. 57The maximum length that the watch history can hold, a value higher will record more items, but will also result in a larger file size in storage.
docs/src/installation.md +7 −1
@@ -57,7 +57,7 @@ The TUI has features that can be enabled/disabled when compiling.
57cargo install youtube-tui # install with all default features 57cargo install youtube-tui # install with all default features
58cargo install youtube-tui --no-default-features # install without any features enabled 58cargo install youtube-tui --no-default-features # install without any features enabled
59cargo install youtube-tui --no-default-features -F 'halfblock' # install with only HalfBlocks support (but not Sixels) 59cargo install youtube-tui --no-default-features -F 'halfblock' # install with only HalfBlocks support (but not Sixels)
60cargo install youtube-tui --no-default-features -F 'halfblock' -F 'sixel' # can install with multiple features by doing this 60cargo install youtube-tui --no-default-features -F 'clipboard' -F 'sixel' # can install with multiple features by doing this
61cargo install youtube-tui --all-features # install with all features (even if not included in default) 61cargo install youtube-tui --all-features # install with all features (even if not included in default)
62``` 62```
63 63
@@ -72,3 +72,9 @@ Display images with Sixels, allows the display of images at full definition. Not
72Enabling this will also enable `halfblock`. 72Enabling this will also enable `halfblock`.
73 73
74Requires <a href="https://github.com/saitoha/libsixel" target=_blank>`libsixel`</a>. 74Requires <a href="https://github.com/saitoha/libsixel" target=_blank>`libsixel`</a>.
75
76### `clipboard` (default)
77
78Allows clipboard pasting in commands and search bar.
79
80Requires <a href="https://xcb.freedesktop.org/" target=_blank>`libxcb`</a>.
src/config/appearance.rs +4 −2
@@ -9,6 +9,8 @@ use std::{
9use tui::{style::Color, widgets::BorderType}; 9use tui::{style::Color, widgets::BorderType};
10use typemap::Key; 10use typemap::Key;
11 11
12use super::WriteConfig;
13
12/// `appearance.yml`, impl serde version of AppearanceConfig 14/// `appearance.yml`, impl serde version of AppearanceConfig
13#[derive(Default, Serialize, Deserialize, Clone)] 15#[derive(Default, Serialize, Deserialize, Clone)]
14pub struct AppearanceConfigSerde { 16pub struct AppearanceConfigSerde {
@@ -27,8 +29,8 @@ pub struct AppearanceConfig {
27 29
28impl AppearanceConfig { 30impl AppearanceConfig {
29 /// generates a new file if the original one is invalid 31 /// generates a new file if the original one is invalid
30 pub fn load() -> Result<Self, Box<dyn Error>> { 32 pub fn load(write: WriteConfig) -> Result<Self, Box<dyn Error>> {
31 let serde = *AppearanceConfigSerde::load()?; 33 let serde = *AppearanceConfigSerde::load(write)?;
32 let try_into = Self::from(serde); 34 let try_into = Self::from(serde);
33 35
34 // check if it be converted from `AppearanceConfigSerde` to `AppearanceConfig` 36 // check if it be converted from `AppearanceConfigSerde` to `AppearanceConfig`
src/config/keybindings.rs +6 −3
@@ -1,4 +1,7 @@
1use super::serde::{KeyCodeSerde, KeyVariantsSerde}; 1use super::{
2 serde::{KeyCodeSerde, KeyVariantsSerde},
3 WriteConfig,
4};
2use crate::global::{ 5use crate::global::{
3 structs::KeyAction, 6 structs::KeyAction,
4 traits::{ConfigTrait, EXTENSION}, 7 traits::{ConfigTrait, EXTENSION},
@@ -133,8 +136,8 @@ impl KeyBindingsConfigSerde {
133 136
134impl KeyBindingsConfig { 137impl KeyBindingsConfig {
135 /// generates a new file if the original one is invalid 138 /// generates a new file if the original one is invalid
136 pub fn load() -> Result<Self, Box<dyn Error>> { 139 pub fn load(write: WriteConfig) -> Result<Self, Box<dyn Error>> {
137 let serde = *KeyBindingsConfigSerde::load()?; 140 let serde = *KeyBindingsConfigSerde::load(write)?;
138 // check if it be converted from `KeyBindingsConfigSerde` to `KeyBindingsConfig` 141 // check if it be converted from `KeyBindingsConfigSerde` to `KeyBindingsConfig`
139 let try_into = serde.into(); 142 let try_into = serde.into();
140 143
src/config/main.rs +15 −1
@@ -10,6 +10,8 @@ pub struct MainConfig {
10 pub mouse_support: bool, 10 pub mouse_support: bool,
11 #[serde(default = "invidious_instance_default")] 11 #[serde(default = "invidious_instance_default")]
12 pub invidious_instance: String, 12 pub invidious_instance: String,
13 #[serde(default = "write_to_config_default")]
14 pub write_config: WriteConfig,
13 #[serde(default = "max_watch_history_default")] 15 #[serde(default = "max_watch_history_default")]
14 pub max_watch_history: usize, 16 pub max_watch_history: usize,
15 #[serde(default = "allow_unicode_default")] 17 #[serde(default = "allow_unicode_default")]
@@ -40,6 +42,7 @@ impl Key for MainConfig {
40impl Default for MainConfig { 42impl Default for MainConfig {
41 fn default() -> Self { 43 fn default() -> Self {
42 Self { 44 Self {
45 write_config: write_to_config_default(),
43 mouse_support: mouse_support_default(), 46 mouse_support: mouse_support_default(),
44 invidious_instance: invidious_instance_default(), 47 invidious_instance: invidious_instance_default(),
45 max_watch_history: max_watch_history_default(), 48 max_watch_history: max_watch_history_default(),
@@ -85,6 +88,13 @@ pub enum Provider {
85 Invidious, 88 Invidious,
86} 89}
87 90
91#[derive(Clone, Copy, Serialize, Deserialize, PartialEq, Eq)]
92pub enum WriteConfig {
93 Must,
94 Try,
95 Dont,
96}
97
88impl Provider { 98impl Provider {
89 pub fn as_str(&self) -> &str { 99 pub fn as_str(&self) -> &str {
90 match self { 100 match self {
@@ -104,7 +114,7 @@ impl Provider {
104// default functions 114// default functions
105 115
106fn invidious_instance_default() -> String { 116fn invidious_instance_default() -> String {
107 String::from("https://vid.puffyan.us") 117 String::from("https://y.com.sb")
108} 118}
109 119
110fn message_bar_default_default() -> String { 120fn message_bar_default_default() -> String {
@@ -139,6 +149,10 @@ const fn mouse_support_default() -> bool {
139 true 149 true
140} 150}
141 151
152const fn write_to_config_default() -> WriteConfig {
153 WriteConfig::Try
154}
155
142fn default_env() -> HashMap<String, String> { 156fn default_env() -> HashMap<String, String> {
143 HashMap::from([ 157 HashMap::from([
144 (String::from("video-player"), String::from("mpv")), 158 (String::from("video-player"), String::from("mpv")),
src/exit.rs +3 −6
@@ -9,12 +9,9 @@ use crate::global::{structs::WatchHistory, traits::Collection};
9// - move thumbnails of videos in watch history to `~/.local/share/youtube-tui/watch_history/thumbnails` 9// - move thumbnails of videos in watch history to `~/.local/share/youtube-tui/watch_history/thumbnails`
10// - remove `~/.cache` 10// - remove `~/.cache`
11pub fn exit(framework: &Framework) -> Result<(), Box<dyn Error>> { 11pub fn exit(framework: &Framework) -> Result<(), Box<dyn Error>> {
12 framework 12 if let Some(history) = framework.data.global.get::<WatchHistory>() {
13 .data 13 history.exit_move()
14 .global 14 }
15 .get::<WatchHistory>()
16 .unwrap()
17 .exit_move();
18 15
19 let home_dir = home_dir().unwrap(); 16 let home_dir = home_dir().unwrap();
20 let cache_path = home_dir.join(".cache/youtube-tui/"); 17 let cache_path = home_dir.join(".cache/youtube-tui/");
src/global/traits/configtrait.rs +24 −7
@@ -6,13 +6,15 @@ use std::{
6 io::Write, 6 io::Write,
7}; 7};
8 8
9use crate::config::WriteConfig;
10
9pub const EXTENSION: &str = "yml"; 11pub const EXTENSION: &str = "yml";
10 12
11/// Trait for loading, saving config files 13/// Trait for loading, saving config files
12pub trait ConfigTrait { 14pub trait ConfigTrait {
13 const LABEL: &'static str; 15 const LABEL: &'static str;
14 16
15 fn load() -> Result<Box<Self>, Box<dyn Error>> 17 fn load(write: WriteConfig) -> Result<Box<Self>, Box<dyn Error>>
16 where 18 where
17 Self: Serialize + DeserializeOwned + Default + Clone, 19 Self: Serialize + DeserializeOwned + Default + Clone,
18 { 20 {
@@ -51,13 +53,28 @@ pub trait ConfigTrait {
51 53
52 // Overwrites the old config file with added options (if any), 54 // Overwrites the old config file with added options (if any),
53 // but it also removes things like comments in the old config file 55 // but it also removes things like comments in the old config file
54 let mut file = OpenOptions::new()
55 .write(true)
56 .create(true)
57 .truncate(true)
58 .open(&config_path)?;
59 56
60 file.write_all(serde_yaml::to_string(&config)?.as_bytes())?; 57 match write {
58 WriteConfig::Must => {
59 let mut file = OpenOptions::new()
60 .write(true)
61 .create(true)
62 .truncate(true)
63 .open(&config_path)?;
64 file.write_all(serde_yaml::to_string(&config)?.as_bytes())?
65 }
66 WriteConfig::Try => {
67 if let Ok(mut file) = OpenOptions::new()
68 .write(true)
69 .create(true)
70 .truncate(true)
71 .open(&config_path)
72 {
73 let _ = file.write_all(serde_yaml::to_string(&config)?.as_bytes());
74 }
75 }
76 WriteConfig::Dont => {}
77 }
61 78
62 Ok(Box::new(config)) 79 Ok(Box::new(config))
63 } 80 }
src/init.rs +16 −10
@@ -37,7 +37,7 @@ pub fn init(
37 37
38 init_move(); 38 init_move();
39 39
40 load_configs(&mut framework.split_clean().0).ok(); 40 load_configs(&mut framework.split_clean().0)?;
41 41
42 framework 42 framework
43 .data 43 .data
@@ -90,7 +90,7 @@ pub fn load_configs(framework: &mut FrameworkClean) -> Result<(), Box<dyn Error>
90 } 90 }
91 91
92 // inserting data 92 // inserting data
93 let main_config = *MainConfig::load()?; 93 let main_config = *MainConfig::load(WriteConfig::Try)?;
94 94
95 framework 95 framework
96 .data 96 .data
@@ -99,25 +99,31 @@ pub fn load_configs(framework: &mut FrameworkClean) -> Result<(), Box<dyn Error>
99 framework 99 framework
100 .data 100 .data
101 .global 101 .global
102 .insert::<CommandsConfig>(CommandsConfig::from(*CommandsConfigSerde::load()?)); 102 .insert::<CommandsConfig>(CommandsConfig::from(*CommandsConfigSerde::load(
103 main_config.write_config,
104 )?));
103 framework 105 framework
104 .data 106 .data
105 .global 107 .global
106 .insert::<AppearanceConfig>(AppearanceConfig::load()?); 108 .insert::<AppearanceConfig>(AppearanceConfig::load(main_config.write_config)?);
107 framework.data.global.insert::<MainConfig>(main_config);
108 framework 109 framework
109 .data 110 .data
110 .global 111 .global
111 .insert::<PagesConfig>(*PagesConfig::load()?); 112 .insert::<PagesConfig>(*PagesConfig::load(main_config.write_config)?);
112 framework 113 framework
113 .data 114 .data
114 .global 115 .global
115 .insert::<KeyBindingsConfig>(KeyBindingsConfig::load()?); 116 .insert::<KeyBindingsConfig>(KeyBindingsConfig::load(main_config.write_config)?);
117 framework.data.global.insert::<CommandBindings>(
118 (*CommandBindingsSerde::load(main_config.write_config)?)
119 .into()
120 .unwrap(),
121 );
116 framework 122 framework
117 .data 123 .data
118 .global 124 .state
119 .insert::<CommandBindings>((*CommandBindingsSerde::load()?).into().unwrap()); 125 .insert::<Search>(*Search::load(main_config.write_config)?);
120 framework.data.state.insert::<Search>(*Search::load()?); 126 framework.data.global.insert::<MainConfig>(main_config);
121 127
122 Ok(()) 128 Ok(())
123} 129}