Merge pull request #247548 from figsoda/reshape

reshape: refactor

authored by

Weijia Wang and committed by
GitHub
d6429950 50071c61

+7 -1098
-1080
pkgs/development/tools/reshape/Cargo.lock
··· 1 - # This file is automatically @generated by Cargo. 2 - # It is not intended for manual editing. 3 - version = 3 4 - 5 - [[package]] 6 - name = "addr2line" 7 - version = "0.19.0" 8 - source = "registry+https://github.com/rust-lang/crates.io-index" 9 - checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" 10 - dependencies = [ 11 - "gimli", 12 - ] 13 - 14 - [[package]] 15 - name = "adler" 16 - version = "1.0.2" 17 - source = "registry+https://github.com/rust-lang/crates.io-index" 18 - checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" 19 - 20 - [[package]] 21 - name = "any_ascii" 22 - version = "0.1.7" 23 - source = "registry+https://github.com/rust-lang/crates.io-index" 24 - checksum = "70033777eb8b5124a81a1889416543dddef2de240019b674c81285a2635a7e1e" 25 - 26 - [[package]] 27 - name = "anyhow" 28 - version = "1.0.68" 29 - source = "registry+https://github.com/rust-lang/crates.io-index" 30 - checksum = "2cb2f989d18dd141ab8ae82f64d1a8cdd37e0840f73a406896cf5e99502fab61" 31 - dependencies = [ 32 - "backtrace", 33 - ] 34 - 35 - [[package]] 36 - name = "async-trait" 37 - version = "0.1.63" 38 - source = "registry+https://github.com/rust-lang/crates.io-index" 39 - checksum = "eff18d764974428cf3a9328e23fc5c986f5fbed46e6cd4cdf42544df5d297ec1" 40 - dependencies = [ 41 - "proc-macro2", 42 - "quote", 43 - "syn", 44 - ] 45 - 46 - [[package]] 47 - name = "atty" 48 - version = "0.2.14" 49 - source = "registry+https://github.com/rust-lang/crates.io-index" 50 - checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" 51 - dependencies = [ 52 - "hermit-abi", 53 - "libc", 54 - "winapi", 55 - ] 56 - 57 - [[package]] 58 - name = "autocfg" 59 - version = "1.1.0" 60 - source = "registry+https://github.com/rust-lang/crates.io-index" 61 - checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 62 - 63 - [[package]] 64 - name = "backtrace" 65 - version = "0.3.67" 66 - source = "registry+https://github.com/rust-lang/crates.io-index" 67 - checksum = "233d376d6d185f2a3093e58f283f60f880315b6c60075b01f36b3b85154564ca" 68 - dependencies = [ 69 - "addr2line", 70 - "cc", 71 - "cfg-if", 72 - "libc", 73 - "miniz_oxide", 74 - "object", 75 - "rustc-demangle", 76 - ] 77 - 78 - [[package]] 79 - name = "base64" 80 - version = "0.13.1" 81 - source = "registry+https://github.com/rust-lang/crates.io-index" 82 - checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" 83 - 84 - [[package]] 85 - name = "bitflags" 86 - version = "1.3.2" 87 - source = "registry+https://github.com/rust-lang/crates.io-index" 88 - checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 89 - 90 - [[package]] 91 - name = "block-buffer" 92 - version = "0.10.3" 93 - source = "registry+https://github.com/rust-lang/crates.io-index" 94 - checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e" 95 - dependencies = [ 96 - "generic-array", 97 - ] 98 - 99 - [[package]] 100 - name = "byteorder" 101 - version = "1.4.3" 102 - source = "registry+https://github.com/rust-lang/crates.io-index" 103 - checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" 104 - 105 - [[package]] 106 - name = "bytes" 107 - version = "1.3.0" 108 - source = "registry+https://github.com/rust-lang/crates.io-index" 109 - checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" 110 - 111 - [[package]] 112 - name = "cc" 113 - version = "1.0.78" 114 - source = "registry+https://github.com/rust-lang/crates.io-index" 115 - checksum = "a20104e2335ce8a659d6dd92a51a767a0c062599c73b343fd152cb401e828c3d" 116 - 117 - [[package]] 118 - name = "cfg-if" 119 - version = "1.0.0" 120 - source = "registry+https://github.com/rust-lang/crates.io-index" 121 - checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 122 - 123 - [[package]] 124 - name = "clap" 125 - version = "3.2.23" 126 - source = "registry+https://github.com/rust-lang/crates.io-index" 127 - checksum = "71655c45cb9845d3270c9d6df84ebe72b4dad3c2ba3f7023ad47c144e4e473a5" 128 - dependencies = [ 129 - "atty", 130 - "bitflags", 131 - "clap_derive", 132 - "clap_lex", 133 - "indexmap", 134 - "once_cell", 135 - "strsim", 136 - "termcolor", 137 - "textwrap", 138 - ] 139 - 140 - [[package]] 141 - name = "clap_derive" 142 - version = "3.2.18" 143 - source = "registry+https://github.com/rust-lang/crates.io-index" 144 - checksum = "ea0c8bce528c4be4da13ea6fead8965e95b6073585a2f05204bd8f4119f82a65" 145 - dependencies = [ 146 - "heck", 147 - "proc-macro-error", 148 - "proc-macro2", 149 - "quote", 150 - "syn", 151 - ] 152 - 153 - [[package]] 154 - name = "clap_lex" 155 - version = "0.2.4" 156 - source = "registry+https://github.com/rust-lang/crates.io-index" 157 - checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" 158 - dependencies = [ 159 - "os_str_bytes", 160 - ] 161 - 162 - [[package]] 163 - name = "colored" 164 - version = "2.0.0" 165 - source = "registry+https://github.com/rust-lang/crates.io-index" 166 - checksum = "b3616f750b84d8f0de8a58bda93e08e2a81ad3f523089b05f1dffecab48c6cbd" 167 - dependencies = [ 168 - "atty", 169 - "lazy_static", 170 - "winapi", 171 - ] 172 - 173 - [[package]] 174 - name = "cpufeatures" 175 - version = "0.2.5" 176 - source = "registry+https://github.com/rust-lang/crates.io-index" 177 - checksum = "28d997bd5e24a5928dd43e46dc529867e207907fe0b239c3477d924f7f2ca320" 178 - dependencies = [ 179 - "libc", 180 - ] 181 - 182 - [[package]] 183 - name = "crypto-common" 184 - version = "0.1.6" 185 - source = "registry+https://github.com/rust-lang/crates.io-index" 186 - checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" 187 - dependencies = [ 188 - "generic-array", 189 - "typenum", 190 - ] 191 - 192 - [[package]] 193 - name = "ctor" 194 - version = "0.1.26" 195 - source = "registry+https://github.com/rust-lang/crates.io-index" 196 - checksum = "6d2301688392eb071b0bf1a37be05c469d3cc4dbbd95df672fe28ab021e6a096" 197 - dependencies = [ 198 - "quote", 199 - "syn", 200 - ] 201 - 202 - [[package]] 203 - name = "digest" 204 - version = "0.10.6" 205 - source = "registry+https://github.com/rust-lang/crates.io-index" 206 - checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" 207 - dependencies = [ 208 - "block-buffer", 209 - "crypto-common", 210 - "subtle", 211 - ] 212 - 213 - [[package]] 214 - name = "dotenv" 215 - version = "0.15.0" 216 - source = "registry+https://github.com/rust-lang/crates.io-index" 217 - checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" 218 - 219 - [[package]] 220 - name = "erased-serde" 221 - version = "0.3.24" 222 - source = "registry+https://github.com/rust-lang/crates.io-index" 223 - checksum = "e4ca605381c017ec7a5fef5e548f1cfaa419ed0f6df6367339300db74c92aa7d" 224 - dependencies = [ 225 - "serde", 226 - ] 227 - 228 - [[package]] 229 - name = "fallible-iterator" 230 - version = "0.2.0" 231 - source = "registry+https://github.com/rust-lang/crates.io-index" 232 - checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" 233 - 234 - [[package]] 235 - name = "futures-channel" 236 - version = "0.3.25" 237 - source = "registry+https://github.com/rust-lang/crates.io-index" 238 - checksum = "52ba265a92256105f45b719605a571ffe2d1f0fea3807304b522c1d778f79eed" 239 - dependencies = [ 240 - "futures-core", 241 - "futures-sink", 242 - ] 243 - 244 - [[package]] 245 - name = "futures-core" 246 - version = "0.3.25" 247 - source = "registry+https://github.com/rust-lang/crates.io-index" 248 - checksum = "04909a7a7e4633ae6c4a9ab280aeb86da1236243a77b694a49eacd659a4bd3ac" 249 - 250 - [[package]] 251 - name = "futures-macro" 252 - version = "0.3.25" 253 - source = "registry+https://github.com/rust-lang/crates.io-index" 254 - checksum = "bdfb8ce053d86b91919aad980c220b1fb8401a9394410e1c289ed7e66b61835d" 255 - dependencies = [ 256 - "proc-macro2", 257 - "quote", 258 - "syn", 259 - ] 260 - 261 - [[package]] 262 - name = "futures-sink" 263 - version = "0.3.25" 264 - source = "registry+https://github.com/rust-lang/crates.io-index" 265 - checksum = "39c15cf1a4aa79df40f1bb462fb39676d0ad9e366c2a33b590d7c66f4f81fcf9" 266 - 267 - [[package]] 268 - name = "futures-task" 269 - version = "0.3.25" 270 - source = "registry+https://github.com/rust-lang/crates.io-index" 271 - checksum = "2ffb393ac5d9a6eaa9d3fdf37ae2776656b706e200c8e16b1bdb227f5198e6ea" 272 - 273 - [[package]] 274 - name = "futures-util" 275 - version = "0.3.25" 276 - source = "registry+https://github.com/rust-lang/crates.io-index" 277 - checksum = "197676987abd2f9cadff84926f410af1c183608d36641465df73ae8211dc65d6" 278 - dependencies = [ 279 - "futures-core", 280 - "futures-macro", 281 - "futures-sink", 282 - "futures-task", 283 - "pin-project-lite", 284 - "pin-utils", 285 - "slab", 286 - ] 287 - 288 - [[package]] 289 - name = "generic-array" 290 - version = "0.14.6" 291 - source = "registry+https://github.com/rust-lang/crates.io-index" 292 - checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" 293 - dependencies = [ 294 - "typenum", 295 - "version_check", 296 - ] 297 - 298 - [[package]] 299 - name = "getrandom" 300 - version = "0.2.8" 301 - source = "registry+https://github.com/rust-lang/crates.io-index" 302 - checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" 303 - dependencies = [ 304 - "cfg-if", 305 - "libc", 306 - "wasi", 307 - ] 308 - 309 - [[package]] 310 - name = "ghost" 311 - version = "0.1.7" 312 - source = "registry+https://github.com/rust-lang/crates.io-index" 313 - checksum = "41973d4c45f7a35af8753ba3457cc99d406d863941fd7f52663cff54a5ab99b3" 314 - dependencies = [ 315 - "proc-macro2", 316 - "quote", 317 - "syn", 318 - ] 319 - 320 - [[package]] 321 - name = "gimli" 322 - version = "0.27.1" 323 - source = "registry+https://github.com/rust-lang/crates.io-index" 324 - checksum = "221996f774192f0f718773def8201c4ae31f02616a54ccfc2d358bb0e5cefdec" 325 - 326 - [[package]] 327 - name = "hashbrown" 328 - version = "0.12.3" 329 - source = "registry+https://github.com/rust-lang/crates.io-index" 330 - checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" 331 - 332 - [[package]] 333 - name = "heck" 334 - version = "0.4.0" 335 - source = "registry+https://github.com/rust-lang/crates.io-index" 336 - checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9" 337 - 338 - [[package]] 339 - name = "hermit-abi" 340 - version = "0.1.19" 341 - source = "registry+https://github.com/rust-lang/crates.io-index" 342 - checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" 343 - dependencies = [ 344 - "libc", 345 - ] 346 - 347 - [[package]] 348 - name = "hmac" 349 - version = "0.12.1" 350 - source = "registry+https://github.com/rust-lang/crates.io-index" 351 - checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" 352 - dependencies = [ 353 - "digest", 354 - ] 355 - 356 - [[package]] 357 - name = "indexmap" 358 - version = "1.9.2" 359 - source = "registry+https://github.com/rust-lang/crates.io-index" 360 - checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" 361 - dependencies = [ 362 - "autocfg", 363 - "hashbrown", 364 - ] 365 - 366 - [[package]] 367 - name = "inventory" 368 - version = "0.2.3" 369 - source = "registry+https://github.com/rust-lang/crates.io-index" 370 - checksum = "84344c6e0b90a9e2b6f3f9abe5cc74402684e348df7b32adca28747e0cef091a" 371 - dependencies = [ 372 - "ctor", 373 - "ghost", 374 - ] 375 - 376 - [[package]] 377 - name = "itoa" 378 - version = "1.0.5" 379 - source = "registry+https://github.com/rust-lang/crates.io-index" 380 - checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" 381 - 382 - [[package]] 383 - name = "lazy_static" 384 - version = "1.4.0" 385 - source = "registry+https://github.com/rust-lang/crates.io-index" 386 - checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 387 - 388 - [[package]] 389 - name = "lexical-sort" 390 - version = "0.3.1" 391 - source = "registry+https://github.com/rust-lang/crates.io-index" 392 - checksum = "c09e4591611e231daf4d4c685a66cb0410cc1e502027a20ae55f2bb9e997207a" 393 - dependencies = [ 394 - "any_ascii", 395 - ] 396 - 397 - [[package]] 398 - name = "libc" 399 - version = "0.2.139" 400 - source = "registry+https://github.com/rust-lang/crates.io-index" 401 - checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 402 - 403 - [[package]] 404 - name = "lock_api" 405 - version = "0.4.9" 406 - source = "registry+https://github.com/rust-lang/crates.io-index" 407 - checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 408 - dependencies = [ 409 - "autocfg", 410 - "scopeguard", 411 - ] 412 - 413 - [[package]] 414 - name = "log" 415 - version = "0.4.17" 416 - source = "registry+https://github.com/rust-lang/crates.io-index" 417 - checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 418 - dependencies = [ 419 - "cfg-if", 420 - ] 421 - 422 - [[package]] 423 - name = "md-5" 424 - version = "0.10.5" 425 - source = "registry+https://github.com/rust-lang/crates.io-index" 426 - checksum = "6365506850d44bff6e2fbcb5176cf63650e48bd45ef2fe2665ae1570e0f4b9ca" 427 - dependencies = [ 428 - "digest", 429 - ] 430 - 431 - [[package]] 432 - name = "memchr" 433 - version = "2.5.0" 434 - source = "registry+https://github.com/rust-lang/crates.io-index" 435 - checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 436 - 437 - [[package]] 438 - name = "miniz_oxide" 439 - version = "0.6.2" 440 - source = "registry+https://github.com/rust-lang/crates.io-index" 441 - checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa" 442 - dependencies = [ 443 - "adler", 444 - ] 445 - 446 - [[package]] 447 - name = "mio" 448 - version = "0.8.5" 449 - source = "registry+https://github.com/rust-lang/crates.io-index" 450 - checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" 451 - dependencies = [ 452 - "libc", 453 - "log", 454 - "wasi", 455 - "windows-sys", 456 - ] 457 - 458 - [[package]] 459 - name = "object" 460 - version = "0.30.3" 461 - source = "registry+https://github.com/rust-lang/crates.io-index" 462 - checksum = "ea86265d3d3dcb6a27fc51bd29a4bf387fae9d2986b823079d4986af253eb439" 463 - dependencies = [ 464 - "memchr", 465 - ] 466 - 467 - [[package]] 468 - name = "once_cell" 469 - version = "1.17.0" 470 - source = "registry+https://github.com/rust-lang/crates.io-index" 471 - checksum = "6f61fba1741ea2b3d6a1e3178721804bb716a68a6aeba1149b5d52e3d464ea66" 472 - 473 - [[package]] 474 - name = "os_str_bytes" 475 - version = "6.4.1" 476 - source = "registry+https://github.com/rust-lang/crates.io-index" 477 - checksum = "9b7820b9daea5457c9f21c69448905d723fbd21136ccf521748f23fd49e723ee" 478 - 479 - [[package]] 480 - name = "parking_lot" 481 - version = "0.12.1" 482 - source = "registry+https://github.com/rust-lang/crates.io-index" 483 - checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 484 - dependencies = [ 485 - "lock_api", 486 - "parking_lot_core", 487 - ] 488 - 489 - [[package]] 490 - name = "parking_lot_core" 491 - version = "0.9.6" 492 - source = "registry+https://github.com/rust-lang/crates.io-index" 493 - checksum = "ba1ef8814b5c993410bb3adfad7a5ed269563e4a2f90c41f5d85be7fb47133bf" 494 - dependencies = [ 495 - "cfg-if", 496 - "libc", 497 - "redox_syscall", 498 - "smallvec", 499 - "windows-sys", 500 - ] 501 - 502 - [[package]] 503 - name = "percent-encoding" 504 - version = "2.2.0" 505 - source = "registry+https://github.com/rust-lang/crates.io-index" 506 - checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" 507 - 508 - [[package]] 509 - name = "phf" 510 - version = "0.11.1" 511 - source = "registry+https://github.com/rust-lang/crates.io-index" 512 - checksum = "928c6535de93548188ef63bb7c4036bd415cd8f36ad25af44b9789b2ee72a48c" 513 - dependencies = [ 514 - "phf_shared", 515 - ] 516 - 517 - [[package]] 518 - name = "phf_shared" 519 - version = "0.11.1" 520 - source = "registry+https://github.com/rust-lang/crates.io-index" 521 - checksum = "e1fb5f6f826b772a8d4c0394209441e7d37cbbb967ae9c7e0e8134365c9ee676" 522 - dependencies = [ 523 - "siphasher", 524 - ] 525 - 526 - [[package]] 527 - name = "pin-project-lite" 528 - version = "0.2.9" 529 - source = "registry+https://github.com/rust-lang/crates.io-index" 530 - checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 531 - 532 - [[package]] 533 - name = "pin-utils" 534 - version = "0.1.0" 535 - source = "registry+https://github.com/rust-lang/crates.io-index" 536 - checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 537 - 538 - [[package]] 539 - name = "postgres" 540 - version = "0.19.4" 541 - source = "registry+https://github.com/rust-lang/crates.io-index" 542 - checksum = "960c214283ef8f0027974c03e9014517ced5db12f021a9abb66185a5751fab0a" 543 - dependencies = [ 544 - "bytes", 545 - "fallible-iterator", 546 - "futures-util", 547 - "log", 548 - "tokio", 549 - "tokio-postgres", 550 - ] 551 - 552 - [[package]] 553 - name = "postgres-protocol" 554 - version = "0.6.4" 555 - source = "registry+https://github.com/rust-lang/crates.io-index" 556 - checksum = "878c6cbf956e03af9aa8204b407b9cbf47c072164800aa918c516cd4b056c50c" 557 - dependencies = [ 558 - "base64", 559 - "byteorder", 560 - "bytes", 561 - "fallible-iterator", 562 - "hmac", 563 - "md-5", 564 - "memchr", 565 - "rand", 566 - "sha2", 567 - "stringprep", 568 - ] 569 - 570 - [[package]] 571 - name = "postgres-types" 572 - version = "0.2.4" 573 - source = "registry+https://github.com/rust-lang/crates.io-index" 574 - checksum = "73d946ec7d256b04dfadc4e6a3292324e6f417124750fc5c0950f981b703a0f1" 575 - dependencies = [ 576 - "bytes", 577 - "fallible-iterator", 578 - "postgres-protocol", 579 - "serde", 580 - "serde_json", 581 - ] 582 - 583 - [[package]] 584 - name = "ppv-lite86" 585 - version = "0.2.17" 586 - source = "registry+https://github.com/rust-lang/crates.io-index" 587 - checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" 588 - 589 - [[package]] 590 - name = "proc-macro-error" 591 - version = "1.0.4" 592 - source = "registry+https://github.com/rust-lang/crates.io-index" 593 - checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" 594 - dependencies = [ 595 - "proc-macro-error-attr", 596 - "proc-macro2", 597 - "quote", 598 - "syn", 599 - "version_check", 600 - ] 601 - 602 - [[package]] 603 - name = "proc-macro-error-attr" 604 - version = "1.0.4" 605 - source = "registry+https://github.com/rust-lang/crates.io-index" 606 - checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" 607 - dependencies = [ 608 - "proc-macro2", 609 - "quote", 610 - "version_check", 611 - ] 612 - 613 - [[package]] 614 - name = "proc-macro2" 615 - version = "1.0.50" 616 - source = "registry+https://github.com/rust-lang/crates.io-index" 617 - checksum = "6ef7d57beacfaf2d8aee5937dab7b7f28de3cb8b1828479bb5de2a7106f2bae2" 618 - dependencies = [ 619 - "unicode-ident", 620 - ] 621 - 622 - [[package]] 623 - name = "quote" 624 - version = "1.0.23" 625 - source = "registry+https://github.com/rust-lang/crates.io-index" 626 - checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 627 - dependencies = [ 628 - "proc-macro2", 629 - ] 630 - 631 - [[package]] 632 - name = "rand" 633 - version = "0.8.5" 634 - source = "registry+https://github.com/rust-lang/crates.io-index" 635 - checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" 636 - dependencies = [ 637 - "libc", 638 - "rand_chacha", 639 - "rand_core", 640 - ] 641 - 642 - [[package]] 643 - name = "rand_chacha" 644 - version = "0.3.1" 645 - source = "registry+https://github.com/rust-lang/crates.io-index" 646 - checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" 647 - dependencies = [ 648 - "ppv-lite86", 649 - "rand_core", 650 - ] 651 - 652 - [[package]] 653 - name = "rand_core" 654 - version = "0.6.4" 655 - source = "registry+https://github.com/rust-lang/crates.io-index" 656 - checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" 657 - dependencies = [ 658 - "getrandom", 659 - ] 660 - 661 - [[package]] 662 - name = "redox_syscall" 663 - version = "0.2.16" 664 - source = "registry+https://github.com/rust-lang/crates.io-index" 665 - checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 666 - dependencies = [ 667 - "bitflags", 668 - ] 669 - 670 - [[package]] 671 - name = "reshape" 672 - version = "0.6.1" 673 - dependencies = [ 674 - "anyhow", 675 - "clap", 676 - "colored", 677 - "dotenv", 678 - "lexical-sort", 679 - "postgres", 680 - "rand", 681 - "serde", 682 - "serde_json", 683 - "toml", 684 - "typetag", 685 - "version", 686 - ] 687 - 688 - [[package]] 689 - name = "rustc-demangle" 690 - version = "0.1.21" 691 - source = "registry+https://github.com/rust-lang/crates.io-index" 692 - checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" 693 - 694 - [[package]] 695 - name = "ryu" 696 - version = "1.0.12" 697 - source = "registry+https://github.com/rust-lang/crates.io-index" 698 - checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" 699 - 700 - [[package]] 701 - name = "scopeguard" 702 - version = "1.1.0" 703 - source = "registry+https://github.com/rust-lang/crates.io-index" 704 - checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 705 - 706 - [[package]] 707 - name = "serde" 708 - version = "1.0.152" 709 - source = "registry+https://github.com/rust-lang/crates.io-index" 710 - checksum = "bb7d1f0d3021d347a83e556fc4683dea2ea09d87bccdf88ff5c12545d89d5efb" 711 - dependencies = [ 712 - "serde_derive", 713 - ] 714 - 715 - [[package]] 716 - name = "serde_derive" 717 - version = "1.0.152" 718 - source = "registry+https://github.com/rust-lang/crates.io-index" 719 - checksum = "af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e" 720 - dependencies = [ 721 - "proc-macro2", 722 - "quote", 723 - "syn", 724 - ] 725 - 726 - [[package]] 727 - name = "serde_json" 728 - version = "1.0.91" 729 - source = "registry+https://github.com/rust-lang/crates.io-index" 730 - checksum = "877c235533714907a8c2464236f5c4b2a17262ef1bd71f38f35ea592c8da6883" 731 - dependencies = [ 732 - "itoa", 733 - "ryu", 734 - "serde", 735 - ] 736 - 737 - [[package]] 738 - name = "sha2" 739 - version = "0.10.6" 740 - source = "registry+https://github.com/rust-lang/crates.io-index" 741 - checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" 742 - dependencies = [ 743 - "cfg-if", 744 - "cpufeatures", 745 - "digest", 746 - ] 747 - 748 - [[package]] 749 - name = "siphasher" 750 - version = "0.3.10" 751 - source = "registry+https://github.com/rust-lang/crates.io-index" 752 - checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" 753 - 754 - [[package]] 755 - name = "slab" 756 - version = "0.4.7" 757 - source = "registry+https://github.com/rust-lang/crates.io-index" 758 - checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef" 759 - dependencies = [ 760 - "autocfg", 761 - ] 762 - 763 - [[package]] 764 - name = "smallvec" 765 - version = "1.10.0" 766 - source = "registry+https://github.com/rust-lang/crates.io-index" 767 - checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 768 - 769 - [[package]] 770 - name = "socket2" 771 - version = "0.4.7" 772 - source = "registry+https://github.com/rust-lang/crates.io-index" 773 - checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 774 - dependencies = [ 775 - "libc", 776 - "winapi", 777 - ] 778 - 779 - [[package]] 780 - name = "stringprep" 781 - version = "0.1.2" 782 - source = "registry+https://github.com/rust-lang/crates.io-index" 783 - checksum = "8ee348cb74b87454fff4b551cbf727025810a004f88aeacae7f85b87f4e9a1c1" 784 - dependencies = [ 785 - "unicode-bidi", 786 - "unicode-normalization", 787 - ] 788 - 789 - [[package]] 790 - name = "strsim" 791 - version = "0.10.0" 792 - source = "registry+https://github.com/rust-lang/crates.io-index" 793 - checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" 794 - 795 - [[package]] 796 - name = "subtle" 797 - version = "2.4.1" 798 - source = "registry+https://github.com/rust-lang/crates.io-index" 799 - checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" 800 - 801 - [[package]] 802 - name = "syn" 803 - version = "1.0.107" 804 - source = "registry+https://github.com/rust-lang/crates.io-index" 805 - checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" 806 - dependencies = [ 807 - "proc-macro2", 808 - "quote", 809 - "unicode-ident", 810 - ] 811 - 812 - [[package]] 813 - name = "termcolor" 814 - version = "1.2.0" 815 - source = "registry+https://github.com/rust-lang/crates.io-index" 816 - checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" 817 - dependencies = [ 818 - "winapi-util", 819 - ] 820 - 821 - [[package]] 822 - name = "textwrap" 823 - version = "0.16.0" 824 - source = "registry+https://github.com/rust-lang/crates.io-index" 825 - checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" 826 - 827 - [[package]] 828 - name = "tinyvec" 829 - version = "1.6.0" 830 - source = "registry+https://github.com/rust-lang/crates.io-index" 831 - checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" 832 - dependencies = [ 833 - "tinyvec_macros", 834 - ] 835 - 836 - [[package]] 837 - name = "tinyvec_macros" 838 - version = "0.1.0" 839 - source = "registry+https://github.com/rust-lang/crates.io-index" 840 - checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" 841 - 842 - [[package]] 843 - name = "tokio" 844 - version = "1.24.2" 845 - source = "registry+https://github.com/rust-lang/crates.io-index" 846 - checksum = "597a12a59981d9e3c38d216785b0c37399f6e415e8d0712047620f189371b0bb" 847 - dependencies = [ 848 - "autocfg", 849 - "bytes", 850 - "libc", 851 - "memchr", 852 - "mio", 853 - "pin-project-lite", 854 - "socket2", 855 - "windows-sys", 856 - ] 857 - 858 - [[package]] 859 - name = "tokio-postgres" 860 - version = "0.7.7" 861 - source = "registry+https://github.com/rust-lang/crates.io-index" 862 - checksum = "29a12c1b3e0704ae7dfc25562629798b29c72e6b1d0a681b6f29ab4ae5e7f7bf" 863 - dependencies = [ 864 - "async-trait", 865 - "byteorder", 866 - "bytes", 867 - "fallible-iterator", 868 - "futures-channel", 869 - "futures-util", 870 - "log", 871 - "parking_lot", 872 - "percent-encoding", 873 - "phf", 874 - "pin-project-lite", 875 - "postgres-protocol", 876 - "postgres-types", 877 - "socket2", 878 - "tokio", 879 - "tokio-util", 880 - ] 881 - 882 - [[package]] 883 - name = "tokio-util" 884 - version = "0.7.4" 885 - source = "registry+https://github.com/rust-lang/crates.io-index" 886 - checksum = "0bb2e075f03b3d66d8d8785356224ba688d2906a371015e225beeb65ca92c740" 887 - dependencies = [ 888 - "bytes", 889 - "futures-core", 890 - "futures-sink", 891 - "pin-project-lite", 892 - "tokio", 893 - "tracing", 894 - ] 895 - 896 - [[package]] 897 - name = "toml" 898 - version = "0.5.11" 899 - source = "registry+https://github.com/rust-lang/crates.io-index" 900 - checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" 901 - dependencies = [ 902 - "serde", 903 - ] 904 - 905 - [[package]] 906 - name = "tracing" 907 - version = "0.1.37" 908 - source = "registry+https://github.com/rust-lang/crates.io-index" 909 - checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" 910 - dependencies = [ 911 - "cfg-if", 912 - "pin-project-lite", 913 - "tracing-core", 914 - ] 915 - 916 - [[package]] 917 - name = "tracing-core" 918 - version = "0.1.30" 919 - source = "registry+https://github.com/rust-lang/crates.io-index" 920 - checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a" 921 - dependencies = [ 922 - "once_cell", 923 - ] 924 - 925 - [[package]] 926 - name = "typenum" 927 - version = "1.16.0" 928 - source = "registry+https://github.com/rust-lang/crates.io-index" 929 - checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" 930 - 931 - [[package]] 932 - name = "typetag" 933 - version = "0.1.8" 934 - source = "registry+https://github.com/rust-lang/crates.io-index" 935 - checksum = "4080564c5b2241b5bff53ab610082234e0c57b0417f4bd10596f183001505b8a" 936 - dependencies = [ 937 - "erased-serde", 938 - "inventory", 939 - "once_cell", 940 - "serde", 941 - "typetag-impl", 942 - ] 943 - 944 - [[package]] 945 - name = "typetag-impl" 946 - version = "0.1.8" 947 - source = "registry+https://github.com/rust-lang/crates.io-index" 948 - checksum = "e60147782cc30833c05fba3bab1d9b5771b2685a2557672ac96fa5d154099c0e" 949 - dependencies = [ 950 - "proc-macro2", 951 - "quote", 952 - "syn", 953 - ] 954 - 955 - [[package]] 956 - name = "unicode-bidi" 957 - version = "0.3.10" 958 - source = "registry+https://github.com/rust-lang/crates.io-index" 959 - checksum = "d54675592c1dbefd78cbd98db9bacd89886e1ca50692a0692baefffdeb92dd58" 960 - 961 - [[package]] 962 - name = "unicode-ident" 963 - version = "1.0.6" 964 - source = "registry+https://github.com/rust-lang/crates.io-index" 965 - checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 966 - 967 - [[package]] 968 - name = "unicode-normalization" 969 - version = "0.1.22" 970 - source = "registry+https://github.com/rust-lang/crates.io-index" 971 - checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" 972 - dependencies = [ 973 - "tinyvec", 974 - ] 975 - 976 - [[package]] 977 - name = "version" 978 - version = "3.0.0" 979 - source = "registry+https://github.com/rust-lang/crates.io-index" 980 - checksum = "3a449064fee414fcc201356a3e6c1510f6c8829ed28bb06b91c54ebe208ce065" 981 - 982 - [[package]] 983 - name = "version_check" 984 - version = "0.9.4" 985 - source = "registry+https://github.com/rust-lang/crates.io-index" 986 - checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" 987 - 988 - [[package]] 989 - name = "wasi" 990 - version = "0.11.0+wasi-snapshot-preview1" 991 - source = "registry+https://github.com/rust-lang/crates.io-index" 992 - checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 993 - 994 - [[package]] 995 - name = "winapi" 996 - version = "0.3.9" 997 - source = "registry+https://github.com/rust-lang/crates.io-index" 998 - checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 999 - dependencies = [ 1000 - "winapi-i686-pc-windows-gnu", 1001 - "winapi-x86_64-pc-windows-gnu", 1002 - ] 1003 - 1004 - [[package]] 1005 - name = "winapi-i686-pc-windows-gnu" 1006 - version = "0.4.0" 1007 - source = "registry+https://github.com/rust-lang/crates.io-index" 1008 - checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1009 - 1010 - [[package]] 1011 - name = "winapi-util" 1012 - version = "0.1.5" 1013 - source = "registry+https://github.com/rust-lang/crates.io-index" 1014 - checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" 1015 - dependencies = [ 1016 - "winapi", 1017 - ] 1018 - 1019 - [[package]] 1020 - name = "winapi-x86_64-pc-windows-gnu" 1021 - version = "0.4.0" 1022 - source = "registry+https://github.com/rust-lang/crates.io-index" 1023 - checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1024 - 1025 - [[package]] 1026 - name = "windows-sys" 1027 - version = "0.42.0" 1028 - source = "registry+https://github.com/rust-lang/crates.io-index" 1029 - checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 1030 - dependencies = [ 1031 - "windows_aarch64_gnullvm", 1032 - "windows_aarch64_msvc", 1033 - "windows_i686_gnu", 1034 - "windows_i686_msvc", 1035 - "windows_x86_64_gnu", 1036 - "windows_x86_64_gnullvm", 1037 - "windows_x86_64_msvc", 1038 - ] 1039 - 1040 - [[package]] 1041 - name = "windows_aarch64_gnullvm" 1042 - version = "0.42.1" 1043 - source = "registry+https://github.com/rust-lang/crates.io-index" 1044 - checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" 1045 - 1046 - [[package]] 1047 - name = "windows_aarch64_msvc" 1048 - version = "0.42.1" 1049 - source = "registry+https://github.com/rust-lang/crates.io-index" 1050 - checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" 1051 - 1052 - [[package]] 1053 - name = "windows_i686_gnu" 1054 - version = "0.42.1" 1055 - source = "registry+https://github.com/rust-lang/crates.io-index" 1056 - checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" 1057 - 1058 - [[package]] 1059 - name = "windows_i686_msvc" 1060 - version = "0.42.1" 1061 - source = "registry+https://github.com/rust-lang/crates.io-index" 1062 - checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" 1063 - 1064 - [[package]] 1065 - name = "windows_x86_64_gnu" 1066 - version = "0.42.1" 1067 - source = "registry+https://github.com/rust-lang/crates.io-index" 1068 - checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" 1069 - 1070 - [[package]] 1071 - name = "windows_x86_64_gnullvm" 1072 - version = "0.42.1" 1073 - source = "registry+https://github.com/rust-lang/crates.io-index" 1074 - checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" 1075 - 1076 - [[package]] 1077 - name = "windows_x86_64_msvc" 1078 - version = "0.42.1" 1079 - source = "registry+https://github.com/rust-lang/crates.io-index" 1080 - checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd"
+7 -18
pkgs/development/tools/reshape/default.nix
··· 1 1 { lib 2 - , stdenv 3 - , fetchFromGitHub 4 2 , rustPlatform 5 - , fetchpatch 6 - , git 3 + , fetchCrate 7 4 , postgresqlTestHook 8 5 , postgresql 9 6 }: ··· 12 9 pname = "reshape"; 13 10 version = "0.6.1"; 14 11 15 - src = fetchFromGitHub { 16 - owner = "fabianlindfors"; 17 - repo = pname; 18 - rev = "v${version}"; 19 - hash = "sha256-iX8qhDk0PP0AB3bJ6ck8AZ9SCErFH416ggAkgK8O900="; 12 + src = fetchCrate { 13 + inherit pname version; 14 + hash = "sha256-pTEOVDeCE69dn005nj1ULGKjguCtC1uReI/l3WEz4+w="; 20 15 }; 21 16 17 + cargoHash = "sha256-KYU5drTVHdWmlE01Fq1TxJZTe87yBpDKIGm4P+RRCGw="; 18 + 22 19 nativeCheckInputs = [ 23 20 postgresqlTestHook 24 21 postgresql ··· 32 29 33 30 postgresqlTestUserOptions = "LOGIN SUPERUSER"; 34 31 35 - # upstream doesn't ship a Cargo.lock, is generated by the update script 36 - postPatch = '' 37 - cp ${./Cargo.lock} Cargo.lock 38 - ''; 39 - 40 - cargoLock.lockFile = ./Cargo.lock; 41 - 42 - cargoHash = "sha256-UL/vP8055JRbbf5bqf0V3wGh+iF9ztVhyoMrtNs/c+4="; 43 - 44 32 meta = with lib; { 45 33 description = "An easy-to-use, zero-downtime schema migration tool for Postgres"; 46 34 homepage = "https://github.com/fabianlindfors/reshape"; 35 + changelog = "https://github.com/fabianlindfors/reshape/releases/tag/v${version}"; 47 36 license = licenses.mit; 48 37 maintainers = with maintainers; [ ilyakooo0 ]; 49 38 };