aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-08-23 06:09:17 +0100
committerAkshay <[email protected]>2020-08-23 06:09:17 +0100
commitf36a8fb2eee46cffa87213e070136e5f28194a16 (patch)
treeab36a70da752d34874900f2e3f06862403f74266
parent4c19a73fd1d21fb5d40cf15cb7312e37502bc03a (diff)
begin work on multipart requests
-rw-r--r--Cargo.lock396
-rw-r--r--Cargo.toml8
2 files changed, 278 insertions, 126 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 74c1be3..7e67cca 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,13 +1,10 @@
1# This file is automatically @generated by Cargo. 1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing. 2# It is not intended for manual editing.
3[[package]] 3[[package]]
4name = "aho-corasick" 4name = "anyhow"
5version = "0.7.13" 5version = "1.0.32"
6source = "registry+https://github.com/rust-lang/crates.io-index" 6source = "registry+https://github.com/rust-lang/crates.io-index"
7checksum = "043164d8ba5c4c3035fec9bbee8647c0261d788f3474306f93bb65901cae0e86" 7checksum = "6b602bfe940d21c130f3895acd65221e8a61270debe89d628b9cb4e3ccb8569b"
8dependencies = [
9 "memchr",
10]
11 8
12[[package]] 9[[package]]
13name = "arc-swap" 10name = "arc-swap"
@@ -16,17 +13,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
16checksum = "4d25d88fd6b8041580a654f9d0c581a047baee2b3efee13275f2fc392fc75034" 13checksum = "4d25d88fd6b8041580a654f9d0c581a047baee2b3efee13275f2fc392fc75034"
17 14
18[[package]] 15[[package]]
19name = "atty"
20version = "0.2.14"
21source = "registry+https://github.com/rust-lang/crates.io-index"
22checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
23dependencies = [
24 "hermit-abi",
25 "libc",
26 "winapi 0.3.9",
27]
28
29[[package]]
30name = "autocfg" 16name = "autocfg"
31version = "0.1.7" 17version = "0.1.7"
32source = "registry+https://github.com/rust-lang/crates.io-index" 18source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -39,12 +25,38 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
39checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" 25checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
40 26
41[[package]] 27[[package]]
28name = "base64"
29version = "0.9.3"
30source = "registry+https://github.com/rust-lang/crates.io-index"
31checksum = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643"
32dependencies = [
33 "byteorder",
34 "safemem",
35]
36
37[[package]]
42name = "bitflags" 38name = "bitflags"
43version = "1.2.1" 39version = "1.2.1"
44source = "registry+https://github.com/rust-lang/crates.io-index" 40source = "registry+https://github.com/rust-lang/crates.io-index"
45checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" 41checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
46 42
47[[package]] 43[[package]]
44name = "buf_redux"
45version = "0.8.4"
46source = "registry+https://github.com/rust-lang/crates.io-index"
47checksum = "b953a6887648bb07a535631f2bc00fbdb2a2216f135552cb3f534ed136b9c07f"
48dependencies = [
49 "memchr",
50 "safemem",
51]
52
53[[package]]
54name = "byteorder"
55version = "1.3.4"
56source = "registry+https://github.com/rust-lang/crates.io-index"
57checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
58
59[[package]]
48name = "bytes" 60name = "bytes"
49version = "0.5.6" 61version = "0.5.6"
50source = "registry+https://github.com/rust-lang/crates.io-index" 62source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -66,19 +78,6 @@ dependencies = [
66] 78]
67 79
68[[package]] 80[[package]]
69name = "env_logger"
70version = "0.7.1"
71source = "registry+https://github.com/rust-lang/crates.io-index"
72checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36"
73dependencies = [
74 "atty",
75 "humantime",
76 "log",
77 "regex",
78 "termcolor",
79]
80
81[[package]]
82name = "fallible-iterator" 81name = "fallible-iterator"
83version = "0.2.0" 82version = "0.2.0"
84source = "registry+https://github.com/rust-lang/crates.io-index" 83source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -134,18 +133,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
134checksum = "59f5fff90fd5d971f936ad674802482ba441b6f09ba5e15fd8b39145582ca399" 133checksum = "59f5fff90fd5d971f936ad674802482ba441b6f09ba5e15fd8b39145582ca399"
135 134
136[[package]] 135[[package]]
137name = "futures-macro"
138version = "0.3.5"
139source = "registry+https://github.com/rust-lang/crates.io-index"
140checksum = "d0b5a30a4328ab5473878237c447333c093297bded83a4983d10f4deea240d39"
141dependencies = [
142 "proc-macro-hack",
143 "proc-macro2",
144 "quote",
145 "syn",
146]
147
148[[package]]
149name = "futures-sink" 136name = "futures-sink"
150version = "0.3.5" 137version = "0.3.5"
151source = "registry+https://github.com/rust-lang/crates.io-index" 138source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -156,9 +143,6 @@ name = "futures-task"
156version = "0.3.5" 143version = "0.3.5"
157source = "registry+https://github.com/rust-lang/crates.io-index" 144source = "registry+https://github.com/rust-lang/crates.io-index"
158checksum = "bdb66b5f09e22019b1ab0830f7785bcea8e7a42148683f99214f73f8ec21a626" 145checksum = "bdb66b5f09e22019b1ab0830f7785bcea8e7a42148683f99214f73f8ec21a626"
159dependencies = [
160 "once_cell",
161]
162 146
163[[package]] 147[[package]]
164name = "futures-util" 148name = "futures-util"
@@ -167,13 +151,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
167checksum = "8764574ff08b701a084482c3c7031349104b07ac897393010494beaa18ce32c6" 151checksum = "8764574ff08b701a084482c3c7031349104b07ac897393010494beaa18ce32c6"
168dependencies = [ 152dependencies = [
169 "futures-core", 153 "futures-core",
170 "futures-macro",
171 "futures-task", 154 "futures-task",
172 "pin-project", 155 "pin-project",
173 "pin-utils", 156 "pin-utils",
174 "proc-macro-hack", 157]
175 "proc-macro-nested", 158
176 "slab", 159[[package]]
160name = "getrandom"
161version = "0.1.14"
162source = "registry+https://github.com/rust-lang/crates.io-index"
163checksum = "7abc8dd8451921606d809ba32e95b6111925cd2906060d2dcc29c070220503eb"
164dependencies = [
165 "cfg-if",
166 "libc",
167 "wasi",
177] 168]
178 169
179[[package]] 170[[package]]
@@ -208,13 +199,13 @@ dependencies = [
208name = "hedge" 199name = "hedge"
209version = "0.1.0" 200version = "0.1.0"
210dependencies = [ 201dependencies = [
211 "futures-util", 202 "anyhow",
212 "hyper", 203 "hyper 0.13.7",
204 "multipart",
213 "nanoid", 205 "nanoid",
214 "pretty_env_logger",
215 "rusqlite", 206 "rusqlite",
216 "tokio", 207 "tokio",
217 "url", 208 "url 2.1.1",
218] 209]
219 210
220[[package]] 211[[package]]
@@ -254,12 +245,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
254checksum = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" 245checksum = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9"
255 246
256[[package]] 247[[package]]
257name = "humantime" 248name = "hyper"
258version = "1.3.0" 249version = "0.10.16"
259source = "registry+https://github.com/rust-lang/crates.io-index" 250source = "registry+https://github.com/rust-lang/crates.io-index"
260checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" 251checksum = "0a0652d9a2609a968c14be1a9ea00bf4b1d64e2e1f53a1b51b6fff3a6e829273"
261dependencies = [ 252dependencies = [
262 "quick-error", 253 "base64",
254 "httparse",
255 "language-tags",
256 "log 0.3.9",
257 "mime 0.2.6",
258 "num_cpus",
259 "time",
260 "traitobject",
261 "typeable",
262 "unicase 1.4.2",
263 "url 1.7.2",
263] 264]
264 265
265[[package]] 266[[package]]
@@ -288,6 +289,17 @@ dependencies = [
288 289
289[[package]] 290[[package]]
290name = "idna" 291name = "idna"
292version = "0.1.5"
293source = "registry+https://github.com/rust-lang/crates.io-index"
294checksum = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e"
295dependencies = [
296 "matches",
297 "unicode-bidi",
298 "unicode-normalization",
299]
300
301[[package]]
302name = "idna"
291version = "0.2.0" 303version = "0.2.0"
292source = "registry+https://github.com/rust-lang/crates.io-index" 304source = "registry+https://github.com/rust-lang/crates.io-index"
293checksum = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9" 305checksum = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9"
@@ -333,6 +345,12 @@ dependencies = [
333] 345]
334 346
335[[package]] 347[[package]]
348name = "language-tags"
349version = "0.2.2"
350source = "registry+https://github.com/rust-lang/crates.io-index"
351checksum = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a"
352
353[[package]]
336name = "lazy_static" 354name = "lazy_static"
337version = "1.4.0" 355version = "1.4.0"
338source = "registry+https://github.com/rust-lang/crates.io-index" 356source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -362,6 +380,15 @@ checksum = "8dd5a6d5999d9907cda8ed67bbd137d3af8085216c2ac62de5be860bd41f304a"
362 380
363[[package]] 381[[package]]
364name = "log" 382name = "log"
383version = "0.3.9"
384source = "registry+https://github.com/rust-lang/crates.io-index"
385checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b"
386dependencies = [
387 "log 0.4.11",
388]
389
390[[package]]
391name = "log"
365version = "0.4.11" 392version = "0.4.11"
366source = "registry+https://github.com/rust-lang/crates.io-index" 393source = "registry+https://github.com/rust-lang/crates.io-index"
367checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b" 394checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b"
@@ -391,6 +418,31 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
391checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400" 418checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400"
392 419
393[[package]] 420[[package]]
421name = "mime"
422version = "0.2.6"
423source = "registry+https://github.com/rust-lang/crates.io-index"
424checksum = "ba626b8a6de5da682e1caa06bdb42a335aee5a84db8e5046a3e8ab17ba0a3ae0"
425dependencies = [
426 "log 0.3.9",
427]
428
429[[package]]
430name = "mime"
431version = "0.3.16"
432source = "registry+https://github.com/rust-lang/crates.io-index"
433checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
434
435[[package]]
436name = "mime_guess"
437version = "2.0.3"
438source = "registry+https://github.com/rust-lang/crates.io-index"
439checksum = "2684d4c2e97d99848d30b324b00c8fcc7e5c897b7cbb5819b09e7c90e8baf212"
440dependencies = [
441 "mime 0.3.16",
442 "unicase 2.6.0",
443]
444
445[[package]]
394name = "mio" 446name = "mio"
395version = "0.6.22" 447version = "0.6.22"
396source = "registry+https://github.com/rust-lang/crates.io-index" 448source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -402,7 +454,7 @@ dependencies = [
402 "iovec", 454 "iovec",
403 "kernel32-sys", 455 "kernel32-sys",
404 "libc", 456 "libc",
405 "log", 457 "log 0.4.11",
406 "miow 0.2.1", 458 "miow 0.2.1",
407 "net2", 459 "net2",
408 "slab", 460 "slab",
@@ -415,7 +467,7 @@ version = "0.1.7"
415source = "registry+https://github.com/rust-lang/crates.io-index" 467source = "registry+https://github.com/rust-lang/crates.io-index"
416checksum = "0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656" 468checksum = "0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656"
417dependencies = [ 469dependencies = [
418 "log", 470 "log 0.4.11",
419 "mio", 471 "mio",
420 "miow 0.3.5", 472 "miow 0.3.5",
421 "winapi 0.3.9", 473 "winapi 0.3.9",
@@ -455,12 +507,31 @@ dependencies = [
455] 507]
456 508
457[[package]] 509[[package]]
510name = "multipart"
511version = "0.17.0"
512source = "registry+https://github.com/rust-lang/crates.io-index"
513checksum = "8209c33c951f07387a8497841122fc6f712165e3f9bda3e6be4645b58188f676"
514dependencies = [
515 "buf_redux",
516 "httparse",
517 "hyper 0.10.16",
518 "log 0.4.11",
519 "mime 0.3.16",
520 "mime_guess",
521 "quick-error",
522 "rand 0.6.5",
523 "safemem",
524 "tempfile",
525 "twoway",
526]
527
528[[package]]
458name = "nanoid" 529name = "nanoid"
459version = "0.3.0" 530version = "0.3.0"
460source = "registry+https://github.com/rust-lang/crates.io-index" 531source = "registry+https://github.com/rust-lang/crates.io-index"
461checksum = "a6226bc4e142124cb44e309a37a04cd9bb10e740d8642855441d3b14808f635e" 532checksum = "a6226bc4e142124cb44e309a37a04cd9bb10e740d8642855441d3b14808f635e"
462dependencies = [ 533dependencies = [
463 "rand", 534 "rand 0.6.5",
464] 535]
465 536
466[[package]] 537[[package]]
@@ -485,10 +556,10 @@ dependencies = [
485] 556]
486 557
487[[package]] 558[[package]]
488name = "once_cell" 559name = "percent-encoding"
489version = "1.4.1" 560version = "1.0.1"
490source = "registry+https://github.com/rust-lang/crates.io-index" 561source = "registry+https://github.com/rust-lang/crates.io-index"
491checksum = "260e51e7efe62b592207e9e13a68e43692a7a279171d6ba57abd208bf23645ad" 562checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831"
492 563
493[[package]] 564[[package]]
494name = "percent-encoding" 565name = "percent-encoding"
@@ -535,26 +606,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
535checksum = "d36492546b6af1463394d46f0c834346f31548646f6ba10849802c9c9a27ac33" 606checksum = "d36492546b6af1463394d46f0c834346f31548646f6ba10849802c9c9a27ac33"
536 607
537[[package]] 608[[package]]
538name = "pretty_env_logger" 609name = "ppv-lite86"
539version = "0.4.0" 610version = "0.2.9"
540source = "registry+https://github.com/rust-lang/crates.io-index"
541checksum = "926d36b9553851b8b0005f1275891b392ee4d2d833852c417ed025477350fb9d"
542dependencies = [
543 "env_logger",
544 "log",
545]
546
547[[package]]
548name = "proc-macro-hack"
549version = "0.5.18"
550source = "registry+https://github.com/rust-lang/crates.io-index" 611source = "registry+https://github.com/rust-lang/crates.io-index"
551checksum = "99c605b9a0adc77b7211c6b1f722dcb613d68d66859a44f3d485a6da332b0598" 612checksum = "c36fa947111f5c62a733b652544dd0016a43ce89619538a8ef92724a6f501a20"
552
553[[package]]
554name = "proc-macro-nested"
555version = "0.1.6"
556source = "registry+https://github.com/rust-lang/crates.io-index"
557checksum = "eba180dafb9038b050a4c280019bbedf9f2467b61e5d892dcad585bb57aadc5a"
558 613
559[[package]] 614[[package]]
560name = "proc-macro2" 615name = "proc-macro2"
@@ -588,9 +643,9 @@ checksum = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca"
588dependencies = [ 643dependencies = [
589 "autocfg 0.1.7", 644 "autocfg 0.1.7",
590 "libc", 645 "libc",
591 "rand_chacha", 646 "rand_chacha 0.1.1",
592 "rand_core 0.4.2", 647 "rand_core 0.4.2",
593 "rand_hc", 648 "rand_hc 0.1.0",
594 "rand_isaac", 649 "rand_isaac",
595 "rand_jitter", 650 "rand_jitter",
596 "rand_os", 651 "rand_os",
@@ -600,6 +655,19 @@ dependencies = [
600] 655]
601 656
602[[package]] 657[[package]]
658name = "rand"
659version = "0.7.3"
660source = "registry+https://github.com/rust-lang/crates.io-index"
661checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
662dependencies = [
663 "getrandom",
664 "libc",
665 "rand_chacha 0.2.2",
666 "rand_core 0.5.1",
667 "rand_hc 0.2.0",
668]
669
670[[package]]
603name = "rand_chacha" 671name = "rand_chacha"
604version = "0.1.1" 672version = "0.1.1"
605source = "registry+https://github.com/rust-lang/crates.io-index" 673source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -610,6 +678,16 @@ dependencies = [
610] 678]
611 679
612[[package]] 680[[package]]
681name = "rand_chacha"
682version = "0.2.2"
683source = "registry+https://github.com/rust-lang/crates.io-index"
684checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
685dependencies = [
686 "ppv-lite86",
687 "rand_core 0.5.1",
688]
689
690[[package]]
613name = "rand_core" 691name = "rand_core"
614version = "0.3.1" 692version = "0.3.1"
615source = "registry+https://github.com/rust-lang/crates.io-index" 693source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -625,6 +703,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
625checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc" 703checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc"
626 704
627[[package]] 705[[package]]
706name = "rand_core"
707version = "0.5.1"
708source = "registry+https://github.com/rust-lang/crates.io-index"
709checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
710dependencies = [
711 "getrandom",
712]
713
714[[package]]
628name = "rand_hc" 715name = "rand_hc"
629version = "0.1.0" 716version = "0.1.0"
630source = "registry+https://github.com/rust-lang/crates.io-index" 717source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -634,6 +721,15 @@ dependencies = [
634] 721]
635 722
636[[package]] 723[[package]]
724name = "rand_hc"
725version = "0.2.0"
726source = "registry+https://github.com/rust-lang/crates.io-index"
727checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
728dependencies = [
729 "rand_core 0.5.1",
730]
731
732[[package]]
637name = "rand_isaac" 733name = "rand_isaac"
638version = "0.1.1" 734version = "0.1.1"
639source = "registry+https://github.com/rust-lang/crates.io-index" 735source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -702,24 +798,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
702checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" 798checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
703 799
704[[package]] 800[[package]]
705name = "regex" 801name = "remove_dir_all"
706version = "1.3.9" 802version = "0.5.3"
707source = "registry+https://github.com/rust-lang/crates.io-index" 803source = "registry+https://github.com/rust-lang/crates.io-index"
708checksum = "9c3780fcf44b193bc4d09f36d2a3c87b251da4a046c87795a0d35f4f927ad8e6" 804checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
709dependencies = [ 805dependencies = [
710 "aho-corasick", 806 "winapi 0.3.9",
711 "memchr",
712 "regex-syntax",
713 "thread_local",
714] 807]
715 808
716[[package]] 809[[package]]
717name = "regex-syntax"
718version = "0.6.18"
719source = "registry+https://github.com/rust-lang/crates.io-index"
720checksum = "26412eb97c6b088a6997e05f69403a802a92d520de2f8e63c2b65f9e0f47c4e8"
721
722[[package]]
723name = "rusqlite" 810name = "rusqlite"
724version = "0.24.0" 811version = "0.24.0"
725source = "registry+https://github.com/rust-lang/crates.io-index" 812source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -735,6 +822,12 @@ dependencies = [
735] 822]
736 823
737[[package]] 824[[package]]
825name = "safemem"
826version = "0.3.3"
827source = "registry+https://github.com/rust-lang/crates.io-index"
828checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072"
829
830[[package]]
738name = "signal-hook-registry" 831name = "signal-hook-registry"
739version = "1.2.1" 832version = "1.2.1"
740source = "registry+https://github.com/rust-lang/crates.io-index" 833source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -780,21 +873,17 @@ dependencies = [
780] 873]
781 874
782[[package]] 875[[package]]
783name = "termcolor" 876name = "tempfile"
784version = "1.1.0" 877version = "3.1.0"
785source = "registry+https://github.com/rust-lang/crates.io-index" 878source = "registry+https://github.com/rust-lang/crates.io-index"
786checksum = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f" 879checksum = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9"
787dependencies = [ 880dependencies = [
788 "winapi-util", 881 "cfg-if",
789] 882 "libc",
790 883 "rand 0.7.3",
791[[package]] 884 "redox_syscall",
792name = "thread_local" 885 "remove_dir_all",
793version = "1.0.1" 886 "winapi 0.3.9",
794source = "registry+https://github.com/rust-lang/crates.io-index"
795checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14"
796dependencies = [
797 "lazy_static",
798] 887]
799 888
800[[package]] 889[[package]]
@@ -857,7 +946,7 @@ dependencies = [
857 "bytes", 946 "bytes",
858 "futures-core", 947 "futures-core",
859 "futures-sink", 948 "futures-sink",
860 "log", 949 "log 0.4.11",
861 "pin-project-lite", 950 "pin-project-lite",
862 "tokio", 951 "tokio",
863] 952]
@@ -875,7 +964,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
875checksum = "6d79ca061b032d6ce30c660fded31189ca0b9922bf483cd70759f13a2d86786c" 964checksum = "6d79ca061b032d6ce30c660fded31189ca0b9922bf483cd70759f13a2d86786c"
876dependencies = [ 965dependencies = [
877 "cfg-if", 966 "cfg-if",
878 "log", 967 "log 0.4.11",
879 "tracing-core", 968 "tracing-core",
880] 969]
881 970
@@ -889,12 +978,51 @@ dependencies = [
889] 978]
890 979
891[[package]] 980[[package]]
981name = "traitobject"
982version = "0.1.0"
983source = "registry+https://github.com/rust-lang/crates.io-index"
984checksum = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079"
985
986[[package]]
892name = "try-lock" 987name = "try-lock"
893version = "0.2.3" 988version = "0.2.3"
894source = "registry+https://github.com/rust-lang/crates.io-index" 989source = "registry+https://github.com/rust-lang/crates.io-index"
895checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" 990checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
896 991
897[[package]] 992[[package]]
993name = "twoway"
994version = "0.1.8"
995source = "registry+https://github.com/rust-lang/crates.io-index"
996checksum = "59b11b2b5241ba34be09c3cc85a36e56e48f9888862e19cedf23336d35316ed1"
997dependencies = [
998 "memchr",
999]
1000
1001[[package]]
1002name = "typeable"
1003version = "0.1.2"
1004source = "registry+https://github.com/rust-lang/crates.io-index"
1005checksum = "1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887"
1006
1007[[package]]
1008name = "unicase"
1009version = "1.4.2"
1010source = "registry+https://github.com/rust-lang/crates.io-index"
1011checksum = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33"
1012dependencies = [
1013 "version_check 0.1.5",
1014]
1015
1016[[package]]
1017name = "unicase"
1018version = "2.6.0"
1019source = "registry+https://github.com/rust-lang/crates.io-index"
1020checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6"
1021dependencies = [
1022 "version_check 0.9.2",
1023]
1024
1025[[package]]
898name = "unicode-bidi" 1026name = "unicode-bidi"
899version = "0.3.4" 1027version = "0.3.4"
900source = "registry+https://github.com/rust-lang/crates.io-index" 1028source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -920,13 +1048,24 @@ checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
920 1048
921[[package]] 1049[[package]]
922name = "url" 1050name = "url"
1051version = "1.7.2"
1052source = "registry+https://github.com/rust-lang/crates.io-index"
1053checksum = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a"
1054dependencies = [
1055 "idna 0.1.5",
1056 "matches",
1057 "percent-encoding 1.0.1",
1058]
1059
1060[[package]]
1061name = "url"
923version = "2.1.1" 1062version = "2.1.1"
924source = "registry+https://github.com/rust-lang/crates.io-index" 1063source = "registry+https://github.com/rust-lang/crates.io-index"
925checksum = "829d4a8476c35c9bf0bbce5a3b23f4106f79728039b726d292bb93bc106787cb" 1064checksum = "829d4a8476c35c9bf0bbce5a3b23f4106f79728039b726d292bb93bc106787cb"
926dependencies = [ 1065dependencies = [
927 "idna", 1066 "idna 0.2.0",
928 "matches", 1067 "matches",
929 "percent-encoding", 1068 "percent-encoding 2.1.0",
930] 1069]
931 1070
932[[package]] 1071[[package]]
@@ -936,16 +1075,34 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
936checksum = "6454029bf181f092ad1b853286f23e2c507d8e8194d01d92da4a55c274a5508c" 1075checksum = "6454029bf181f092ad1b853286f23e2c507d8e8194d01d92da4a55c274a5508c"
937 1076
938[[package]] 1077[[package]]
1078name = "version_check"
1079version = "0.1.5"
1080source = "registry+https://github.com/rust-lang/crates.io-index"
1081checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd"
1082
1083[[package]]
1084name = "version_check"
1085version = "0.9.2"
1086source = "registry+https://github.com/rust-lang/crates.io-index"
1087checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed"
1088
1089[[package]]
939name = "want" 1090name = "want"
940version = "0.3.0" 1091version = "0.3.0"
941source = "registry+https://github.com/rust-lang/crates.io-index" 1092source = "registry+https://github.com/rust-lang/crates.io-index"
942checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" 1093checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"
943dependencies = [ 1094dependencies = [
944 "log", 1095 "log 0.4.11",
945 "try-lock", 1096 "try-lock",
946] 1097]
947 1098
948[[package]] 1099[[package]]
1100name = "wasi"
1101version = "0.9.0+wasi-snapshot-preview1"
1102source = "registry+https://github.com/rust-lang/crates.io-index"
1103checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
1104
1105[[package]]
949name = "winapi" 1106name = "winapi"
950version = "0.2.8" 1107version = "0.2.8"
951source = "registry+https://github.com/rust-lang/crates.io-index" 1108source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -974,15 +1131,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
974checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1131checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
975 1132
976[[package]] 1133[[package]]
977name = "winapi-util"
978version = "0.1.5"
979source = "registry+https://github.com/rust-lang/crates.io-index"
980checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
981dependencies = [
982 "winapi 0.3.9",
983]
984
985[[package]]
986name = "winapi-x86_64-pc-windows-gnu" 1134name = "winapi-x86_64-pc-windows-gnu"
987version = "0.4.0" 1135version = "0.4.0"
988source = "registry+https://github.com/rust-lang/crates.io-index" 1136source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/Cargo.toml b/Cargo.toml
index 3eb3ef1..4eada2d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,8 +9,12 @@ edition = "2018"
9[dependencies] 9[dependencies]
10hyper = "0.13" 10hyper = "0.13"
11tokio = { version = "0.2", features = ["full"] } 11tokio = { version = "0.2", features = ["full"] }
12pretty_env_logger = "0.4"
13futures-util = "0.3.5"
14rusqlite = "0.24.0" 12rusqlite = "0.24.0"
15nanoid = "0.3.0" 13nanoid = "0.3.0"
16url = "2.1.1" 14url = "2.1.1"
15anyhow = "1.0"
16
17[dependencies.multipart]
18default-features = false
19features = [ "hyper", "server" ]
20version = "0.17.0"