neon_arch commited on
Commit
1bccffc
1 Parent(s): ff79c1f

✨ feat: add async_trait crate

Browse files
Files changed (2) hide show
  1. Cargo.lock +263 -10
  2. Cargo.toml +1 -0
Cargo.lock CHANGED
@@ -268,6 +268,18 @@ dependencies = [
268
  "alloc-no-stdlib",
269
  ]
270
 
 
 
 
 
 
 
 
 
 
 
 
 
271
  [[package]]
272
  name = "anyhow"
273
  version = "1.0.71"
@@ -280,6 +292,17 @@ version = "0.10.3"
280
  source = "registry+https://github.com/rust-lang/crates.io-index"
281
  checksum = "619743e34b5ba4e9703bba34deac3427c72507c7159f5fd030aea8cac0cfe341"
282
 
 
 
 
 
 
 
 
 
 
 
 
283
  [[package]]
284
  name = "autocfg"
285
  version = "0.1.8"
@@ -423,6 +446,12 @@ dependencies = [
423
  "bytes 1.4.0",
424
  ]
425
 
 
 
 
 
 
 
426
  [[package]]
427
  name = "cc"
428
  version = "1.0.79"
@@ -453,6 +482,59 @@ dependencies = [
453
  "envmnt",
454
  ]
455
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
456
  [[package]]
457
  name = "cloudabi"
458
  version = "0.0.3"
@@ -551,17 +633,74 @@ dependencies = [
551
  "cfg-if 1.0.0",
552
  ]
553
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
554
  [[package]]
555
  name = "crossbeam-deque"
556
  version = "0.7.4"
557
  source = "registry+https://github.com/rust-lang/crates.io-index"
558
  checksum = "c20ff29ded3204c5106278a81a38f4b482636ed4fa1e6cfbeef193291beb29ed"
559
  dependencies = [
560
- "crossbeam-epoch",
561
- "crossbeam-utils",
562
  "maybe-uninit",
563
  ]
564
 
 
 
 
 
 
 
 
 
 
 
 
565
  [[package]]
566
  name = "crossbeam-epoch"
567
  version = "0.8.2"
@@ -570,10 +709,23 @@ checksum = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace"
570
  dependencies = [
571
  "autocfg 1.1.0",
572
  "cfg-if 0.1.10",
573
- "crossbeam-utils",
574
  "lazy_static",
575
  "maybe-uninit",
576
- "memoffset",
 
 
 
 
 
 
 
 
 
 
 
 
 
577
  "scopeguard",
578
  ]
579
 
@@ -584,7 +736,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
584
  checksum = "774ba60a54c213d409d5353bda12d49cd68d14e45036a285234c8d6f91f92570"
585
  dependencies = [
586
  "cfg-if 0.1.10",
587
- "crossbeam-utils",
588
  "maybe-uninit",
589
  ]
590
 
@@ -599,6 +751,15 @@ dependencies = [
599
  "lazy_static",
600
  ]
601
 
 
 
 
 
 
 
 
 
 
602
  [[package]]
603
  name = "crypto-common"
604
  version = "0.1.6"
@@ -1023,6 +1184,12 @@ dependencies = [
1023
  "tracing",
1024
  ]
1025
 
 
 
 
 
 
 
1026
  [[package]]
1027
  name = "handlebars"
1028
  version = "4.3.7"
@@ -1325,6 +1492,15 @@ dependencies = [
1325
  "windows-sys 0.48.0",
1326
  ]
1327
 
 
 
 
 
 
 
 
 
 
1328
  [[package]]
1329
  name = "itoa"
1330
  version = "0.4.8"
@@ -1502,6 +1678,15 @@ dependencies = [
1502
  "autocfg 1.1.0",
1503
  ]
1504
 
 
 
 
 
 
 
 
 
 
1505
  [[package]]
1506
  name = "mime"
1507
  version = "0.3.17"
@@ -1660,6 +1845,12 @@ version = "1.18.0"
1660
  source = "registry+https://github.com/rust-lang/crates.io-index"
1661
  checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
1662
 
 
 
 
 
 
 
1663
  [[package]]
1664
  name = "openssl"
1665
  version = "0.10.54"
@@ -1963,6 +2154,34 @@ version = "0.3.27"
1963
  source = "registry+https://github.com/rust-lang/crates.io-index"
1964
  checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
1965
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1966
  [[package]]
1967
  name = "ppv-lite86"
1968
  version = "0.2.17"
@@ -2214,6 +2433,28 @@ dependencies = [
2214
  "rand_core 0.3.1",
2215
  ]
2216
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2217
  [[package]]
2218
  name = "rdrand"
2219
  version = "0.4.0"
@@ -2893,6 +3134,16 @@ dependencies = [
2893
  "time-core",
2894
  ]
2895
 
 
 
 
 
 
 
 
 
 
 
2896
  [[package]]
2897
  name = "tinyvec"
2898
  version = "1.6.0"
@@ -2973,7 +3224,7 @@ version = "0.1.10"
2973
  source = "registry+https://github.com/rust-lang/crates.io-index"
2974
  checksum = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671"
2975
  dependencies = [
2976
- "crossbeam-utils",
2977
  "futures",
2978
  ]
2979
 
@@ -3015,7 +3266,7 @@ version = "0.1.12"
3015
  source = "registry+https://github.com/rust-lang/crates.io-index"
3016
  checksum = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351"
3017
  dependencies = [
3018
- "crossbeam-utils",
3019
  "futures",
3020
  "lazy_static",
3021
  "log",
@@ -3058,9 +3309,9 @@ version = "0.1.18"
3058
  source = "registry+https://github.com/rust-lang/crates.io-index"
3059
  checksum = "df720b6581784c118f0eb4310796b12b1d242a7eb95f716a8367855325c25f89"
3060
  dependencies = [
3061
- "crossbeam-deque",
3062
  "crossbeam-queue",
3063
- "crossbeam-utils",
3064
  "futures",
3065
  "lazy_static",
3066
  "log",
@@ -3075,7 +3326,7 @@ version = "0.2.13"
3075
  source = "registry+https://github.com/rust-lang/crates.io-index"
3076
  checksum = "93044f2d313c95ff1cb7809ce9a7a05735b012288a888b62d4434fd58c94f296"
3077
  dependencies = [
3078
- "crossbeam-utils",
3079
  "futures",
3080
  "slab",
3081
  "tokio-executor",
@@ -3385,6 +3636,8 @@ version = "0.13.0"
3385
  dependencies = [
3386
  "actix-files",
3387
  "actix-web",
 
 
3388
  "env_logger",
3389
  "error-stack",
3390
  "fake-useragent",
 
268
  "alloc-no-stdlib",
269
  ]
270
 
271
+ [[package]]
272
+ name = "anes"
273
+ version = "0.1.6"
274
+ source = "registry+https://github.com/rust-lang/crates.io-index"
275
+ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
276
+
277
+ [[package]]
278
+ name = "anstyle"
279
+ version = "1.0.1"
280
+ source = "registry+https://github.com/rust-lang/crates.io-index"
281
+ checksum = "3a30da5c5f2d5e72842e00bcb57657162cdabef0931f40e2deb9b4140440cecd"
282
+
283
  [[package]]
284
  name = "anyhow"
285
  version = "1.0.71"
 
292
  source = "registry+https://github.com/rust-lang/crates.io-index"
293
  checksum = "619743e34b5ba4e9703bba34deac3427c72507c7159f5fd030aea8cac0cfe341"
294
 
295
+ [[package]]
296
+ name = "async-trait"
297
+ version = "0.1.68"
298
+ source = "registry+https://github.com/rust-lang/crates.io-index"
299
+ checksum = "b9ccdd8f2a161be9bd5c023df56f1b2a0bd1d83872ae53b71a84a12c9bf6e842"
300
+ dependencies = [
301
+ "proc-macro2 1.0.60",
302
+ "quote 1.0.28",
303
+ "syn 2.0.18",
304
+ ]
305
+
306
  [[package]]
307
  name = "autocfg"
308
  version = "0.1.8"
 
446
  "bytes 1.4.0",
447
  ]
448
 
449
+ [[package]]
450
+ name = "cast"
451
+ version = "0.3.0"
452
+ source = "registry+https://github.com/rust-lang/crates.io-index"
453
+ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
454
+
455
  [[package]]
456
  name = "cc"
457
  version = "1.0.79"
 
482
  "envmnt",
483
  ]
484
 
485
+ [[package]]
486
+ name = "ciborium"
487
+ version = "0.2.1"
488
+ source = "registry+https://github.com/rust-lang/crates.io-index"
489
+ checksum = "effd91f6c78e5a4ace8a5d3c0b6bfaec9e2baaef55f3efc00e45fb2e477ee926"
490
+ dependencies = [
491
+ "ciborium-io",
492
+ "ciborium-ll",
493
+ "serde",
494
+ ]
495
+
496
+ [[package]]
497
+ name = "ciborium-io"
498
+ version = "0.2.1"
499
+ source = "registry+https://github.com/rust-lang/crates.io-index"
500
+ checksum = "cdf919175532b369853f5d5e20b26b43112613fd6fe7aee757e35f7a44642656"
501
+
502
+ [[package]]
503
+ name = "ciborium-ll"
504
+ version = "0.2.1"
505
+ source = "registry+https://github.com/rust-lang/crates.io-index"
506
+ checksum = "defaa24ecc093c77630e6c15e17c51f5e187bf35ee514f4e2d67baaa96dae22b"
507
+ dependencies = [
508
+ "ciborium-io",
509
+ "half",
510
+ ]
511
+
512
+ [[package]]
513
+ name = "clap"
514
+ version = "4.3.8"
515
+ source = "registry+https://github.com/rust-lang/crates.io-index"
516
+ checksum = "d9394150f5b4273a1763355bd1c2ec54cc5a2593f790587bcd6b2c947cfa9211"
517
+ dependencies = [
518
+ "clap_builder",
519
+ ]
520
+
521
+ [[package]]
522
+ name = "clap_builder"
523
+ version = "4.3.8"
524
+ source = "registry+https://github.com/rust-lang/crates.io-index"
525
+ checksum = "9a78fbdd3cc2914ddf37ba444114bc7765bbdcb55ec9cbe6fa054f0137400717"
526
+ dependencies = [
527
+ "anstyle",
528
+ "bitflags",
529
+ "clap_lex",
530
+ ]
531
+
532
+ [[package]]
533
+ name = "clap_lex"
534
+ version = "0.5.0"
535
+ source = "registry+https://github.com/rust-lang/crates.io-index"
536
+ checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b"
537
+
538
  [[package]]
539
  name = "cloudabi"
540
  version = "0.0.3"
 
633
  "cfg-if 1.0.0",
634
  ]
635
 
636
+ [[package]]
637
+ name = "criterion"
638
+ version = "0.5.1"
639
+ source = "registry+https://github.com/rust-lang/crates.io-index"
640
+ checksum = "f2b12d017a929603d80db1831cd3a24082f8137ce19c69e6447f54f5fc8d692f"
641
+ dependencies = [
642
+ "anes",
643
+ "cast",
644
+ "ciborium",
645
+ "clap",
646
+ "criterion-plot",
647
+ "is-terminal",
648
+ "itertools",
649
+ "num-traits",
650
+ "once_cell",
651
+ "oorandom",
652
+ "plotters",
653
+ "rayon",
654
+ "regex",
655
+ "serde",
656
+ "serde_derive",
657
+ "serde_json",
658
+ "tinytemplate",
659
+ "walkdir",
660
+ ]
661
+
662
+ [[package]]
663
+ name = "criterion-plot"
664
+ version = "0.5.0"
665
+ source = "registry+https://github.com/rust-lang/crates.io-index"
666
+ checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1"
667
+ dependencies = [
668
+ "cast",
669
+ "itertools",
670
+ ]
671
+
672
+ [[package]]
673
+ name = "crossbeam-channel"
674
+ version = "0.5.8"
675
+ source = "registry+https://github.com/rust-lang/crates.io-index"
676
+ checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200"
677
+ dependencies = [
678
+ "cfg-if 1.0.0",
679
+ "crossbeam-utils 0.8.16",
680
+ ]
681
+
682
  [[package]]
683
  name = "crossbeam-deque"
684
  version = "0.7.4"
685
  source = "registry+https://github.com/rust-lang/crates.io-index"
686
  checksum = "c20ff29ded3204c5106278a81a38f4b482636ed4fa1e6cfbeef193291beb29ed"
687
  dependencies = [
688
+ "crossbeam-epoch 0.8.2",
689
+ "crossbeam-utils 0.7.2",
690
  "maybe-uninit",
691
  ]
692
 
693
+ [[package]]
694
+ name = "crossbeam-deque"
695
+ version = "0.8.3"
696
+ source = "registry+https://github.com/rust-lang/crates.io-index"
697
+ checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef"
698
+ dependencies = [
699
+ "cfg-if 1.0.0",
700
+ "crossbeam-epoch 0.9.15",
701
+ "crossbeam-utils 0.8.16",
702
+ ]
703
+
704
  [[package]]
705
  name = "crossbeam-epoch"
706
  version = "0.8.2"
 
709
  dependencies = [
710
  "autocfg 1.1.0",
711
  "cfg-if 0.1.10",
712
+ "crossbeam-utils 0.7.2",
713
  "lazy_static",
714
  "maybe-uninit",
715
+ "memoffset 0.5.6",
716
+ "scopeguard",
717
+ ]
718
+
719
+ [[package]]
720
+ name = "crossbeam-epoch"
721
+ version = "0.9.15"
722
+ source = "registry+https://github.com/rust-lang/crates.io-index"
723
+ checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7"
724
+ dependencies = [
725
+ "autocfg 1.1.0",
726
+ "cfg-if 1.0.0",
727
+ "crossbeam-utils 0.8.16",
728
+ "memoffset 0.9.0",
729
  "scopeguard",
730
  ]
731
 
 
736
  checksum = "774ba60a54c213d409d5353bda12d49cd68d14e45036a285234c8d6f91f92570"
737
  dependencies = [
738
  "cfg-if 0.1.10",
739
+ "crossbeam-utils 0.7.2",
740
  "maybe-uninit",
741
  ]
742
 
 
751
  "lazy_static",
752
  ]
753
 
754
+ [[package]]
755
+ name = "crossbeam-utils"
756
+ version = "0.8.16"
757
+ source = "registry+https://github.com/rust-lang/crates.io-index"
758
+ checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294"
759
+ dependencies = [
760
+ "cfg-if 1.0.0",
761
+ ]
762
+
763
  [[package]]
764
  name = "crypto-common"
765
  version = "0.1.6"
 
1184
  "tracing",
1185
  ]
1186
 
1187
+ [[package]]
1188
+ name = "half"
1189
+ version = "1.8.2"
1190
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1191
+ checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7"
1192
+
1193
  [[package]]
1194
  name = "handlebars"
1195
  version = "4.3.7"
 
1492
  "windows-sys 0.48.0",
1493
  ]
1494
 
1495
+ [[package]]
1496
+ name = "itertools"
1497
+ version = "0.10.5"
1498
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1499
+ checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
1500
+ dependencies = [
1501
+ "either",
1502
+ ]
1503
+
1504
  [[package]]
1505
  name = "itoa"
1506
  version = "0.4.8"
 
1678
  "autocfg 1.1.0",
1679
  ]
1680
 
1681
+ [[package]]
1682
+ name = "memoffset"
1683
+ version = "0.9.0"
1684
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1685
+ checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c"
1686
+ dependencies = [
1687
+ "autocfg 1.1.0",
1688
+ ]
1689
+
1690
  [[package]]
1691
  name = "mime"
1692
  version = "0.3.17"
 
1845
  source = "registry+https://github.com/rust-lang/crates.io-index"
1846
  checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
1847
 
1848
+ [[package]]
1849
+ name = "oorandom"
1850
+ version = "11.1.3"
1851
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1852
+ checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575"
1853
+
1854
  [[package]]
1855
  name = "openssl"
1856
  version = "0.10.54"
 
2154
  source = "registry+https://github.com/rust-lang/crates.io-index"
2155
  checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
2156
 
2157
+ [[package]]
2158
+ name = "plotters"
2159
+ version = "0.3.5"
2160
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2161
+ checksum = "d2c224ba00d7cadd4d5c660deaf2098e5e80e07846537c51f9cfa4be50c1fd45"
2162
+ dependencies = [
2163
+ "num-traits",
2164
+ "plotters-backend",
2165
+ "plotters-svg",
2166
+ "wasm-bindgen",
2167
+ "web-sys",
2168
+ ]
2169
+
2170
+ [[package]]
2171
+ name = "plotters-backend"
2172
+ version = "0.3.5"
2173
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2174
+ checksum = "9e76628b4d3a7581389a35d5b6e2139607ad7c75b17aed325f210aa91f4a9609"
2175
+
2176
+ [[package]]
2177
+ name = "plotters-svg"
2178
+ version = "0.3.5"
2179
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2180
+ checksum = "38f6d39893cca0701371e3c27294f09797214b86f1fb951b89ade8ec04e2abab"
2181
+ dependencies = [
2182
+ "plotters-backend",
2183
+ ]
2184
+
2185
  [[package]]
2186
  name = "ppv-lite86"
2187
  version = "0.2.17"
 
2433
  "rand_core 0.3.1",
2434
  ]
2435
 
2436
+ [[package]]
2437
+ name = "rayon"
2438
+ version = "1.7.0"
2439
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2440
+ checksum = "1d2df5196e37bcc87abebc0053e20787d73847bb33134a69841207dd0a47f03b"
2441
+ dependencies = [
2442
+ "either",
2443
+ "rayon-core",
2444
+ ]
2445
+
2446
+ [[package]]
2447
+ name = "rayon-core"
2448
+ version = "1.11.0"
2449
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2450
+ checksum = "4b8f95bd6966f5c87776639160a66bd8ab9895d9d4ab01ddba9fc60661aebe8d"
2451
+ dependencies = [
2452
+ "crossbeam-channel",
2453
+ "crossbeam-deque 0.8.3",
2454
+ "crossbeam-utils 0.8.16",
2455
+ "num_cpus",
2456
+ ]
2457
+
2458
  [[package]]
2459
  name = "rdrand"
2460
  version = "0.4.0"
 
3134
  "time-core",
3135
  ]
3136
 
3137
+ [[package]]
3138
+ name = "tinytemplate"
3139
+ version = "1.2.1"
3140
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3141
+ checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc"
3142
+ dependencies = [
3143
+ "serde",
3144
+ "serde_json",
3145
+ ]
3146
+
3147
  [[package]]
3148
  name = "tinyvec"
3149
  version = "1.6.0"
 
3224
  source = "registry+https://github.com/rust-lang/crates.io-index"
3225
  checksum = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671"
3226
  dependencies = [
3227
+ "crossbeam-utils 0.7.2",
3228
  "futures",
3229
  ]
3230
 
 
3266
  source = "registry+https://github.com/rust-lang/crates.io-index"
3267
  checksum = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351"
3268
  dependencies = [
3269
+ "crossbeam-utils 0.7.2",
3270
  "futures",
3271
  "lazy_static",
3272
  "log",
 
3309
  source = "registry+https://github.com/rust-lang/crates.io-index"
3310
  checksum = "df720b6581784c118f0eb4310796b12b1d242a7eb95f716a8367855325c25f89"
3311
  dependencies = [
3312
+ "crossbeam-deque 0.7.4",
3313
  "crossbeam-queue",
3314
+ "crossbeam-utils 0.7.2",
3315
  "futures",
3316
  "lazy_static",
3317
  "log",
 
3326
  source = "registry+https://github.com/rust-lang/crates.io-index"
3327
  checksum = "93044f2d313c95ff1cb7809ce9a7a05735b012288a888b62d4434fd58c94f296"
3328
  dependencies = [
3329
+ "crossbeam-utils 0.7.2",
3330
  "futures",
3331
  "slab",
3332
  "tokio-executor",
 
3636
  dependencies = [
3637
  "actix-files",
3638
  "actix-web",
3639
+ "async-trait",
3640
+ "criterion",
3641
  "env_logger",
3642
  "error-stack",
3643
  "fake-useragent",
Cargo.toml CHANGED
@@ -24,6 +24,7 @@ md5 = {version="*"}
24
  rand={version="*"}
25
  once_cell = {version="*"}
26
  error-stack = {version="0.3.1"}
 
27
 
28
  [dev-dependencies]
29
  rusty-hook = "^0.11.2"
 
24
  rand={version="*"}
25
  once_cell = {version="*"}
26
  error-stack = {version="0.3.1"}
27
+ async-trait = {version="*"}
28
 
29
  [dev-dependencies]
30
  rusty-hook = "^0.11.2"