├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── README.md └── src ├── errors.rs ├── main.rs └── products ├── mod.rs └── routes.rs /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/** 2 | target/** 3 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | [[package]] 4 | name = "aead" 5 | version = "0.3.2" 6 | source = "registry+https://github.com/rust-lang/crates.io-index" 7 | checksum = "7fc95d1bdb8e6666b2b217308eeeb09f2d6728d104be3e31916cc74d15420331" 8 | dependencies = [ 9 | "generic-array 0.14.3", 10 | ] 11 | 12 | [[package]] 13 | name = "aes" 14 | version = "0.4.0" 15 | source = "registry+https://github.com/rust-lang/crates.io-index" 16 | checksum = "f7001367fde4c768a19d1029f0a8be5abd9308e1119846d5bd9ad26297b8faf5" 17 | dependencies = [ 18 | "aes-soft", 19 | "aesni", 20 | "block-cipher", 21 | ] 22 | 23 | [[package]] 24 | name = "aes-gcm" 25 | version = "0.6.0" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | checksum = "86f5007801316299f922a6198d1d09a0bae95786815d066d5880d13f7c45ead1" 28 | dependencies = [ 29 | "aead", 30 | "aes", 31 | "block-cipher", 32 | "ghash", 33 | "subtle 2.2.3", 34 | ] 35 | 36 | [[package]] 37 | name = "aes-soft" 38 | version = "0.4.0" 39 | source = "registry+https://github.com/rust-lang/crates.io-index" 40 | checksum = "4925647ee64e5056cf231608957ce7c81e12d6d6e316b9ce1404778cc1d35fa7" 41 | dependencies = [ 42 | "block-cipher", 43 | "byteorder", 44 | "opaque-debug 0.2.3", 45 | ] 46 | 47 | [[package]] 48 | name = "aesni" 49 | version = "0.7.0" 50 | source = "registry+https://github.com/rust-lang/crates.io-index" 51 | checksum = "d050d39b0b7688b3a3254394c3e30a9d66c41dcf9b05b0e2dbdc623f6505d264" 52 | dependencies = [ 53 | "block-cipher", 54 | "opaque-debug 0.2.3", 55 | ] 56 | 57 | [[package]] 58 | name = "again" 59 | version = "0.1.2" 60 | source = "registry+https://github.com/rust-lang/crates.io-index" 61 | checksum = "05802a5ad4d172eaf796f7047b42d0af9db513585d16d4169660a21613d34b93" 62 | dependencies = [ 63 | "log", 64 | "rand", 65 | "wasm-timer", 66 | ] 67 | 68 | [[package]] 69 | name = "aho-corasick" 70 | version = "0.7.13" 71 | source = "registry+https://github.com/rust-lang/crates.io-index" 72 | checksum = "043164d8ba5c4c3035fec9bbee8647c0261d788f3474306f93bb65901cae0e86" 73 | dependencies = [ 74 | "memchr", 75 | ] 76 | 77 | [[package]] 78 | name = "anyhow" 79 | version = "1.0.32" 80 | source = "registry+https://github.com/rust-lang/crates.io-index" 81 | checksum = "6b602bfe940d21c130f3895acd65221e8a61270debe89d628b9cb4e3ccb8569b" 82 | 83 | [[package]] 84 | name = "arc-swap" 85 | version = "0.4.7" 86 | source = "registry+https://github.com/rust-lang/crates.io-index" 87 | checksum = "4d25d88fd6b8041580a654f9d0c581a047baee2b3efee13275f2fc392fc75034" 88 | 89 | [[package]] 90 | name = "arrayref" 91 | version = "0.3.6" 92 | source = "registry+https://github.com/rust-lang/crates.io-index" 93 | checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" 94 | 95 | [[package]] 96 | name = "arrayvec" 97 | version = "0.5.1" 98 | source = "registry+https://github.com/rust-lang/crates.io-index" 99 | checksum = "cff77d8686867eceff3105329d4698d96c2391c176d5d03adc90c7389162b5b8" 100 | 101 | [[package]] 102 | name = "async-trait" 103 | version = "0.1.36" 104 | source = "registry+https://github.com/rust-lang/crates.io-index" 105 | checksum = "a265e3abeffdce30b2e26b7a11b222fe37c6067404001b434101457d0385eb92" 106 | dependencies = [ 107 | "proc-macro2", 108 | "quote", 109 | "syn", 110 | ] 111 | 112 | [[package]] 113 | name = "atomic" 114 | version = "0.4.6" 115 | source = "registry+https://github.com/rust-lang/crates.io-index" 116 | checksum = "64f46ca51dca4837f1520754d1c8c36636356b81553d928dc9c177025369a06e" 117 | 118 | [[package]] 119 | name = "atty" 120 | version = "0.2.14" 121 | source = "registry+https://github.com/rust-lang/crates.io-index" 122 | checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" 123 | dependencies = [ 124 | "hermit-abi", 125 | "libc", 126 | "winapi 0.3.9", 127 | ] 128 | 129 | [[package]] 130 | name = "autocfg" 131 | version = "1.0.0" 132 | source = "registry+https://github.com/rust-lang/crates.io-index" 133 | checksum = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d" 134 | 135 | [[package]] 136 | name = "base-x" 137 | version = "0.2.6" 138 | source = "registry+https://github.com/rust-lang/crates.io-index" 139 | checksum = "1b20b618342cf9891c292c4f5ac2cde7287cc5c87e87e9c769d617793607dec1" 140 | 141 | [[package]] 142 | name = "base64" 143 | version = "0.11.0" 144 | source = "registry+https://github.com/rust-lang/crates.io-index" 145 | checksum = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7" 146 | 147 | [[package]] 148 | name = "base64" 149 | version = "0.12.3" 150 | source = "registry+https://github.com/rust-lang/crates.io-index" 151 | checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" 152 | 153 | [[package]] 154 | name = "binascii" 155 | version = "0.1.4" 156 | source = "registry+https://github.com/rust-lang/crates.io-index" 157 | checksum = "383d29d513d8764dcdc42ea295d979eb99c3c9f00607b3692cf68a431f7dca72" 158 | 159 | [[package]] 160 | name = "bitflags" 161 | version = "1.2.1" 162 | source = "registry+https://github.com/rust-lang/crates.io-index" 163 | checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" 164 | 165 | [[package]] 166 | name = "blake2b_simd" 167 | version = "0.5.10" 168 | source = "registry+https://github.com/rust-lang/crates.io-index" 169 | checksum = "d8fb2d74254a3a0b5cac33ac9f8ed0e44aa50378d9dbb2e5d83bd21ed1dc2c8a" 170 | dependencies = [ 171 | "arrayref", 172 | "arrayvec", 173 | "constant_time_eq", 174 | ] 175 | 176 | [[package]] 177 | name = "block-buffer" 178 | version = "0.7.3" 179 | source = "registry+https://github.com/rust-lang/crates.io-index" 180 | checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b" 181 | dependencies = [ 182 | "block-padding", 183 | "byte-tools", 184 | "byteorder", 185 | "generic-array 0.12.3", 186 | ] 187 | 188 | [[package]] 189 | name = "block-buffer" 190 | version = "0.9.0" 191 | source = "registry+https://github.com/rust-lang/crates.io-index" 192 | checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" 193 | dependencies = [ 194 | "generic-array 0.14.3", 195 | ] 196 | 197 | [[package]] 198 | name = "block-cipher" 199 | version = "0.7.1" 200 | source = "registry+https://github.com/rust-lang/crates.io-index" 201 | checksum = "fa136449e765dc7faa244561ccae839c394048667929af599b5d931ebe7b7f10" 202 | dependencies = [ 203 | "generic-array 0.14.3", 204 | ] 205 | 206 | [[package]] 207 | name = "block-padding" 208 | version = "0.1.5" 209 | source = "registry+https://github.com/rust-lang/crates.io-index" 210 | checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5" 211 | dependencies = [ 212 | "byte-tools", 213 | ] 214 | 215 | [[package]] 216 | name = "bumpalo" 217 | version = "3.4.0" 218 | source = "registry+https://github.com/rust-lang/crates.io-index" 219 | checksum = "2e8c087f005730276d1096a652e92a8bacee2e2472bcc9715a74d2bec38b5820" 220 | 221 | [[package]] 222 | name = "byte-tools" 223 | version = "0.3.1" 224 | source = "registry+https://github.com/rust-lang/crates.io-index" 225 | checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" 226 | 227 | [[package]] 228 | name = "byteorder" 229 | version = "1.3.4" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" 232 | 233 | [[package]] 234 | name = "bytes" 235 | version = "0.5.6" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38" 238 | 239 | [[package]] 240 | name = "cc" 241 | version = "1.0.58" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "f9a06fb2e53271d7c279ec1efea6ab691c35a2ae67ec0d91d7acec0caf13b518" 244 | 245 | [[package]] 246 | name = "cfg-if" 247 | version = "0.1.10" 248 | source = "registry+https://github.com/rust-lang/crates.io-index" 249 | checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" 250 | 251 | [[package]] 252 | name = "chrono" 253 | version = "0.4.13" 254 | source = "registry+https://github.com/rust-lang/crates.io-index" 255 | checksum = "c74d84029116787153e02106bf53e66828452a4b325cc8652b788b5967c0a0b6" 256 | dependencies = [ 257 | "num-integer", 258 | "num-traits", 259 | "serde", 260 | "time 0.1.43", 261 | ] 262 | 263 | [[package]] 264 | name = "cloudabi" 265 | version = "0.0.3" 266 | source = "registry+https://github.com/rust-lang/crates.io-index" 267 | checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" 268 | dependencies = [ 269 | "bitflags", 270 | ] 271 | 272 | [[package]] 273 | name = "constant_time_eq" 274 | version = "0.1.5" 275 | source = "registry+https://github.com/rust-lang/crates.io-index" 276 | checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" 277 | 278 | [[package]] 279 | name = "cookie" 280 | version = "0.14.2" 281 | source = "registry+https://github.com/rust-lang/crates.io-index" 282 | checksum = "1373a16a4937bc34efec7b391f9c1500c30b8478a701a4f44c9165cc0475a6e0" 283 | dependencies = [ 284 | "aes-gcm", 285 | "base64 0.12.3", 286 | "hkdf", 287 | "percent-encoding", 288 | "rand", 289 | "sha2 0.9.1", 290 | "time 0.2.16", 291 | "version_check", 292 | ] 293 | 294 | [[package]] 295 | name = "core-foundation" 296 | version = "0.7.0" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171" 299 | dependencies = [ 300 | "core-foundation-sys", 301 | "libc", 302 | ] 303 | 304 | [[package]] 305 | name = "core-foundation-sys" 306 | version = "0.7.0" 307 | source = "registry+https://github.com/rust-lang/crates.io-index" 308 | checksum = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac" 309 | 310 | [[package]] 311 | name = "cpuid-bool" 312 | version = "0.1.2" 313 | source = "registry+https://github.com/rust-lang/crates.io-index" 314 | checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634" 315 | 316 | [[package]] 317 | name = "crossbeam-utils" 318 | version = "0.7.2" 319 | source = "registry+https://github.com/rust-lang/crates.io-index" 320 | checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8" 321 | dependencies = [ 322 | "autocfg", 323 | "cfg-if", 324 | "lazy_static", 325 | ] 326 | 327 | [[package]] 328 | name = "crypto-mac" 329 | version = "0.7.0" 330 | source = "registry+https://github.com/rust-lang/crates.io-index" 331 | checksum = "4434400df11d95d556bac068ddfedd482915eb18fe8bea89bc80b6e4b1c179e5" 332 | dependencies = [ 333 | "generic-array 0.12.3", 334 | "subtle 1.0.0", 335 | ] 336 | 337 | [[package]] 338 | name = "crypto-mac" 339 | version = "0.8.0" 340 | source = "registry+https://github.com/rust-lang/crates.io-index" 341 | checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" 342 | dependencies = [ 343 | "generic-array 0.14.3", 344 | "subtle 2.2.3", 345 | ] 346 | 347 | [[package]] 348 | name = "devise" 349 | version = "0.3.0" 350 | source = "git+https://github.com/SergioBenitez/Devise.git?rev=1e42a2691#1e42a2691ef9934a446b8ed0ca1c4c8cf283f8bf" 351 | dependencies = [ 352 | "devise_codegen", 353 | "devise_core", 354 | ] 355 | 356 | [[package]] 357 | name = "devise_codegen" 358 | version = "0.3.0" 359 | source = "git+https://github.com/SergioBenitez/Devise.git?rev=1e42a2691#1e42a2691ef9934a446b8ed0ca1c4c8cf283f8bf" 360 | dependencies = [ 361 | "devise_core", 362 | "quote", 363 | ] 364 | 365 | [[package]] 366 | name = "devise_core" 367 | version = "0.3.0" 368 | source = "git+https://github.com/SergioBenitez/Devise.git?rev=1e42a2691#1e42a2691ef9934a446b8ed0ca1c4c8cf283f8bf" 369 | dependencies = [ 370 | "bitflags", 371 | "proc-macro2", 372 | "proc-macro2-diagnostics", 373 | "quote", 374 | "syn", 375 | ] 376 | 377 | [[package]] 378 | name = "digest" 379 | version = "0.8.1" 380 | source = "registry+https://github.com/rust-lang/crates.io-index" 381 | checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5" 382 | dependencies = [ 383 | "generic-array 0.12.3", 384 | ] 385 | 386 | [[package]] 387 | name = "digest" 388 | version = "0.9.0" 389 | source = "registry+https://github.com/rust-lang/crates.io-index" 390 | checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" 391 | dependencies = [ 392 | "generic-array 0.14.3", 393 | ] 394 | 395 | [[package]] 396 | name = "dirs" 397 | version = "2.0.2" 398 | source = "registry+https://github.com/rust-lang/crates.io-index" 399 | checksum = "13aea89a5c93364a98e9b37b2fa237effbb694d5cfe01c5b70941f7eb087d5e3" 400 | dependencies = [ 401 | "cfg-if", 402 | "dirs-sys", 403 | ] 404 | 405 | [[package]] 406 | name = "dirs-sys" 407 | version = "0.3.5" 408 | source = "registry+https://github.com/rust-lang/crates.io-index" 409 | checksum = "8e93d7f5705de3e49895a2b5e0b8855a1c27f080192ae9c32a6432d50741a57a" 410 | dependencies = [ 411 | "libc", 412 | "redox_users", 413 | "winapi 0.3.9", 414 | ] 415 | 416 | [[package]] 417 | name = "discard" 418 | version = "1.0.4" 419 | source = "registry+https://github.com/rust-lang/crates.io-index" 420 | checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0" 421 | 422 | [[package]] 423 | name = "dynomite" 424 | version = "0.9.0" 425 | source = "registry+https://github.com/rust-lang/crates.io-index" 426 | checksum = "5d1bd8830466d914ec9b3bfc9e99958c190cd16158e6aea76c5916806f6b1d40" 427 | dependencies = [ 428 | "again", 429 | "async-trait", 430 | "bytes", 431 | "chrono", 432 | "dynomite-derive", 433 | "futures", 434 | "log", 435 | "rusoto_core", 436 | "rusoto_dynamodb", 437 | "uuid", 438 | ] 439 | 440 | [[package]] 441 | name = "dynomite-derive" 442 | version = "0.9.0" 443 | source = "registry+https://github.com/rust-lang/crates.io-index" 444 | checksum = "f98a29e8ef61733ec223b6170370edf939697df56f5aee2bee661d30c252fb8f" 445 | dependencies = [ 446 | "proc-macro-error", 447 | "proc-macro2", 448 | "quote", 449 | "syn", 450 | ] 451 | 452 | [[package]] 453 | name = "fake-simd" 454 | version = "0.1.2" 455 | source = "registry+https://github.com/rust-lang/crates.io-index" 456 | checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" 457 | 458 | [[package]] 459 | name = "fnv" 460 | version = "1.0.7" 461 | source = "registry+https://github.com/rust-lang/crates.io-index" 462 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 463 | 464 | [[package]] 465 | name = "foreign-types" 466 | version = "0.3.2" 467 | source = "registry+https://github.com/rust-lang/crates.io-index" 468 | checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" 469 | dependencies = [ 470 | "foreign-types-shared", 471 | ] 472 | 473 | [[package]] 474 | name = "foreign-types-shared" 475 | version = "0.1.1" 476 | source = "registry+https://github.com/rust-lang/crates.io-index" 477 | checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" 478 | 479 | [[package]] 480 | name = "fuchsia-zircon" 481 | version = "0.3.3" 482 | source = "registry+https://github.com/rust-lang/crates.io-index" 483 | checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" 484 | dependencies = [ 485 | "bitflags", 486 | "fuchsia-zircon-sys", 487 | ] 488 | 489 | [[package]] 490 | name = "fuchsia-zircon-sys" 491 | version = "0.3.3" 492 | source = "registry+https://github.com/rust-lang/crates.io-index" 493 | checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" 494 | 495 | [[package]] 496 | name = "futures" 497 | version = "0.3.5" 498 | source = "registry+https://github.com/rust-lang/crates.io-index" 499 | checksum = "1e05b85ec287aac0dc34db7d4a569323df697f9c55b99b15d6b4ef8cde49f613" 500 | dependencies = [ 501 | "futures-channel", 502 | "futures-core", 503 | "futures-executor", 504 | "futures-io", 505 | "futures-sink", 506 | "futures-task", 507 | "futures-util", 508 | ] 509 | 510 | [[package]] 511 | name = "futures-channel" 512 | version = "0.3.5" 513 | source = "registry+https://github.com/rust-lang/crates.io-index" 514 | checksum = "f366ad74c28cca6ba456d95e6422883cfb4b252a83bed929c83abfdbbf2967d5" 515 | dependencies = [ 516 | "futures-core", 517 | "futures-sink", 518 | ] 519 | 520 | [[package]] 521 | name = "futures-core" 522 | version = "0.3.5" 523 | source = "registry+https://github.com/rust-lang/crates.io-index" 524 | checksum = "59f5fff90fd5d971f936ad674802482ba441b6f09ba5e15fd8b39145582ca399" 525 | 526 | [[package]] 527 | name = "futures-executor" 528 | version = "0.3.5" 529 | source = "registry+https://github.com/rust-lang/crates.io-index" 530 | checksum = "10d6bb888be1153d3abeb9006b11b02cf5e9b209fda28693c31ae1e4e012e314" 531 | dependencies = [ 532 | "futures-core", 533 | "futures-task", 534 | "futures-util", 535 | ] 536 | 537 | [[package]] 538 | name = "futures-io" 539 | version = "0.3.5" 540 | source = "registry+https://github.com/rust-lang/crates.io-index" 541 | checksum = "de27142b013a8e869c14957e6d2edeef89e97c289e69d042ee3a49acd8b51789" 542 | 543 | [[package]] 544 | name = "futures-macro" 545 | version = "0.3.5" 546 | source = "registry+https://github.com/rust-lang/crates.io-index" 547 | checksum = "d0b5a30a4328ab5473878237c447333c093297bded83a4983d10f4deea240d39" 548 | dependencies = [ 549 | "proc-macro-hack", 550 | "proc-macro2", 551 | "quote", 552 | "syn", 553 | ] 554 | 555 | [[package]] 556 | name = "futures-sink" 557 | version = "0.3.5" 558 | source = "registry+https://github.com/rust-lang/crates.io-index" 559 | checksum = "3f2032893cb734c7a05d85ce0cc8b8c4075278e93b24b66f9de99d6eb0fa8acc" 560 | 561 | [[package]] 562 | name = "futures-task" 563 | version = "0.3.5" 564 | source = "registry+https://github.com/rust-lang/crates.io-index" 565 | checksum = "bdb66b5f09e22019b1ab0830f7785bcea8e7a42148683f99214f73f8ec21a626" 566 | dependencies = [ 567 | "once_cell", 568 | ] 569 | 570 | [[package]] 571 | name = "futures-util" 572 | version = "0.3.5" 573 | source = "registry+https://github.com/rust-lang/crates.io-index" 574 | checksum = "8764574ff08b701a084482c3c7031349104b07ac897393010494beaa18ce32c6" 575 | dependencies = [ 576 | "futures-channel", 577 | "futures-core", 578 | "futures-io", 579 | "futures-macro", 580 | "futures-sink", 581 | "futures-task", 582 | "memchr", 583 | "pin-project", 584 | "pin-utils", 585 | "proc-macro-hack", 586 | "proc-macro-nested", 587 | "slab", 588 | ] 589 | 590 | [[package]] 591 | name = "generic-array" 592 | version = "0.12.3" 593 | source = "registry+https://github.com/rust-lang/crates.io-index" 594 | checksum = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec" 595 | dependencies = [ 596 | "typenum", 597 | ] 598 | 599 | [[package]] 600 | name = "generic-array" 601 | version = "0.14.3" 602 | source = "registry+https://github.com/rust-lang/crates.io-index" 603 | checksum = "60fb4bb6bba52f78a471264d9a3b7d026cc0af47b22cd2cffbc0b787ca003e63" 604 | dependencies = [ 605 | "typenum", 606 | "version_check", 607 | ] 608 | 609 | [[package]] 610 | name = "getrandom" 611 | version = "0.1.14" 612 | source = "registry+https://github.com/rust-lang/crates.io-index" 613 | checksum = "7abc8dd8451921606d809ba32e95b6111925cd2906060d2dcc29c070220503eb" 614 | dependencies = [ 615 | "cfg-if", 616 | "libc", 617 | "wasi", 618 | ] 619 | 620 | [[package]] 621 | name = "ghash" 622 | version = "0.3.0" 623 | source = "registry+https://github.com/rust-lang/crates.io-index" 624 | checksum = "d6e27f0689a6e15944bdce7e45425efb87eaa8ab0c6e87f11d0987a9133e2531" 625 | dependencies = [ 626 | "polyval", 627 | ] 628 | 629 | [[package]] 630 | name = "glob" 631 | version = "0.3.0" 632 | source = "registry+https://github.com/rust-lang/crates.io-index" 633 | checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" 634 | 635 | [[package]] 636 | name = "h2" 637 | version = "0.2.6" 638 | source = "registry+https://github.com/rust-lang/crates.io-index" 639 | checksum = "993f9e0baeed60001cf565546b0d3dbe6a6ad23f2bd31644a133c641eccf6d53" 640 | dependencies = [ 641 | "bytes", 642 | "fnv", 643 | "futures-core", 644 | "futures-sink", 645 | "futures-util", 646 | "http", 647 | "indexmap", 648 | "slab", 649 | "tokio", 650 | "tokio-util", 651 | "tracing", 652 | ] 653 | 654 | [[package]] 655 | name = "hashbrown" 656 | version = "0.8.1" 657 | source = "registry+https://github.com/rust-lang/crates.io-index" 658 | checksum = "34f595585f103464d8d2f6e9864682d74c1601fed5e07d62b1c9058dba8246fb" 659 | dependencies = [ 660 | "autocfg", 661 | ] 662 | 663 | [[package]] 664 | name = "hermit-abi" 665 | version = "0.1.15" 666 | source = "registry+https://github.com/rust-lang/crates.io-index" 667 | checksum = "3deed196b6e7f9e44a2ae8d94225d80302d81208b1bb673fd21fe634645c85a9" 668 | dependencies = [ 669 | "libc", 670 | ] 671 | 672 | [[package]] 673 | name = "hex" 674 | version = "0.4.2" 675 | source = "registry+https://github.com/rust-lang/crates.io-index" 676 | checksum = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35" 677 | 678 | [[package]] 679 | name = "hkdf" 680 | version = "0.9.0" 681 | source = "registry+https://github.com/rust-lang/crates.io-index" 682 | checksum = "fe1149865383e4526a43aee8495f9a325f0b806c63ce6427d06336a590abbbc9" 683 | dependencies = [ 684 | "digest 0.9.0", 685 | "hmac 0.8.1", 686 | ] 687 | 688 | [[package]] 689 | name = "hmac" 690 | version = "0.7.1" 691 | source = "registry+https://github.com/rust-lang/crates.io-index" 692 | checksum = "5dcb5e64cda4c23119ab41ba960d1e170a774c8e4b9d9e6a9bc18aabf5e59695" 693 | dependencies = [ 694 | "crypto-mac 0.7.0", 695 | "digest 0.8.1", 696 | ] 697 | 698 | [[package]] 699 | name = "hmac" 700 | version = "0.8.1" 701 | source = "registry+https://github.com/rust-lang/crates.io-index" 702 | checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" 703 | dependencies = [ 704 | "crypto-mac 0.8.0", 705 | "digest 0.9.0", 706 | ] 707 | 708 | [[package]] 709 | name = "http" 710 | version = "0.2.1" 711 | source = "registry+https://github.com/rust-lang/crates.io-index" 712 | checksum = "28d569972648b2c512421b5f2a405ad6ac9666547189d0c5477a3f200f3e02f9" 713 | dependencies = [ 714 | "bytes", 715 | "fnv", 716 | "itoa", 717 | ] 718 | 719 | [[package]] 720 | name = "http-body" 721 | version = "0.3.1" 722 | source = "registry+https://github.com/rust-lang/crates.io-index" 723 | checksum = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b" 724 | dependencies = [ 725 | "bytes", 726 | "http", 727 | ] 728 | 729 | [[package]] 730 | name = "httparse" 731 | version = "1.3.4" 732 | source = "registry+https://github.com/rust-lang/crates.io-index" 733 | checksum = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" 734 | 735 | [[package]] 736 | name = "hyper" 737 | version = "0.13.7" 738 | source = "registry+https://github.com/rust-lang/crates.io-index" 739 | checksum = "3e68a8dd9716185d9e64ea473ea6ef63529252e3e27623295a0378a19665d5eb" 740 | dependencies = [ 741 | "bytes", 742 | "futures-channel", 743 | "futures-core", 744 | "futures-util", 745 | "h2", 746 | "http", 747 | "http-body", 748 | "httparse", 749 | "itoa", 750 | "pin-project", 751 | "socket2", 752 | "time 0.1.43", 753 | "tokio", 754 | "tower-service", 755 | "tracing", 756 | "want", 757 | ] 758 | 759 | [[package]] 760 | name = "hyper-tls" 761 | version = "0.4.3" 762 | source = "registry+https://github.com/rust-lang/crates.io-index" 763 | checksum = "d979acc56dcb5b8dddba3917601745e877576475aa046df3226eabdecef78eed" 764 | dependencies = [ 765 | "bytes", 766 | "hyper", 767 | "native-tls", 768 | "tokio", 769 | "tokio-tls", 770 | ] 771 | 772 | [[package]] 773 | name = "indexmap" 774 | version = "1.5.0" 775 | source = "registry+https://github.com/rust-lang/crates.io-index" 776 | checksum = "5b88cd59ee5f71fea89a62248fc8f387d44400cefe05ef548466d61ced9029a7" 777 | dependencies = [ 778 | "autocfg", 779 | "hashbrown", 780 | ] 781 | 782 | [[package]] 783 | name = "inlinable_string" 784 | version = "0.1.11" 785 | source = "registry+https://github.com/rust-lang/crates.io-index" 786 | checksum = "cb6ee2a7da03bfc3b66ca47c92c2e392fcc053ea040a85561749b026f7aad09a" 787 | 788 | [[package]] 789 | name = "iovec" 790 | version = "0.1.4" 791 | source = "registry+https://github.com/rust-lang/crates.io-index" 792 | checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" 793 | dependencies = [ 794 | "libc", 795 | ] 796 | 797 | [[package]] 798 | name = "itoa" 799 | version = "0.4.6" 800 | source = "registry+https://github.com/rust-lang/crates.io-index" 801 | checksum = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6" 802 | 803 | [[package]] 804 | name = "js-sys" 805 | version = "0.3.42" 806 | source = "registry+https://github.com/rust-lang/crates.io-index" 807 | checksum = "52732a3d3ad72c58ad2dc70624f9c17b46ecd0943b9a4f1ee37c4c18c5d983e2" 808 | dependencies = [ 809 | "wasm-bindgen", 810 | ] 811 | 812 | [[package]] 813 | name = "kernel32-sys" 814 | version = "0.2.2" 815 | source = "registry+https://github.com/rust-lang/crates.io-index" 816 | checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" 817 | dependencies = [ 818 | "winapi 0.2.8", 819 | "winapi-build", 820 | ] 821 | 822 | [[package]] 823 | name = "lazy_static" 824 | version = "1.4.0" 825 | source = "registry+https://github.com/rust-lang/crates.io-index" 826 | checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 827 | 828 | [[package]] 829 | name = "libc" 830 | version = "0.2.73" 831 | source = "registry+https://github.com/rust-lang/crates.io-index" 832 | checksum = "bd7d4bd64732af4bf3a67f367c27df8520ad7e230c5817b8ff485864d80242b9" 833 | 834 | [[package]] 835 | name = "lock_api" 836 | version = "0.3.4" 837 | source = "registry+https://github.com/rust-lang/crates.io-index" 838 | checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75" 839 | dependencies = [ 840 | "scopeguard", 841 | ] 842 | 843 | [[package]] 844 | name = "log" 845 | version = "0.4.11" 846 | source = "registry+https://github.com/rust-lang/crates.io-index" 847 | checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b" 848 | dependencies = [ 849 | "cfg-if", 850 | ] 851 | 852 | [[package]] 853 | name = "maybe-uninit" 854 | version = "2.0.0" 855 | source = "registry+https://github.com/rust-lang/crates.io-index" 856 | checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" 857 | 858 | [[package]] 859 | name = "md5" 860 | version = "0.7.0" 861 | source = "registry+https://github.com/rust-lang/crates.io-index" 862 | checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771" 863 | 864 | [[package]] 865 | name = "memchr" 866 | version = "2.3.3" 867 | source = "registry+https://github.com/rust-lang/crates.io-index" 868 | checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400" 869 | 870 | [[package]] 871 | name = "mime" 872 | version = "0.3.16" 873 | source = "registry+https://github.com/rust-lang/crates.io-index" 874 | checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" 875 | 876 | [[package]] 877 | name = "mio" 878 | version = "0.6.22" 879 | source = "registry+https://github.com/rust-lang/crates.io-index" 880 | checksum = "fce347092656428bc8eaf6201042cb551b8d67855af7374542a92a0fbfcac430" 881 | dependencies = [ 882 | "cfg-if", 883 | "fuchsia-zircon", 884 | "fuchsia-zircon-sys", 885 | "iovec", 886 | "kernel32-sys", 887 | "libc", 888 | "log", 889 | "miow 0.2.1", 890 | "net2", 891 | "slab", 892 | "winapi 0.2.8", 893 | ] 894 | 895 | [[package]] 896 | name = "mio-named-pipes" 897 | version = "0.1.7" 898 | source = "registry+https://github.com/rust-lang/crates.io-index" 899 | checksum = "0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656" 900 | dependencies = [ 901 | "log", 902 | "mio", 903 | "miow 0.3.5", 904 | "winapi 0.3.9", 905 | ] 906 | 907 | [[package]] 908 | name = "mio-uds" 909 | version = "0.6.8" 910 | source = "registry+https://github.com/rust-lang/crates.io-index" 911 | checksum = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0" 912 | dependencies = [ 913 | "iovec", 914 | "libc", 915 | "mio", 916 | ] 917 | 918 | [[package]] 919 | name = "miow" 920 | version = "0.2.1" 921 | source = "registry+https://github.com/rust-lang/crates.io-index" 922 | checksum = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" 923 | dependencies = [ 924 | "kernel32-sys", 925 | "net2", 926 | "winapi 0.2.8", 927 | "ws2_32-sys", 928 | ] 929 | 930 | [[package]] 931 | name = "miow" 932 | version = "0.3.5" 933 | source = "registry+https://github.com/rust-lang/crates.io-index" 934 | checksum = "07b88fb9795d4d36d62a012dfbf49a8f5cf12751f36d31a9dbe66d528e58979e" 935 | dependencies = [ 936 | "socket2", 937 | "winapi 0.3.9", 938 | ] 939 | 940 | [[package]] 941 | name = "native-tls" 942 | version = "0.2.4" 943 | source = "registry+https://github.com/rust-lang/crates.io-index" 944 | checksum = "2b0d88c06fe90d5ee94048ba40409ef1d9315d86f6f38c2efdaad4fb50c58b2d" 945 | dependencies = [ 946 | "lazy_static", 947 | "libc", 948 | "log", 949 | "openssl", 950 | "openssl-probe", 951 | "openssl-sys", 952 | "schannel", 953 | "security-framework", 954 | "security-framework-sys", 955 | "tempfile", 956 | ] 957 | 958 | [[package]] 959 | name = "net2" 960 | version = "0.2.34" 961 | source = "registry+https://github.com/rust-lang/crates.io-index" 962 | checksum = "2ba7c918ac76704fb42afcbbb43891e72731f3dcca3bef2a19786297baf14af7" 963 | dependencies = [ 964 | "cfg-if", 965 | "libc", 966 | "winapi 0.3.9", 967 | ] 968 | 969 | [[package]] 970 | name = "num-integer" 971 | version = "0.1.43" 972 | source = "registry+https://github.com/rust-lang/crates.io-index" 973 | checksum = "8d59457e662d541ba17869cf51cf177c0b5f0cbf476c66bdc90bf1edac4f875b" 974 | dependencies = [ 975 | "autocfg", 976 | "num-traits", 977 | ] 978 | 979 | [[package]] 980 | name = "num-traits" 981 | version = "0.2.12" 982 | source = "registry+https://github.com/rust-lang/crates.io-index" 983 | checksum = "ac267bcc07f48ee5f8935ab0d24f316fb722d7a1292e2913f0cc196b29ffd611" 984 | dependencies = [ 985 | "autocfg", 986 | ] 987 | 988 | [[package]] 989 | name = "num_cpus" 990 | version = "1.13.0" 991 | source = "registry+https://github.com/rust-lang/crates.io-index" 992 | checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3" 993 | dependencies = [ 994 | "hermit-abi", 995 | "libc", 996 | ] 997 | 998 | [[package]] 999 | name = "once_cell" 1000 | version = "1.4.0" 1001 | source = "registry+https://github.com/rust-lang/crates.io-index" 1002 | checksum = "0b631f7e854af39a1739f401cf34a8a013dfe09eac4fa4dba91e9768bd28168d" 1003 | 1004 | [[package]] 1005 | name = "opaque-debug" 1006 | version = "0.2.3" 1007 | source = "registry+https://github.com/rust-lang/crates.io-index" 1008 | checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c" 1009 | 1010 | [[package]] 1011 | name = "opaque-debug" 1012 | version = "0.3.0" 1013 | source = "registry+https://github.com/rust-lang/crates.io-index" 1014 | checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" 1015 | 1016 | [[package]] 1017 | name = "openssl" 1018 | version = "0.10.30" 1019 | source = "registry+https://github.com/rust-lang/crates.io-index" 1020 | checksum = "8d575eff3665419f9b83678ff2815858ad9d11567e082f5ac1814baba4e2bcb4" 1021 | dependencies = [ 1022 | "bitflags", 1023 | "cfg-if", 1024 | "foreign-types", 1025 | "lazy_static", 1026 | "libc", 1027 | "openssl-sys", 1028 | ] 1029 | 1030 | [[package]] 1031 | name = "openssl-probe" 1032 | version = "0.1.2" 1033 | source = "registry+https://github.com/rust-lang/crates.io-index" 1034 | checksum = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de" 1035 | 1036 | [[package]] 1037 | name = "openssl-sys" 1038 | version = "0.9.58" 1039 | source = "registry+https://github.com/rust-lang/crates.io-index" 1040 | checksum = "a842db4709b604f0fe5d1170ae3565899be2ad3d9cbc72dedc789ac0511f78de" 1041 | dependencies = [ 1042 | "autocfg", 1043 | "cc", 1044 | "libc", 1045 | "pkg-config", 1046 | "vcpkg", 1047 | ] 1048 | 1049 | [[package]] 1050 | name = "parking_lot" 1051 | version = "0.9.0" 1052 | source = "registry+https://github.com/rust-lang/crates.io-index" 1053 | checksum = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252" 1054 | dependencies = [ 1055 | "lock_api", 1056 | "parking_lot_core", 1057 | "rustc_version", 1058 | ] 1059 | 1060 | [[package]] 1061 | name = "parking_lot_core" 1062 | version = "0.6.2" 1063 | source = "registry+https://github.com/rust-lang/crates.io-index" 1064 | checksum = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b" 1065 | dependencies = [ 1066 | "cfg-if", 1067 | "cloudabi", 1068 | "libc", 1069 | "redox_syscall", 1070 | "rustc_version", 1071 | "smallvec 0.6.13", 1072 | "winapi 0.3.9", 1073 | ] 1074 | 1075 | [[package]] 1076 | name = "pear" 1077 | version = "0.2.0-dev" 1078 | source = "git+https://github.com/SergioBenitez/Pear.git?rev=4b68055#4b680556063568a42fcd4328335cdfdf7608be49" 1079 | dependencies = [ 1080 | "inlinable_string", 1081 | "pear_codegen", 1082 | "yansi", 1083 | ] 1084 | 1085 | [[package]] 1086 | name = "pear_codegen" 1087 | version = "0.2.0-dev" 1088 | source = "git+https://github.com/SergioBenitez/Pear.git?rev=4b68055#4b680556063568a42fcd4328335cdfdf7608be49" 1089 | dependencies = [ 1090 | "proc-macro2", 1091 | "proc-macro2-diagnostics", 1092 | "quote", 1093 | "syn", 1094 | ] 1095 | 1096 | [[package]] 1097 | name = "percent-encoding" 1098 | version = "2.1.0" 1099 | source = "registry+https://github.com/rust-lang/crates.io-index" 1100 | checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" 1101 | 1102 | [[package]] 1103 | name = "pin-project" 1104 | version = "0.4.22" 1105 | source = "registry+https://github.com/rust-lang/crates.io-index" 1106 | checksum = "12e3a6cdbfe94a5e4572812a0201f8c0ed98c1c452c7b8563ce2276988ef9c17" 1107 | dependencies = [ 1108 | "pin-project-internal", 1109 | ] 1110 | 1111 | [[package]] 1112 | name = "pin-project-internal" 1113 | version = "0.4.22" 1114 | source = "registry+https://github.com/rust-lang/crates.io-index" 1115 | checksum = "6a0ffd45cf79d88737d7cc85bfd5d2894bee1139b356e616fe85dc389c61aaf7" 1116 | dependencies = [ 1117 | "proc-macro2", 1118 | "quote", 1119 | "syn", 1120 | ] 1121 | 1122 | [[package]] 1123 | name = "pin-project-lite" 1124 | version = "0.1.7" 1125 | source = "registry+https://github.com/rust-lang/crates.io-index" 1126 | checksum = "282adbf10f2698a7a77f8e983a74b2d18176c19a7fd32a45446139ae7b02b715" 1127 | 1128 | [[package]] 1129 | name = "pin-utils" 1130 | version = "0.1.0" 1131 | source = "registry+https://github.com/rust-lang/crates.io-index" 1132 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 1133 | 1134 | [[package]] 1135 | name = "pkg-config" 1136 | version = "0.3.18" 1137 | source = "registry+https://github.com/rust-lang/crates.io-index" 1138 | checksum = "d36492546b6af1463394d46f0c834346f31548646f6ba10849802c9c9a27ac33" 1139 | 1140 | [[package]] 1141 | name = "polyval" 1142 | version = "0.4.0" 1143 | source = "registry+https://github.com/rust-lang/crates.io-index" 1144 | checksum = "d9a50142b55ab3ed0e9f68dfb3709f1d90d29da24e91033f28b96330643107dc" 1145 | dependencies = [ 1146 | "cfg-if", 1147 | "universal-hash", 1148 | ] 1149 | 1150 | [[package]] 1151 | name = "ppv-lite86" 1152 | version = "0.2.8" 1153 | source = "registry+https://github.com/rust-lang/crates.io-index" 1154 | checksum = "237a5ed80e274dbc66f86bd59c1e25edc039660be53194b5fe0a482e0f2612ea" 1155 | 1156 | [[package]] 1157 | name = "proc-macro-error" 1158 | version = "1.0.3" 1159 | source = "registry+https://github.com/rust-lang/crates.io-index" 1160 | checksum = "fc175e9777c3116627248584e8f8b3e2987405cabe1c0adf7d1dd28f09dc7880" 1161 | dependencies = [ 1162 | "proc-macro-error-attr", 1163 | "proc-macro2", 1164 | "quote", 1165 | "syn", 1166 | "version_check", 1167 | ] 1168 | 1169 | [[package]] 1170 | name = "proc-macro-error-attr" 1171 | version = "1.0.3" 1172 | source = "registry+https://github.com/rust-lang/crates.io-index" 1173 | checksum = "3cc9795ca17eb581285ec44936da7fc2335a3f34f2ddd13118b6f4d515435c50" 1174 | dependencies = [ 1175 | "proc-macro2", 1176 | "quote", 1177 | "syn", 1178 | "syn-mid", 1179 | "version_check", 1180 | ] 1181 | 1182 | [[package]] 1183 | name = "proc-macro-hack" 1184 | version = "0.5.18" 1185 | source = "registry+https://github.com/rust-lang/crates.io-index" 1186 | checksum = "99c605b9a0adc77b7211c6b1f722dcb613d68d66859a44f3d485a6da332b0598" 1187 | 1188 | [[package]] 1189 | name = "proc-macro-nested" 1190 | version = "0.1.6" 1191 | source = "registry+https://github.com/rust-lang/crates.io-index" 1192 | checksum = "eba180dafb9038b050a4c280019bbedf9f2467b61e5d892dcad585bb57aadc5a" 1193 | 1194 | [[package]] 1195 | name = "proc-macro2" 1196 | version = "1.0.19" 1197 | source = "registry+https://github.com/rust-lang/crates.io-index" 1198 | checksum = "04f5f085b5d71e2188cb8271e5da0161ad52c3f227a661a3c135fdf28e258b12" 1199 | dependencies = [ 1200 | "unicode-xid", 1201 | ] 1202 | 1203 | [[package]] 1204 | name = "proc-macro2-diagnostics" 1205 | version = "0.1.0" 1206 | source = "git+https://github.com/SergioBenitez/proc-macro2-diagnostics.git?rev=13fbb43#13fbb43db72034b6f9660a9b00e338cebd8dcf44" 1207 | dependencies = [ 1208 | "proc-macro2", 1209 | "quote", 1210 | "syn", 1211 | "version_check", 1212 | "yansi", 1213 | ] 1214 | 1215 | [[package]] 1216 | name = "quote" 1217 | version = "1.0.7" 1218 | source = "registry+https://github.com/rust-lang/crates.io-index" 1219 | checksum = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37" 1220 | dependencies = [ 1221 | "proc-macro2", 1222 | ] 1223 | 1224 | [[package]] 1225 | name = "rand" 1226 | version = "0.7.3" 1227 | source = "registry+https://github.com/rust-lang/crates.io-index" 1228 | checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" 1229 | dependencies = [ 1230 | "getrandom", 1231 | "libc", 1232 | "rand_chacha", 1233 | "rand_core", 1234 | "rand_hc", 1235 | ] 1236 | 1237 | [[package]] 1238 | name = "rand_chacha" 1239 | version = "0.2.2" 1240 | source = "registry+https://github.com/rust-lang/crates.io-index" 1241 | checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" 1242 | dependencies = [ 1243 | "ppv-lite86", 1244 | "rand_core", 1245 | ] 1246 | 1247 | [[package]] 1248 | name = "rand_core" 1249 | version = "0.5.1" 1250 | source = "registry+https://github.com/rust-lang/crates.io-index" 1251 | checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" 1252 | dependencies = [ 1253 | "getrandom", 1254 | ] 1255 | 1256 | [[package]] 1257 | name = "rand_hc" 1258 | version = "0.2.0" 1259 | source = "registry+https://github.com/rust-lang/crates.io-index" 1260 | checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" 1261 | dependencies = [ 1262 | "rand_core", 1263 | ] 1264 | 1265 | [[package]] 1266 | name = "redox_syscall" 1267 | version = "0.1.57" 1268 | source = "registry+https://github.com/rust-lang/crates.io-index" 1269 | checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" 1270 | 1271 | [[package]] 1272 | name = "redox_users" 1273 | version = "0.3.4" 1274 | source = "registry+https://github.com/rust-lang/crates.io-index" 1275 | checksum = "09b23093265f8d200fa7b4c2c76297f47e681c655f6f1285a8780d6a022f7431" 1276 | dependencies = [ 1277 | "getrandom", 1278 | "redox_syscall", 1279 | "rust-argon2", 1280 | ] 1281 | 1282 | [[package]] 1283 | name = "ref-cast" 1284 | version = "1.0.2" 1285 | source = "registry+https://github.com/rust-lang/crates.io-index" 1286 | checksum = "745c1787167ddae5569661d5ffb8b25ae5fedbf46717eaa92d652221cec72623" 1287 | dependencies = [ 1288 | "ref-cast-impl", 1289 | ] 1290 | 1291 | [[package]] 1292 | name = "ref-cast-impl" 1293 | version = "1.0.2" 1294 | source = "registry+https://github.com/rust-lang/crates.io-index" 1295 | checksum = "7d21b475ab879ef0e315ad99067fa25778c3b0377f57f1b00207448dac1a3144" 1296 | dependencies = [ 1297 | "proc-macro2", 1298 | "quote", 1299 | "syn", 1300 | ] 1301 | 1302 | [[package]] 1303 | name = "regex" 1304 | version = "1.3.9" 1305 | source = "registry+https://github.com/rust-lang/crates.io-index" 1306 | checksum = "9c3780fcf44b193bc4d09f36d2a3c87b251da4a046c87795a0d35f4f927ad8e6" 1307 | dependencies = [ 1308 | "aho-corasick", 1309 | "memchr", 1310 | "regex-syntax", 1311 | "thread_local", 1312 | ] 1313 | 1314 | [[package]] 1315 | name = "regex-syntax" 1316 | version = "0.6.18" 1317 | source = "registry+https://github.com/rust-lang/crates.io-index" 1318 | checksum = "26412eb97c6b088a6997e05f69403a802a92d520de2f8e63c2b65f9e0f47c4e8" 1319 | 1320 | [[package]] 1321 | name = "remove_dir_all" 1322 | version = "0.5.3" 1323 | source = "registry+https://github.com/rust-lang/crates.io-index" 1324 | checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" 1325 | dependencies = [ 1326 | "winapi 0.3.9", 1327 | ] 1328 | 1329 | [[package]] 1330 | name = "rocket" 1331 | version = "0.1.0" 1332 | dependencies = [ 1333 | "anyhow", 1334 | "dynomite", 1335 | "rocket 0.5.0-dev", 1336 | "rocket_contrib", 1337 | "rusoto_core", 1338 | "serde", 1339 | "uuid", 1340 | ] 1341 | 1342 | [[package]] 1343 | name = "rocket" 1344 | version = "0.5.0-dev" 1345 | source = "git+https://github.com/SergioBenitez/Rocket#f3beb68491d1fb2ab506271fdd6e3238f0bb7162" 1346 | dependencies = [ 1347 | "async-trait", 1348 | "atomic", 1349 | "atty", 1350 | "binascii", 1351 | "futures", 1352 | "log", 1353 | "memchr", 1354 | "num_cpus", 1355 | "pear", 1356 | "ref-cast", 1357 | "rocket_codegen", 1358 | "rocket_http", 1359 | "state", 1360 | "time 0.2.16", 1361 | "tokio", 1362 | "toml", 1363 | "version_check", 1364 | "yansi", 1365 | ] 1366 | 1367 | [[package]] 1368 | name = "rocket_codegen" 1369 | version = "0.5.0-dev" 1370 | source = "git+https://github.com/SergioBenitez/Rocket#f3beb68491d1fb2ab506271fdd6e3238f0bb7162" 1371 | dependencies = [ 1372 | "devise", 1373 | "glob", 1374 | "indexmap", 1375 | "quote", 1376 | "rocket_http", 1377 | ] 1378 | 1379 | [[package]] 1380 | name = "rocket_contrib" 1381 | version = "0.5.0-dev" 1382 | source = "git+https://github.com/SergioBenitez/Rocket#f3beb68491d1fb2ab506271fdd6e3238f0bb7162" 1383 | dependencies = [ 1384 | "log", 1385 | "rocket 0.5.0-dev", 1386 | "serde", 1387 | "serde_json", 1388 | "tokio", 1389 | ] 1390 | 1391 | [[package]] 1392 | name = "rocket_http" 1393 | version = "0.5.0-dev" 1394 | source = "git+https://github.com/SergioBenitez/Rocket#f3beb68491d1fb2ab506271fdd6e3238f0bb7162" 1395 | dependencies = [ 1396 | "cookie", 1397 | "http", 1398 | "hyper", 1399 | "indexmap", 1400 | "log", 1401 | "mime", 1402 | "pear", 1403 | "percent-encoding", 1404 | "ref-cast", 1405 | "smallvec 1.4.1", 1406 | "state", 1407 | "time 0.2.16", 1408 | "tokio", 1409 | "unicode-xid", 1410 | ] 1411 | 1412 | [[package]] 1413 | name = "rusoto_core" 1414 | version = "0.44.0" 1415 | source = "registry+https://github.com/rust-lang/crates.io-index" 1416 | checksum = "841ca8f73e7498ba39146ab43acea906bbbb807d92ec0b7ea4b6293d2621f80d" 1417 | dependencies = [ 1418 | "async-trait", 1419 | "base64 0.12.3", 1420 | "bytes", 1421 | "futures", 1422 | "hmac 0.7.1", 1423 | "http", 1424 | "hyper", 1425 | "hyper-tls", 1426 | "lazy_static", 1427 | "log", 1428 | "md5", 1429 | "percent-encoding", 1430 | "pin-project", 1431 | "rusoto_credential", 1432 | "rusoto_signature", 1433 | "rustc_version", 1434 | "serde", 1435 | "serde_json", 1436 | "sha2 0.8.2", 1437 | "tokio", 1438 | "xml-rs", 1439 | ] 1440 | 1441 | [[package]] 1442 | name = "rusoto_credential" 1443 | version = "0.44.0" 1444 | source = "registry+https://github.com/rust-lang/crates.io-index" 1445 | checksum = "60669ddc1bdbb83ce225593649d36b4c5f6bf9db47cc1ab3e81281abffc853f4" 1446 | dependencies = [ 1447 | "async-trait", 1448 | "chrono", 1449 | "dirs", 1450 | "futures", 1451 | "hyper", 1452 | "pin-project", 1453 | "regex", 1454 | "serde", 1455 | "serde_json", 1456 | "shlex", 1457 | "tokio", 1458 | "zeroize", 1459 | ] 1460 | 1461 | [[package]] 1462 | name = "rusoto_dynamodb" 1463 | version = "0.44.0" 1464 | source = "registry+https://github.com/rust-lang/crates.io-index" 1465 | checksum = "a485bf81a63fd92a4e011b76daed2731b363a6f2b6279b8b26b389699bcf1525" 1466 | dependencies = [ 1467 | "async-trait", 1468 | "bytes", 1469 | "futures", 1470 | "rusoto_core", 1471 | "serde", 1472 | "serde_json", 1473 | ] 1474 | 1475 | [[package]] 1476 | name = "rusoto_signature" 1477 | version = "0.44.0" 1478 | source = "registry+https://github.com/rust-lang/crates.io-index" 1479 | checksum = "9eddff187ac18c5a91d9ccda9353f30cf531620dce437c4db661dfe2e23b2029" 1480 | dependencies = [ 1481 | "base64 0.12.3", 1482 | "bytes", 1483 | "futures", 1484 | "hex", 1485 | "hmac 0.7.1", 1486 | "http", 1487 | "hyper", 1488 | "log", 1489 | "md5", 1490 | "percent-encoding", 1491 | "pin-project", 1492 | "rusoto_credential", 1493 | "rustc_version", 1494 | "serde", 1495 | "sha2 0.8.2", 1496 | "time 0.2.16", 1497 | "tokio", 1498 | ] 1499 | 1500 | [[package]] 1501 | name = "rust-argon2" 1502 | version = "0.7.0" 1503 | source = "registry+https://github.com/rust-lang/crates.io-index" 1504 | checksum = "2bc8af4bda8e1ff4932523b94d3dd20ee30a87232323eda55903ffd71d2fb017" 1505 | dependencies = [ 1506 | "base64 0.11.0", 1507 | "blake2b_simd", 1508 | "constant_time_eq", 1509 | "crossbeam-utils", 1510 | ] 1511 | 1512 | [[package]] 1513 | name = "rustc_version" 1514 | version = "0.2.3" 1515 | source = "registry+https://github.com/rust-lang/crates.io-index" 1516 | checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" 1517 | dependencies = [ 1518 | "semver", 1519 | ] 1520 | 1521 | [[package]] 1522 | name = "ryu" 1523 | version = "1.0.5" 1524 | source = "registry+https://github.com/rust-lang/crates.io-index" 1525 | checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" 1526 | 1527 | [[package]] 1528 | name = "schannel" 1529 | version = "0.1.19" 1530 | source = "registry+https://github.com/rust-lang/crates.io-index" 1531 | checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75" 1532 | dependencies = [ 1533 | "lazy_static", 1534 | "winapi 0.3.9", 1535 | ] 1536 | 1537 | [[package]] 1538 | name = "scopeguard" 1539 | version = "1.1.0" 1540 | source = "registry+https://github.com/rust-lang/crates.io-index" 1541 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 1542 | 1543 | [[package]] 1544 | name = "security-framework" 1545 | version = "0.4.4" 1546 | source = "registry+https://github.com/rust-lang/crates.io-index" 1547 | checksum = "64808902d7d99f78eaddd2b4e2509713babc3dc3c85ad6f4c447680f3c01e535" 1548 | dependencies = [ 1549 | "bitflags", 1550 | "core-foundation", 1551 | "core-foundation-sys", 1552 | "libc", 1553 | "security-framework-sys", 1554 | ] 1555 | 1556 | [[package]] 1557 | name = "security-framework-sys" 1558 | version = "0.4.3" 1559 | source = "registry+https://github.com/rust-lang/crates.io-index" 1560 | checksum = "17bf11d99252f512695eb468de5516e5cf75455521e69dfe343f3b74e4748405" 1561 | dependencies = [ 1562 | "core-foundation-sys", 1563 | "libc", 1564 | ] 1565 | 1566 | [[package]] 1567 | name = "semver" 1568 | version = "0.9.0" 1569 | source = "registry+https://github.com/rust-lang/crates.io-index" 1570 | checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" 1571 | dependencies = [ 1572 | "semver-parser", 1573 | ] 1574 | 1575 | [[package]] 1576 | name = "semver-parser" 1577 | version = "0.7.0" 1578 | source = "registry+https://github.com/rust-lang/crates.io-index" 1579 | checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" 1580 | 1581 | [[package]] 1582 | name = "send_wrapper" 1583 | version = "0.2.0" 1584 | source = "registry+https://github.com/rust-lang/crates.io-index" 1585 | checksum = "a0eddf2e8f50ced781f288c19f18621fa72a3779e3cb58dbf23b07469b0abeb4" 1586 | 1587 | [[package]] 1588 | name = "serde" 1589 | version = "1.0.114" 1590 | source = "registry+https://github.com/rust-lang/crates.io-index" 1591 | checksum = "5317f7588f0a5078ee60ef675ef96735a1442132dc645eb1d12c018620ed8cd3" 1592 | dependencies = [ 1593 | "serde_derive", 1594 | ] 1595 | 1596 | [[package]] 1597 | name = "serde_derive" 1598 | version = "1.0.114" 1599 | source = "registry+https://github.com/rust-lang/crates.io-index" 1600 | checksum = "2a0be94b04690fbaed37cddffc5c134bf537c8e3329d53e982fe04c374978f8e" 1601 | dependencies = [ 1602 | "proc-macro2", 1603 | "quote", 1604 | "syn", 1605 | ] 1606 | 1607 | [[package]] 1608 | name = "serde_json" 1609 | version = "1.0.57" 1610 | source = "registry+https://github.com/rust-lang/crates.io-index" 1611 | checksum = "164eacbdb13512ec2745fb09d51fd5b22b0d65ed294a1dcf7285a360c80a675c" 1612 | dependencies = [ 1613 | "itoa", 1614 | "ryu", 1615 | "serde", 1616 | ] 1617 | 1618 | [[package]] 1619 | name = "sha1" 1620 | version = "0.6.0" 1621 | source = "registry+https://github.com/rust-lang/crates.io-index" 1622 | checksum = "2579985fda508104f7587689507983eadd6a6e84dd35d6d115361f530916fa0d" 1623 | 1624 | [[package]] 1625 | name = "sha2" 1626 | version = "0.8.2" 1627 | source = "registry+https://github.com/rust-lang/crates.io-index" 1628 | checksum = "a256f46ea78a0c0d9ff00077504903ac881a1dafdc20da66545699e7776b3e69" 1629 | dependencies = [ 1630 | "block-buffer 0.7.3", 1631 | "digest 0.8.1", 1632 | "fake-simd", 1633 | "opaque-debug 0.2.3", 1634 | ] 1635 | 1636 | [[package]] 1637 | name = "sha2" 1638 | version = "0.9.1" 1639 | source = "registry+https://github.com/rust-lang/crates.io-index" 1640 | checksum = "2933378ddfeda7ea26f48c555bdad8bb446bf8a3d17832dc83e380d444cfb8c1" 1641 | dependencies = [ 1642 | "block-buffer 0.9.0", 1643 | "cfg-if", 1644 | "cpuid-bool", 1645 | "digest 0.9.0", 1646 | "opaque-debug 0.3.0", 1647 | ] 1648 | 1649 | [[package]] 1650 | name = "shlex" 1651 | version = "0.1.1" 1652 | source = "registry+https://github.com/rust-lang/crates.io-index" 1653 | checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2" 1654 | 1655 | [[package]] 1656 | name = "signal-hook-registry" 1657 | version = "1.2.0" 1658 | source = "registry+https://github.com/rust-lang/crates.io-index" 1659 | checksum = "94f478ede9f64724c5d173d7bb56099ec3e2d9fc2774aac65d34b8b890405f41" 1660 | dependencies = [ 1661 | "arc-swap", 1662 | "libc", 1663 | ] 1664 | 1665 | [[package]] 1666 | name = "slab" 1667 | version = "0.4.2" 1668 | source = "registry+https://github.com/rust-lang/crates.io-index" 1669 | checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" 1670 | 1671 | [[package]] 1672 | name = "smallvec" 1673 | version = "0.6.13" 1674 | source = "registry+https://github.com/rust-lang/crates.io-index" 1675 | checksum = "f7b0758c52e15a8b5e3691eae6cc559f08eee9406e548a4477ba4e67770a82b6" 1676 | dependencies = [ 1677 | "maybe-uninit", 1678 | ] 1679 | 1680 | [[package]] 1681 | name = "smallvec" 1682 | version = "1.4.1" 1683 | source = "registry+https://github.com/rust-lang/crates.io-index" 1684 | checksum = "3757cb9d89161a2f24e1cf78efa0c1fcff485d18e3f55e0aa3480824ddaa0f3f" 1685 | 1686 | [[package]] 1687 | name = "socket2" 1688 | version = "0.3.12" 1689 | source = "registry+https://github.com/rust-lang/crates.io-index" 1690 | checksum = "03088793f677dce356f3ccc2edb1b314ad191ab702a5de3faf49304f7e104918" 1691 | dependencies = [ 1692 | "cfg-if", 1693 | "libc", 1694 | "redox_syscall", 1695 | "winapi 0.3.9", 1696 | ] 1697 | 1698 | [[package]] 1699 | name = "standback" 1700 | version = "0.2.9" 1701 | source = "registry+https://github.com/rust-lang/crates.io-index" 1702 | checksum = "b0437cfb83762844799a60e1e3b489d5ceb6a650fbacb86437badc1b6d87b246" 1703 | dependencies = [ 1704 | "version_check", 1705 | ] 1706 | 1707 | [[package]] 1708 | name = "state" 1709 | version = "0.4.1" 1710 | source = "registry+https://github.com/rust-lang/crates.io-index" 1711 | checksum = "7345c971d1ef21ffdbd103a75990a15eb03604fc8b8852ca8cb418ee1a099028" 1712 | 1713 | [[package]] 1714 | name = "stdweb" 1715 | version = "0.4.20" 1716 | source = "registry+https://github.com/rust-lang/crates.io-index" 1717 | checksum = "d022496b16281348b52d0e30ae99e01a73d737b2f45d38fed4edf79f9325a1d5" 1718 | dependencies = [ 1719 | "discard", 1720 | "rustc_version", 1721 | "stdweb-derive", 1722 | "stdweb-internal-macros", 1723 | "stdweb-internal-runtime", 1724 | "wasm-bindgen", 1725 | ] 1726 | 1727 | [[package]] 1728 | name = "stdweb-derive" 1729 | version = "0.5.3" 1730 | source = "registry+https://github.com/rust-lang/crates.io-index" 1731 | checksum = "c87a60a40fccc84bef0652345bbbbbe20a605bf5d0ce81719fc476f5c03b50ef" 1732 | dependencies = [ 1733 | "proc-macro2", 1734 | "quote", 1735 | "serde", 1736 | "serde_derive", 1737 | "syn", 1738 | ] 1739 | 1740 | [[package]] 1741 | name = "stdweb-internal-macros" 1742 | version = "0.2.9" 1743 | source = "registry+https://github.com/rust-lang/crates.io-index" 1744 | checksum = "58fa5ff6ad0d98d1ffa8cb115892b6e69d67799f6763e162a1c9db421dc22e11" 1745 | dependencies = [ 1746 | "base-x", 1747 | "proc-macro2", 1748 | "quote", 1749 | "serde", 1750 | "serde_derive", 1751 | "serde_json", 1752 | "sha1", 1753 | "syn", 1754 | ] 1755 | 1756 | [[package]] 1757 | name = "stdweb-internal-runtime" 1758 | version = "0.1.5" 1759 | source = "registry+https://github.com/rust-lang/crates.io-index" 1760 | checksum = "213701ba3370744dcd1a12960caa4843b3d68b4d1c0a5d575e0d65b2ee9d16c0" 1761 | 1762 | [[package]] 1763 | name = "subtle" 1764 | version = "1.0.0" 1765 | source = "registry+https://github.com/rust-lang/crates.io-index" 1766 | checksum = "2d67a5a62ba6e01cb2192ff309324cb4875d0c451d55fe2319433abe7a05a8ee" 1767 | 1768 | [[package]] 1769 | name = "subtle" 1770 | version = "2.2.3" 1771 | source = "registry+https://github.com/rust-lang/crates.io-index" 1772 | checksum = "502d53007c02d7605a05df1c1a73ee436952781653da5d0bf57ad608f66932c1" 1773 | 1774 | [[package]] 1775 | name = "syn" 1776 | version = "1.0.36" 1777 | source = "registry+https://github.com/rust-lang/crates.io-index" 1778 | checksum = "4cdb98bcb1f9d81d07b536179c269ea15999b5d14ea958196413869445bb5250" 1779 | dependencies = [ 1780 | "proc-macro2", 1781 | "quote", 1782 | "unicode-xid", 1783 | ] 1784 | 1785 | [[package]] 1786 | name = "syn-mid" 1787 | version = "0.5.0" 1788 | source = "registry+https://github.com/rust-lang/crates.io-index" 1789 | checksum = "7be3539f6c128a931cf19dcee741c1af532c7fd387baa739c03dd2e96479338a" 1790 | dependencies = [ 1791 | "proc-macro2", 1792 | "quote", 1793 | "syn", 1794 | ] 1795 | 1796 | [[package]] 1797 | name = "tempfile" 1798 | version = "3.1.0" 1799 | source = "registry+https://github.com/rust-lang/crates.io-index" 1800 | checksum = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9" 1801 | dependencies = [ 1802 | "cfg-if", 1803 | "libc", 1804 | "rand", 1805 | "redox_syscall", 1806 | "remove_dir_all", 1807 | "winapi 0.3.9", 1808 | ] 1809 | 1810 | [[package]] 1811 | name = "thread_local" 1812 | version = "1.0.1" 1813 | source = "registry+https://github.com/rust-lang/crates.io-index" 1814 | checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" 1815 | dependencies = [ 1816 | "lazy_static", 1817 | ] 1818 | 1819 | [[package]] 1820 | name = "time" 1821 | version = "0.1.43" 1822 | source = "registry+https://github.com/rust-lang/crates.io-index" 1823 | checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438" 1824 | dependencies = [ 1825 | "libc", 1826 | "winapi 0.3.9", 1827 | ] 1828 | 1829 | [[package]] 1830 | name = "time" 1831 | version = "0.2.16" 1832 | source = "registry+https://github.com/rust-lang/crates.io-index" 1833 | checksum = "3a51cadc5b1eec673a685ff7c33192ff7b7603d0b75446fb354939ee615acb15" 1834 | dependencies = [ 1835 | "cfg-if", 1836 | "libc", 1837 | "standback", 1838 | "stdweb", 1839 | "time-macros", 1840 | "version_check", 1841 | "winapi 0.3.9", 1842 | ] 1843 | 1844 | [[package]] 1845 | name = "time-macros" 1846 | version = "0.1.0" 1847 | source = "registry+https://github.com/rust-lang/crates.io-index" 1848 | checksum = "9ae9b6e9f095bc105e183e3cd493d72579be3181ad4004fceb01adbe9eecab2d" 1849 | dependencies = [ 1850 | "proc-macro-hack", 1851 | "time-macros-impl", 1852 | ] 1853 | 1854 | [[package]] 1855 | name = "time-macros-impl" 1856 | version = "0.1.1" 1857 | source = "registry+https://github.com/rust-lang/crates.io-index" 1858 | checksum = "e5c3be1edfad6027c69f5491cf4cb310d1a71ecd6af742788c6ff8bced86b8fa" 1859 | dependencies = [ 1860 | "proc-macro-hack", 1861 | "proc-macro2", 1862 | "quote", 1863 | "standback", 1864 | "syn", 1865 | ] 1866 | 1867 | [[package]] 1868 | name = "tokio" 1869 | version = "0.2.22" 1870 | source = "registry+https://github.com/rust-lang/crates.io-index" 1871 | checksum = "5d34ca54d84bf2b5b4d7d31e901a8464f7b60ac145a284fba25ceb801f2ddccd" 1872 | dependencies = [ 1873 | "bytes", 1874 | "fnv", 1875 | "futures-core", 1876 | "iovec", 1877 | "lazy_static", 1878 | "libc", 1879 | "memchr", 1880 | "mio", 1881 | "mio-named-pipes", 1882 | "mio-uds", 1883 | "num_cpus", 1884 | "pin-project-lite", 1885 | "signal-hook-registry", 1886 | "slab", 1887 | "tokio-macros", 1888 | "winapi 0.3.9", 1889 | ] 1890 | 1891 | [[package]] 1892 | name = "tokio-macros" 1893 | version = "0.2.5" 1894 | source = "registry+https://github.com/rust-lang/crates.io-index" 1895 | checksum = "f0c3acc6aa564495a0f2e1d59fab677cd7f81a19994cfc7f3ad0e64301560389" 1896 | dependencies = [ 1897 | "proc-macro2", 1898 | "quote", 1899 | "syn", 1900 | ] 1901 | 1902 | [[package]] 1903 | name = "tokio-tls" 1904 | version = "0.3.1" 1905 | source = "registry+https://github.com/rust-lang/crates.io-index" 1906 | checksum = "9a70f4fcd7b3b24fb194f837560168208f669ca8cb70d0c4b862944452396343" 1907 | dependencies = [ 1908 | "native-tls", 1909 | "tokio", 1910 | ] 1911 | 1912 | [[package]] 1913 | name = "tokio-util" 1914 | version = "0.3.1" 1915 | source = "registry+https://github.com/rust-lang/crates.io-index" 1916 | checksum = "be8242891f2b6cbef26a2d7e8605133c2c554cd35b3e4948ea892d6d68436499" 1917 | dependencies = [ 1918 | "bytes", 1919 | "futures-core", 1920 | "futures-sink", 1921 | "log", 1922 | "pin-project-lite", 1923 | "tokio", 1924 | ] 1925 | 1926 | [[package]] 1927 | name = "toml" 1928 | version = "0.5.6" 1929 | source = "registry+https://github.com/rust-lang/crates.io-index" 1930 | checksum = "ffc92d160b1eef40665be3a05630d003936a3bc7da7421277846c2613e92c71a" 1931 | dependencies = [ 1932 | "serde", 1933 | ] 1934 | 1935 | [[package]] 1936 | name = "tower-service" 1937 | version = "0.3.0" 1938 | source = "registry+https://github.com/rust-lang/crates.io-index" 1939 | checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860" 1940 | 1941 | [[package]] 1942 | name = "tracing" 1943 | version = "0.1.17" 1944 | source = "registry+https://github.com/rust-lang/crates.io-index" 1945 | checksum = "dbdf4ccd1652592b01286a5dbe1e2a77d78afaa34beadd9872a5f7396f92aaa9" 1946 | dependencies = [ 1947 | "cfg-if", 1948 | "log", 1949 | "tracing-core", 1950 | ] 1951 | 1952 | [[package]] 1953 | name = "tracing-core" 1954 | version = "0.1.11" 1955 | source = "registry+https://github.com/rust-lang/crates.io-index" 1956 | checksum = "94ae75f0d28ae10786f3b1895c55fe72e79928fd5ccdebb5438c75e93fec178f" 1957 | dependencies = [ 1958 | "lazy_static", 1959 | ] 1960 | 1961 | [[package]] 1962 | name = "try-lock" 1963 | version = "0.2.3" 1964 | source = "registry+https://github.com/rust-lang/crates.io-index" 1965 | checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" 1966 | 1967 | [[package]] 1968 | name = "typenum" 1969 | version = "1.12.0" 1970 | source = "registry+https://github.com/rust-lang/crates.io-index" 1971 | checksum = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33" 1972 | 1973 | [[package]] 1974 | name = "unicode-xid" 1975 | version = "0.2.1" 1976 | source = "registry+https://github.com/rust-lang/crates.io-index" 1977 | checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" 1978 | 1979 | [[package]] 1980 | name = "universal-hash" 1981 | version = "0.4.0" 1982 | source = "registry+https://github.com/rust-lang/crates.io-index" 1983 | checksum = "8326b2c654932e3e4f9196e69d08fdf7cfd718e1dc6f66b347e6024a0c961402" 1984 | dependencies = [ 1985 | "generic-array 0.14.3", 1986 | "subtle 2.2.3", 1987 | ] 1988 | 1989 | [[package]] 1990 | name = "uuid" 1991 | version = "0.8.1" 1992 | source = "registry+https://github.com/rust-lang/crates.io-index" 1993 | checksum = "9fde2f6a4bea1d6e007c4ad38c6839fa71cbb63b6dbf5b595aa38dc9b1093c11" 1994 | dependencies = [ 1995 | "rand", 1996 | "serde", 1997 | ] 1998 | 1999 | [[package]] 2000 | name = "vcpkg" 2001 | version = "0.2.10" 2002 | source = "registry+https://github.com/rust-lang/crates.io-index" 2003 | checksum = "6454029bf181f092ad1b853286f23e2c507d8e8194d01d92da4a55c274a5508c" 2004 | 2005 | [[package]] 2006 | name = "version_check" 2007 | version = "0.9.2" 2008 | source = "registry+https://github.com/rust-lang/crates.io-index" 2009 | checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed" 2010 | 2011 | [[package]] 2012 | name = "want" 2013 | version = "0.3.0" 2014 | source = "registry+https://github.com/rust-lang/crates.io-index" 2015 | checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" 2016 | dependencies = [ 2017 | "log", 2018 | "try-lock", 2019 | ] 2020 | 2021 | [[package]] 2022 | name = "wasi" 2023 | version = "0.9.0+wasi-snapshot-preview1" 2024 | source = "registry+https://github.com/rust-lang/crates.io-index" 2025 | checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" 2026 | 2027 | [[package]] 2028 | name = "wasm-bindgen" 2029 | version = "0.2.65" 2030 | source = "registry+https://github.com/rust-lang/crates.io-index" 2031 | checksum = "f3edbcc9536ab7eababcc6d2374a0b7bfe13a2b6d562c5e07f370456b1a8f33d" 2032 | dependencies = [ 2033 | "cfg-if", 2034 | "wasm-bindgen-macro", 2035 | ] 2036 | 2037 | [[package]] 2038 | name = "wasm-bindgen-backend" 2039 | version = "0.2.65" 2040 | source = "registry+https://github.com/rust-lang/crates.io-index" 2041 | checksum = "89ed2fb8c84bfad20ea66b26a3743f3e7ba8735a69fe7d95118c33ec8fc1244d" 2042 | dependencies = [ 2043 | "bumpalo", 2044 | "lazy_static", 2045 | "log", 2046 | "proc-macro2", 2047 | "quote", 2048 | "syn", 2049 | "wasm-bindgen-shared", 2050 | ] 2051 | 2052 | [[package]] 2053 | name = "wasm-bindgen-futures" 2054 | version = "0.4.15" 2055 | source = "registry+https://github.com/rust-lang/crates.io-index" 2056 | checksum = "41ad6e4e8b2b7f8c90b6e09a9b590ea15cb0d1dbe28502b5a405cd95d1981671" 2057 | dependencies = [ 2058 | "cfg-if", 2059 | "js-sys", 2060 | "wasm-bindgen", 2061 | "web-sys", 2062 | ] 2063 | 2064 | [[package]] 2065 | name = "wasm-bindgen-macro" 2066 | version = "0.2.65" 2067 | source = "registry+https://github.com/rust-lang/crates.io-index" 2068 | checksum = "eb071268b031a64d92fc6cf691715ca5a40950694d8f683c5bb43db7c730929e" 2069 | dependencies = [ 2070 | "quote", 2071 | "wasm-bindgen-macro-support", 2072 | ] 2073 | 2074 | [[package]] 2075 | name = "wasm-bindgen-macro-support" 2076 | version = "0.2.65" 2077 | source = "registry+https://github.com/rust-lang/crates.io-index" 2078 | checksum = "cf592c807080719d1ff2f245a687cbadb3ed28b2077ed7084b47aba8b691f2c6" 2079 | dependencies = [ 2080 | "proc-macro2", 2081 | "quote", 2082 | "syn", 2083 | "wasm-bindgen-backend", 2084 | "wasm-bindgen-shared", 2085 | ] 2086 | 2087 | [[package]] 2088 | name = "wasm-bindgen-shared" 2089 | version = "0.2.65" 2090 | source = "registry+https://github.com/rust-lang/crates.io-index" 2091 | checksum = "72b6c0220ded549d63860c78c38f3bcc558d1ca3f4efa74942c536ddbbb55e87" 2092 | 2093 | [[package]] 2094 | name = "wasm-timer" 2095 | version = "0.2.4" 2096 | source = "registry+https://github.com/rust-lang/crates.io-index" 2097 | checksum = "324c5e65a08699c9c4334ba136597ab22b85dccd4b65dd1e36ccf8f723a95b54" 2098 | dependencies = [ 2099 | "futures", 2100 | "js-sys", 2101 | "parking_lot", 2102 | "pin-utils", 2103 | "send_wrapper", 2104 | "wasm-bindgen", 2105 | "wasm-bindgen-futures", 2106 | "web-sys", 2107 | ] 2108 | 2109 | [[package]] 2110 | name = "web-sys" 2111 | version = "0.3.42" 2112 | source = "registry+https://github.com/rust-lang/crates.io-index" 2113 | checksum = "8be2398f326b7ba09815d0b403095f34dd708579220d099caae89be0b32137b2" 2114 | dependencies = [ 2115 | "js-sys", 2116 | "wasm-bindgen", 2117 | ] 2118 | 2119 | [[package]] 2120 | name = "winapi" 2121 | version = "0.2.8" 2122 | source = "registry+https://github.com/rust-lang/crates.io-index" 2123 | checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" 2124 | 2125 | [[package]] 2126 | name = "winapi" 2127 | version = "0.3.9" 2128 | source = "registry+https://github.com/rust-lang/crates.io-index" 2129 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 2130 | dependencies = [ 2131 | "winapi-i686-pc-windows-gnu", 2132 | "winapi-x86_64-pc-windows-gnu", 2133 | ] 2134 | 2135 | [[package]] 2136 | name = "winapi-build" 2137 | version = "0.1.1" 2138 | source = "registry+https://github.com/rust-lang/crates.io-index" 2139 | checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" 2140 | 2141 | [[package]] 2142 | name = "winapi-i686-pc-windows-gnu" 2143 | version = "0.4.0" 2144 | source = "registry+https://github.com/rust-lang/crates.io-index" 2145 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 2146 | 2147 | [[package]] 2148 | name = "winapi-x86_64-pc-windows-gnu" 2149 | version = "0.4.0" 2150 | source = "registry+https://github.com/rust-lang/crates.io-index" 2151 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 2152 | 2153 | [[package]] 2154 | name = "ws2_32-sys" 2155 | version = "0.2.1" 2156 | source = "registry+https://github.com/rust-lang/crates.io-index" 2157 | checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" 2158 | dependencies = [ 2159 | "winapi 0.2.8", 2160 | "winapi-build", 2161 | ] 2162 | 2163 | [[package]] 2164 | name = "xml-rs" 2165 | version = "0.8.3" 2166 | source = "registry+https://github.com/rust-lang/crates.io-index" 2167 | checksum = "b07db065a5cf61a7e4ba64f29e67db906fb1787316516c4e6e5ff0fea1efcd8a" 2168 | 2169 | [[package]] 2170 | name = "yansi" 2171 | version = "0.5.0" 2172 | source = "registry+https://github.com/rust-lang/crates.io-index" 2173 | checksum = "9fc79f4a1e39857fc00c3f662cbf2651c771f00e9c15fe2abc341806bd46bd71" 2174 | 2175 | [[package]] 2176 | name = "zeroize" 2177 | version = "1.1.0" 2178 | source = "registry+https://github.com/rust-lang/crates.io-index" 2179 | checksum = "3cbac2ed2ba24cc90f5e06485ac8c7c1e5449fe8911aef4d8877218af021a5b8" 2180 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "rocket" 3 | version = "0.1.0" 4 | authors = ["Paul Maddox "] 5 | edition = "2018" 6 | 7 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 8 | 9 | [dependencies] 10 | rocket = { git = "https://github.com/SergioBenitez/Rocket" } 11 | rocket_contrib = { git = "https://github.com/SergioBenitez/Rocket" } 12 | uuid = { version = "0.8", features = ["serde", "v4"] } 13 | rusoto_core = "0.44.0" 14 | dynomite = "0.9" 15 | serde = "1.0" 16 | anyhow = "1.0" 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # rust-rest-dynamodb 2 | 3 | An example REST Rust web service, with a DynamoDB backend. 4 | 5 | This project uses the [rocket.rs](rocket.rs) web framework to define an API for creating, reading, updating, deleting and listing products. 6 | 7 | It uses [Rusoto](https://github.com/rusoto/rusoto) and [Dynomite](https://github.com/softprops/dynomite) for accessing Amazon DynamoDB. 8 | 9 | This repository currently uses the `master` branch of Rocket, due to support for async/tokio. 10 | 11 | 12 | ## Alternative: Deploy using AWS Lambda 13 | 14 | If you're interested in what this would look like with Serverless and AWS Lambda (instead of Rocket), then check out this cool repo that my collegue [Nicolas Moutschen](https://twitter.com/NMoutschen) put together: 15 | 16 | https://github.com/nmoutschen/rust-rest-serverless 17 | 18 | ## Running this example 19 | 20 | First install the Rust toolchain, by following the instructions at: https://rustup.rs/ 21 | 22 | Then clone the repo: 23 | 24 | ``` 25 | $ git clone https://github.com/PaulMaddox/rust-rest-dynamodb.git 26 | $ cd rust-rest-dynamodb 27 | ``` 28 | 29 | You will need to make sure that: 30 | 31 | - You have valid AWS credentials (either env variables, IAM role or ~/.aws/credentials file) 32 | - You create a DynamoDB table in advance, called `products`. It only needs a single field defined (the partition key) called `id`, of type String. 33 | - The region in main.rs matches the region you have the DynamoDB table deployed to 34 | 35 | ... and finally run the project with cargo 36 | 37 | ``` 38 | $ cargo run 39 | ``` 40 | -------------------------------------------------------------------------------- /src/errors.rs: -------------------------------------------------------------------------------- 1 | use rocket::response::Responder; 2 | 3 | pub type Result = std::result::Result; 4 | 5 | #[derive(Responder)] 6 | pub enum Error { 7 | #[response(status = 500, content_type = "plain")] 8 | InternalError(String), 9 | 10 | #[response(status = 404, content_type = "plain")] 11 | NotFoundError(String), 12 | 13 | #[response(status = 400, content_type = "plain")] 14 | BadRequestError(String), 15 | } 16 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] 2 | extern crate rocket; 3 | 4 | use dynomite::dynamodb::*; 5 | use rusoto_core::Region; 6 | 7 | pub mod errors; 8 | use errors::*; 9 | 10 | mod products; 11 | 12 | #[launch] 13 | fn rocket() -> rocket::Rocket { 14 | let db = DynamoDbClient::new(Region::default()); 15 | rocket::ignite() 16 | .mount("/", routes![index]) 17 | .mount("/products", products::get_routes()) 18 | .manage(db) 19 | } 20 | 21 | #[get("/")] 22 | async fn index() -> Result { 23 | Ok("Hello World".to_string()) 24 | } 25 | -------------------------------------------------------------------------------- /src/products/mod.rs: -------------------------------------------------------------------------------- 1 | use dynomite::*; 2 | use serde::{Deserialize, Serialize}; 3 | use uuid::Uuid; 4 | 5 | mod routes; 6 | 7 | pub fn table_name() -> String { 8 | String::from("products") 9 | } 10 | 11 | #[derive(Debug, Serialize, Deserialize, Item, Clone)] 12 | pub struct Product { 13 | #[dynomite(partition_key)] 14 | pub id: Option, 15 | pub name: String, 16 | pub description: String, 17 | } 18 | 19 | impl Default for Product { 20 | fn default() -> Self { 21 | Product { 22 | id: Some(Uuid::new_v4()), 23 | name: "".to_string(), 24 | description: "".to_string(), 25 | } 26 | } 27 | } 28 | 29 | pub fn get_routes() -> Vec { 30 | routes![routes::list, routes::create, routes::delete, routes::get] 31 | } 32 | -------------------------------------------------------------------------------- /src/products/routes.rs: -------------------------------------------------------------------------------- 1 | use dynomite::dynamodb::*; 2 | use dynomite::*; 3 | use rocket::State; 4 | use rocket_contrib::json::Json; 5 | use uuid::Uuid; 6 | 7 | use super::Product; 8 | use crate::errors::*; 9 | 10 | // CREATE: This handler is responsible for creating new product items 11 | // POST /products 12 | #[post("/", format = "json", data = "")] 13 | pub async fn create( 14 | db: State<'_, DynamoDbClient>, 15 | product: Json, 16 | ) -> Result> { 17 | let p = Product { 18 | id: Some(Uuid::new_v4()), 19 | ..product.0 20 | }; 21 | 22 | db.put_item(PutItemInput { 23 | table_name: super::table_name(), 24 | item: p.clone().into(), 25 | ..PutItemInput::default() 26 | }) 27 | .await 28 | .map(|_| Json(p)) 29 | .map_err(|e| Error::InternalError(e.to_string())) 30 | } 31 | 32 | // LIST: This handler is responsible for listing all products 33 | // GET /products 34 | #[get("/")] 35 | pub async fn list(db: State<'_, DynamoDbClient>) -> Result>> { 36 | let products: Vec = db 37 | .scan(ScanInput { 38 | table_name: String::from(super::table_name()), 39 | ..ScanInput::default() 40 | }) 41 | .await 42 | .map_err(|e| Error::InternalError(e.to_string())) 43 | .map(|output| { 44 | output 45 | .items 46 | .unwrap_or_default() 47 | .into_iter() 48 | .flat_map(|item| Product::from_attrs(item.clone())) 49 | .collect() 50 | })?; 51 | 52 | Ok(Json(products)) 53 | } 54 | 55 | // DELETE: This handler is responsible for deleting a single product 56 | // DELETE /products/ 57 | #[delete("/")] 58 | pub async fn delete(db: State<'_, DynamoDbClient>, id: String) -> Result<()> { 59 | let id: Uuid = 60 | Uuid::parse_str(&id).map_err(|_| Error::BadRequestError("invalid id".to_string()))?; 61 | 62 | let product = Product { 63 | id: Some(id), 64 | ..Product::default() 65 | }; 66 | 67 | db.delete_item(DeleteItemInput { 68 | table_name: super::table_name(), 69 | key: product.key(), 70 | ..DeleteItemInput::default() 71 | }) 72 | .await 73 | .map_err(|e| Error::InternalError(e.to_string()))?; 74 | 75 | Ok(()) 76 | } 77 | // GET: This handler is responsible for getting a single product 78 | // GET /products/ 79 | #[get("/")] 80 | pub async fn get(db: State<'_, DynamoDbClient>, id: String) -> Result> { 81 | let id: Uuid = 82 | Uuid::parse_str(&id).map_err(|_| Error::BadRequestError("invalid id".to_string()))?; 83 | 84 | let product = Product { 85 | id: Some(id), 86 | ..Product::default() 87 | }; 88 | 89 | let result = db 90 | .get_item(GetItemInput { 91 | table_name: super::table_name(), 92 | key: product.key(), 93 | ..GetItemInput::default() 94 | }) 95 | .await 96 | .map_err(|e| Error::InternalError(e.to_string()))?; 97 | 98 | match result.item { 99 | Some(item) => { 100 | let product = 101 | Product::from_attrs(item).map_err(|e| Error::InternalError(e.to_string()))?; 102 | Ok(Json(product)) 103 | } 104 | None => Err(Error::NotFoundError("not found".to_string())), 105 | } 106 | } 107 | --------------------------------------------------------------------------------