silly goober bot

refactor: bump deps

+225 -111
+195 -89
Cargo.lock
··· 128 128 dependencies = [ 129 129 "proc-macro2", 130 130 "quote", 131 - "syn 2.0.79", 131 + "syn 2.0.99", 132 132 ] 133 133 134 134 [[package]] ··· 202 202 "dotenv", 203 203 "humantime", 204 204 "kittysay", 205 - "nixpkgs-track", 205 + "nixpkgs-track_lib", 206 206 "poise", 207 - "rand 0.8.5", 207 + "rand 0.9.0", 208 208 "regex", 209 - "reqwest 0.12.8", 209 + "reqwest 0.12.12", 210 210 "serde", 211 211 "serenity", 212 212 "tokio", ··· 305 305 306 306 [[package]] 307 307 name = "chrono" 308 - version = "0.4.38" 308 + version = "0.4.40" 309 309 source = "registry+https://github.com/rust-lang/crates.io-index" 310 - checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" 310 + checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c" 311 311 dependencies = [ 312 312 "android-tzdata", 313 313 "iana-time-zone", ··· 315 315 "num-traits", 316 316 "serde", 317 317 "wasm-bindgen", 318 - "windows-targets 0.52.6", 318 + "windows-link", 319 319 ] 320 320 321 321 [[package]] ··· 335 335 336 336 [[package]] 337 337 name = "clap" 338 - version = "4.5.20" 338 + version = "4.5.31" 339 339 source = "registry+https://github.com/rust-lang/crates.io-index" 340 - checksum = "b97f376d85a664d5837dbae44bf546e6477a679ff6610010f17276f686d867e8" 340 + checksum = "027bb0d98429ae334a8698531da7077bdf906419543a35a55c2cb1b66437d767" 341 341 dependencies = [ 342 342 "clap_builder", 343 343 "clap_derive", ··· 349 349 source = "registry+https://github.com/rust-lang/crates.io-index" 350 350 checksum = "bc126d12a0930c94c3548581294d5f19360ac02e408600b4d7619d7234e8b505" 351 351 dependencies = [ 352 - "thiserror", 352 + "thiserror 1.0.64", 353 353 ] 354 354 355 355 [[package]] 356 356 name = "clap_builder" 357 - version = "4.5.20" 357 + version = "4.5.31" 358 358 source = "registry+https://github.com/rust-lang/crates.io-index" 359 - checksum = "19bc80abd44e4bed93ca373a0704ccbd1b710dc5749406201bb018272808dc54" 359 + checksum = "5589e0cba072e0f3d23791efac0fd8627b49c829c196a492e88168e6a669d863" 360 360 dependencies = [ 361 361 "anstream", 362 362 "anstyle", ··· 366 366 367 367 [[package]] 368 368 name = "clap_derive" 369 - version = "4.5.18" 369 + version = "4.5.28" 370 370 source = "registry+https://github.com/rust-lang/crates.io-index" 371 - checksum = "4ac6a0c7b1a9e9a5186361f67dfa1b88213572f427fb9ab038efb2bd8c582dab" 371 + checksum = "bf4ced95c6f4a675af3da73304b9ac4ed991640c36374e4b46795c49e17cf1ed" 372 372 dependencies = [ 373 373 "heck", 374 374 "proc-macro2", 375 375 "quote", 376 - "syn 2.0.79", 376 + "syn 2.0.99", 377 377 ] 378 378 379 379 [[package]] 380 380 name = "clap_lex" 381 - version = "0.7.2" 381 + version = "0.7.4" 382 382 source = "registry+https://github.com/rust-lang/crates.io-index" 383 - checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" 383 + checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" 384 384 385 385 [[package]] 386 386 name = "color-eyre" ··· 417 417 418 418 [[package]] 419 419 name = "command_attr" 420 - version = "0.5.2" 420 + version = "0.5.3" 421 421 source = "registry+https://github.com/rust-lang/crates.io-index" 422 - checksum = "88da8d7e9fe6f30d8e3fcf72d0f84102b49de70fece952633e8439e89bdc7631" 422 + checksum = "6fcc89439e1bb4e19050a9586a767781a3060000d2f3296fd2a40597ad9421c5" 423 423 dependencies = [ 424 424 "proc-macro2", 425 425 "quote", ··· 544 544 "proc-macro2", 545 545 "quote", 546 546 "strsim 0.11.1", 547 - "syn 2.0.79", 547 + "syn 2.0.99", 548 548 ] 549 549 550 550 [[package]] ··· 555 555 dependencies = [ 556 556 "darling_core", 557 557 "quote", 558 - "syn 2.0.79", 558 + "syn 2.0.99", 559 559 ] 560 560 561 561 [[package]] ··· 656 656 ] 657 657 658 658 [[package]] 659 - name = "etcetera" 660 - version = "0.8.0" 661 - source = "registry+https://github.com/rust-lang/crates.io-index" 662 - checksum = "136d1b5283a1ab77bd9257427ffd09d8667ced0570b6f938942bc7568ed5b943" 663 - dependencies = [ 664 - "cfg-if", 665 - "home", 666 - "windows-sys 0.48.0", 667 - ] 668 - 669 - [[package]] 670 659 name = "eyre" 671 660 version = "0.6.12" 672 661 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 766 755 dependencies = [ 767 756 "proc-macro2", 768 757 "quote", 769 - "syn 2.0.79", 758 + "syn 2.0.99", 770 759 ] 771 760 772 761 [[package]] ··· 838 827 "cfg-if", 839 828 "libc", 840 829 "wasi 0.11.0+wasi-snapshot-preview1", 830 + ] 831 + 832 + [[package]] 833 + name = "getrandom" 834 + version = "0.3.1" 835 + source = "registry+https://github.com/rust-lang/crates.io-index" 836 + checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8" 837 + dependencies = [ 838 + "cfg-if", 839 + "libc", 840 + "wasi 0.13.3+wasi-0.2.2", 841 + "windows-targets 0.52.6", 841 842 ] 842 843 843 844 [[package]] ··· 924 925 checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" 925 926 926 927 [[package]] 927 - name = "home" 928 - version = "0.5.9" 929 - source = "registry+https://github.com/rust-lang/crates.io-index" 930 - checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" 931 - dependencies = [ 932 - "windows-sys 0.52.0", 933 - ] 934 - 935 - [[package]] 936 928 name = "http" 937 929 version = "0.2.12" 938 930 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1099 1091 1100 1092 [[package]] 1101 1093 name = "hyper-util" 1102 - version = "0.1.9" 1094 + version = "0.1.10" 1103 1095 source = "registry+https://github.com/rust-lang/crates.io-index" 1104 - checksum = "41296eb09f183ac68eec06e03cdbea2e759633d4067b2f6552fc2e009bcad08b" 1096 + checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" 1105 1097 dependencies = [ 1106 1098 "bytes", 1107 1099 "futures-channel", ··· 1204 1196 source = "registry+https://github.com/rust-lang/crates.io-index" 1205 1197 checksum = "069387989a3b4c9824320975e3689503053c49ee46de1c3b15597a20574d66c6" 1206 1198 dependencies = [ 1207 - "clap 4.5.20", 1199 + "clap 4.5.31", 1208 1200 "clap-stdin", 1209 1201 "color-eyre", 1210 1202 "console", ··· 1227 1219 1228 1220 [[package]] 1229 1221 name = "libc" 1230 - version = "0.2.159" 1222 + version = "0.2.170" 1231 1223 source = "registry+https://github.com/rust-lang/crates.io-index" 1232 - checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5" 1224 + checksum = "875b3680cb2f8f71bdcf9a30f38d48282f5d3c95cbf9b3fa57269bb5d5c06828" 1233 1225 1234 1226 [[package]] 1235 1227 name = "linux-raw-sys" ··· 1350 1342 ] 1351 1343 1352 1344 [[package]] 1353 - name = "nixpkgs-track" 1354 - version = "0.1.0" 1345 + name = "nixpkgs-track_lib" 1346 + version = "0.2.0" 1355 1347 source = "registry+https://github.com/rust-lang/crates.io-index" 1356 - checksum = "fb83e2e910ece79d3bfb4b5211c07a9a6ffe55fa430404522bbc4279177ad9e5" 1348 + checksum = "0b09848685abe6004ee407ee46feb81c52b5cf30f8bbcdeb817f5099b2e6ddc5" 1357 1349 dependencies = [ 1358 1350 "chrono", 1359 - "clap 4.5.20", 1360 - "color-eyre", 1361 - "etcetera", 1362 - "reqwest 0.12.8", 1351 + "log", 1352 + "reqwest 0.12.12", 1363 1353 "serde", 1364 1354 "serde_json", 1355 + "thiserror 2.0.12", 1365 1356 ] 1366 1357 1367 1358 [[package]] ··· 1417 1408 dependencies = [ 1418 1409 "proc-macro2", 1419 1410 "quote", 1420 - "syn 2.0.79", 1411 + "syn 2.0.99", 1421 1412 ] 1422 1413 1423 1414 [[package]] ··· 1555 1546 "darling", 1556 1547 "proc-macro2", 1557 1548 "quote", 1558 - "syn 2.0.79", 1549 + "syn 2.0.99", 1559 1550 ] 1560 1551 1561 1552 [[package]] ··· 1570 1561 source = "registry+https://github.com/rust-lang/crates.io-index" 1571 1562 checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" 1572 1563 dependencies = [ 1573 - "zerocopy", 1564 + "zerocopy 0.7.35", 1574 1565 ] 1575 1566 1576 1567 [[package]] 1577 1568 name = "proc-macro2" 1578 - version = "1.0.87" 1569 + version = "1.0.94" 1579 1570 source = "registry+https://github.com/rust-lang/crates.io-index" 1580 - checksum = "b3e4daa0dcf6feba26f985457cdf104d4b4256fc5a09547140f3631bb076b19a" 1571 + checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84" 1581 1572 dependencies = [ 1582 1573 "unicode-ident", 1583 1574 ] ··· 1628 1619 ] 1629 1620 1630 1621 [[package]] 1622 + name = "rand" 1623 + version = "0.9.0" 1624 + source = "registry+https://github.com/rust-lang/crates.io-index" 1625 + checksum = "3779b94aeb87e8bd4e834cee3650289ee9e0d5677f976ecdb6d219e5f4f6cd94" 1626 + dependencies = [ 1627 + "rand_chacha 0.9.0", 1628 + "rand_core 0.9.3", 1629 + "zerocopy 0.8.23", 1630 + ] 1631 + 1632 + [[package]] 1631 1633 name = "rand_chacha" 1632 1634 version = "0.2.2" 1633 1635 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1648 1650 ] 1649 1651 1650 1652 [[package]] 1653 + name = "rand_chacha" 1654 + version = "0.9.0" 1655 + source = "registry+https://github.com/rust-lang/crates.io-index" 1656 + checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" 1657 + dependencies = [ 1658 + "ppv-lite86", 1659 + "rand_core 0.9.3", 1660 + ] 1661 + 1662 + [[package]] 1651 1663 name = "rand_core" 1652 1664 version = "0.5.1" 1653 1665 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1663 1675 checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" 1664 1676 dependencies = [ 1665 1677 "getrandom 0.2.15", 1678 + ] 1679 + 1680 + [[package]] 1681 + name = "rand_core" 1682 + version = "0.9.3" 1683 + source = "registry+https://github.com/rust-lang/crates.io-index" 1684 + checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" 1685 + dependencies = [ 1686 + "getrandom 0.3.1", 1666 1687 ] 1667 1688 1668 1689 [[package]] ··· 1694 1715 1695 1716 [[package]] 1696 1717 name = "regex" 1697 - version = "1.11.0" 1718 + version = "1.11.1" 1698 1719 source = "registry+https://github.com/rust-lang/crates.io-index" 1699 - checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8" 1720 + checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" 1700 1721 dependencies = [ 1701 1722 "aho-corasick", 1702 1723 "memchr", ··· 1767 1788 1768 1789 [[package]] 1769 1790 name = "reqwest" 1770 - version = "0.12.8" 1791 + version = "0.12.12" 1771 1792 source = "registry+https://github.com/rust-lang/crates.io-index" 1772 - checksum = "f713147fbe92361e52392c73b8c9e48c04c6625bce969ef54dc901e58e042a7b" 1793 + checksum = "43e734407157c3c2034e0258f5e4473ddb361b1e85f95a66690d67264d7cd1da" 1773 1794 dependencies = [ 1774 1795 "base64 0.22.1", 1775 1796 "bytes", 1776 1797 "encoding_rs", 1777 - "futures-channel", 1778 1798 "futures-core", 1779 1799 "futures-util", 1780 1800 "h2 0.4.6", ··· 1801 1821 "system-configuration 0.6.1", 1802 1822 "tokio", 1803 1823 "tokio-native-tls", 1824 + "tower", 1804 1825 "tower-service", 1805 1826 "url", 1806 1827 "wasm-bindgen", ··· 2011 2032 2012 2033 [[package]] 2013 2034 name = "serde" 2014 - version = "1.0.210" 2035 + version = "1.0.218" 2015 2036 source = "registry+https://github.com/rust-lang/crates.io-index" 2016 - checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a" 2037 + checksum = "e8dfc9d19bdbf6d17e22319da49161d5d0108e4188e8b680aef6299eed22df60" 2017 2038 dependencies = [ 2018 2039 "serde_derive", 2019 2040 ] ··· 2029 2050 2030 2051 [[package]] 2031 2052 name = "serde_derive" 2032 - version = "1.0.210" 2053 + version = "1.0.218" 2033 2054 source = "registry+https://github.com/rust-lang/crates.io-index" 2034 - checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" 2055 + checksum = "f09503e191f4e797cb8aac08e9a4a4695c5edf6a2e70e376d961ddd5c969f82b" 2035 2056 dependencies = [ 2036 2057 "proc-macro2", 2037 2058 "quote", 2038 - "syn 2.0.79", 2059 + "syn 2.0.99", 2039 2060 ] 2040 2061 2041 2062 [[package]] 2042 2063 name = "serde_json" 2043 - version = "1.0.128" 2064 + version = "1.0.140" 2044 2065 source = "registry+https://github.com/rust-lang/crates.io-index" 2045 - checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" 2066 + checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" 2046 2067 dependencies = [ 2047 2068 "itoa", 2048 2069 "memchr", ··· 2064 2085 2065 2086 [[package]] 2066 2087 name = "serenity" 2067 - version = "0.12.2" 2088 + version = "0.12.4" 2068 2089 source = "registry+https://github.com/rust-lang/crates.io-index" 2069 - checksum = "880a04106592d0a8f5bdacb1d935889bfbccb4a14f7074984d9cd857235d34ac" 2090 + checksum = "3d72ec4323681bf9a3cabe40fd080abc2435859b502a1b5aa9bf693f125bfa76" 2070 2091 dependencies = [ 2071 2092 "arrayvec", 2072 2093 "async-trait", ··· 2250 2271 2251 2272 [[package]] 2252 2273 name = "syn" 2253 - version = "2.0.79" 2274 + version = "2.0.99" 2254 2275 source = "registry+https://github.com/rust-lang/crates.io-index" 2255 - checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590" 2276 + checksum = "e02e925281e18ffd9d640e234264753c43edc62d64b2d4cf898f1bc5e75f3fc2" 2256 2277 dependencies = [ 2257 2278 "proc-macro2", 2258 2279 "quote", ··· 2361 2382 source = "registry+https://github.com/rust-lang/crates.io-index" 2362 2383 checksum = "d50af8abc119fb8bb6dbabcfa89656f46f84aa0ac7688088608076ad2b459a84" 2363 2384 dependencies = [ 2364 - "thiserror-impl", 2385 + "thiserror-impl 1.0.64", 2386 + ] 2387 + 2388 + [[package]] 2389 + name = "thiserror" 2390 + version = "2.0.12" 2391 + source = "registry+https://github.com/rust-lang/crates.io-index" 2392 + checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708" 2393 + dependencies = [ 2394 + "thiserror-impl 2.0.12", 2365 2395 ] 2366 2396 2367 2397 [[package]] ··· 2372 2402 dependencies = [ 2373 2403 "proc-macro2", 2374 2404 "quote", 2375 - "syn 2.0.79", 2405 + "syn 2.0.99", 2406 + ] 2407 + 2408 + [[package]] 2409 + name = "thiserror-impl" 2410 + version = "2.0.12" 2411 + source = "registry+https://github.com/rust-lang/crates.io-index" 2412 + checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d" 2413 + dependencies = [ 2414 + "proc-macro2", 2415 + "quote", 2416 + "syn 2.0.99", 2376 2417 ] 2377 2418 2378 2419 [[package]] ··· 2433 2474 2434 2475 [[package]] 2435 2476 name = "tokio" 2436 - version = "1.40.0" 2477 + version = "1.43.0" 2437 2478 source = "registry+https://github.com/rust-lang/crates.io-index" 2438 - checksum = "e2b070231665d27ad9ec9b8df639893f46727666c6767db40317fbe920a5d998" 2479 + checksum = "3d61fa4ffa3de412bfea335c6ecff681de2b609ba3c77ef3e00e521813a9ed9e" 2439 2480 dependencies = [ 2440 2481 "backtrace", 2441 2482 "bytes", ··· 2449 2490 2450 2491 [[package]] 2451 2492 name = "tokio-macros" 2452 - version = "2.4.0" 2493 + version = "2.5.0" 2453 2494 source = "registry+https://github.com/rust-lang/crates.io-index" 2454 - checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" 2495 + checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" 2455 2496 dependencies = [ 2456 2497 "proc-macro2", 2457 2498 "quote", 2458 - "syn 2.0.79", 2499 + "syn 2.0.99", 2459 2500 ] 2460 2501 2461 2502 [[package]] ··· 2530 2571 ] 2531 2572 2532 2573 [[package]] 2574 + name = "tower" 2575 + version = "0.5.2" 2576 + source = "registry+https://github.com/rust-lang/crates.io-index" 2577 + checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" 2578 + dependencies = [ 2579 + "futures-core", 2580 + "futures-util", 2581 + "pin-project-lite", 2582 + "sync_wrapper 1.0.1", 2583 + "tokio", 2584 + "tower-layer", 2585 + "tower-service", 2586 + ] 2587 + 2588 + [[package]] 2589 + name = "tower-layer" 2590 + version = "0.3.3" 2591 + source = "registry+https://github.com/rust-lang/crates.io-index" 2592 + checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" 2593 + 2594 + [[package]] 2533 2595 name = "tower-service" 2534 2596 version = "0.3.3" 2535 2597 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 2555 2617 dependencies = [ 2556 2618 "proc-macro2", 2557 2619 "quote", 2558 - "syn 2.0.79", 2620 + "syn 2.0.99", 2559 2621 ] 2560 2622 2561 2623 [[package]] ··· 2617 2679 "rustls 0.22.4", 2618 2680 "rustls-pki-types", 2619 2681 "sha1", 2620 - "thiserror", 2682 + "thiserror 1.0.64", 2621 2683 "url", 2622 2684 "utf-8", 2623 2685 ] ··· 2660 2722 dependencies = [ 2661 2723 "proc-macro2", 2662 2724 "quote", 2663 - "syn 2.0.79", 2725 + "syn 2.0.99", 2664 2726 ] 2665 2727 2666 2728 [[package]] ··· 2797 2859 checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 2798 2860 2799 2861 [[package]] 2862 + name = "wasi" 2863 + version = "0.13.3+wasi-0.2.2" 2864 + source = "registry+https://github.com/rust-lang/crates.io-index" 2865 + checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2" 2866 + dependencies = [ 2867 + "wit-bindgen-rt", 2868 + ] 2869 + 2870 + [[package]] 2800 2871 name = "wasm-bindgen" 2801 2872 version = "0.2.95" 2802 2873 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 2818 2889 "once_cell", 2819 2890 "proc-macro2", 2820 2891 "quote", 2821 - "syn 2.0.79", 2892 + "syn 2.0.99", 2822 2893 "wasm-bindgen-shared", 2823 2894 ] 2824 2895 ··· 2852 2923 dependencies = [ 2853 2924 "proc-macro2", 2854 2925 "quote", 2855 - "syn 2.0.79", 2926 + "syn 2.0.99", 2856 2927 "wasm-bindgen-backend", 2857 2928 "wasm-bindgen-shared", 2858 2929 ] ··· 2942 3013 ] 2943 3014 2944 3015 [[package]] 3016 + name = "windows-link" 3017 + version = "0.1.0" 3018 + source = "registry+https://github.com/rust-lang/crates.io-index" 3019 + checksum = "6dccfd733ce2b1753b03b6d3c65edf020262ea35e20ccdf3e288043e6dd620e3" 3020 + 3021 + [[package]] 2945 3022 name = "windows-registry" 2946 3023 version = "0.2.0" 2947 3024 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 3130 3207 ] 3131 3208 3132 3209 [[package]] 3210 + name = "wit-bindgen-rt" 3211 + version = "0.33.0" 3212 + source = "registry+https://github.com/rust-lang/crates.io-index" 3213 + checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c" 3214 + dependencies = [ 3215 + "bitflags 2.6.0", 3216 + ] 3217 + 3218 + [[package]] 3133 3219 name = "zerocopy" 3134 3220 version = "0.7.35" 3135 3221 source = "registry+https://github.com/rust-lang/crates.io-index" 3136 3222 checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" 3137 3223 dependencies = [ 3138 3224 "byteorder", 3139 - "zerocopy-derive", 3225 + "zerocopy-derive 0.7.35", 3226 + ] 3227 + 3228 + [[package]] 3229 + name = "zerocopy" 3230 + version = "0.8.23" 3231 + source = "registry+https://github.com/rust-lang/crates.io-index" 3232 + checksum = "fd97444d05a4328b90e75e503a34bad781f14e28a823ad3557f0750df1ebcbc6" 3233 + dependencies = [ 3234 + "zerocopy-derive 0.8.23", 3140 3235 ] 3141 3236 3142 3237 [[package]] ··· 3147 3242 dependencies = [ 3148 3243 "proc-macro2", 3149 3244 "quote", 3150 - "syn 2.0.79", 3245 + "syn 2.0.99", 3246 + ] 3247 + 3248 + [[package]] 3249 + name = "zerocopy-derive" 3250 + version = "0.8.23" 3251 + source = "registry+https://github.com/rust-lang/crates.io-index" 3252 + checksum = "6352c01d0edd5db859a63e2605f4ea3183ddbd15e2c4a9e7d32184df75e4f154" 3253 + dependencies = [ 3254 + "proc-macro2", 3255 + "quote", 3256 + "syn 2.0.99", 3151 3257 ] 3152 3258 3153 3259 [[package]]
+7 -7
Cargo.toml
··· 16 16 dotenv = "0.15.0" 17 17 humantime = "2.1.0" 18 18 kittysay = "0.8.0" 19 - nixpkgs-track = "0.1.0" 19 + nixpkgs-track_lib = "0.2.0" 20 20 poise = "0.6.1" 21 - rand = "0.8.5" 22 - regex = "1.11.0" 23 - serenity = "0.12.2" 21 + rand = "0.9.0" 22 + regex = "1.11.1" 23 + serenity = "0.12.4" 24 24 25 25 [dependencies.serde] 26 - version = "1.0.210" 26 + version = "1.0.218" 27 27 features = ["derive"] 28 28 29 29 [dependencies.reqwest] 30 - version = "0.12.8" 30 + version = "0.12.12" 31 31 features = ["json"] 32 32 33 33 [dependencies.tokio] 34 - version = "1.40.0" 34 + version = "1.43.0" 35 35 features = ["macros", "rt-multi-thread"] 36 36 37 37 [lints.clippy]
+2 -2
src/commands/fun/chance.rs
··· 10 10 #[description = "# of sides"] sides: Option<u32>, 11 11 ) -> Result<()> { 12 12 let sides = sides.unwrap_or(6); 13 - let roll = rand::thread_rng().gen_range(1..=sides); 13 + let roll = rand::rng().random_range(1..=sides); 14 14 ctx.say(format!("You rolled a **{roll}**")).await?; 15 15 Ok(()) 16 16 } ··· 28 28 29 29 let mut find_member = false; 30 30 while !find_member { 31 - let selected = rand::thread_rng().gen_range(1..=members.len()); 31 + let selected = rand::rng().random_range(1..=members.len()); 32 32 let memeber = &members[selected].user; 33 33 memeberid = memeber.id; 34 34
+1 -1
src/commands/fun/nix.rs
··· 60 60 /// nix fixes this 61 61 #[poise::command(slash_command)] 62 62 pub async fn nix(ctx: Context<'_>) -> Result<()> { 63 - let select = rand::thread_rng().gen_range(0..=MEMES.len()); 63 + let select = rand::rng().random_range(0..=MEMES.len()); 64 64 let img = MEMES[select]; 65 65 66 66 ctx.say(format!("https://raw.githubusercontent.com/gytis-ivaskevicius/high-quality-nix-content/master/memes/{img}")).await?;
+11 -11
src/commands/misc/nixpkgs.rs
··· 1 1 use color_eyre::eyre::Result; 2 - use nixpkgs_track::{branch_contains_commit, fetch_nixpkgs_pull_request}; 2 + use nixpkgs_track_lib::{branch_contains_commit, fetch_nixpkgs_pull_request}; 3 3 use poise::{serenity_prelude::CreateEmbed, CreateReply}; 4 4 use std::env; 5 5 ··· 25 25 26 26 let github_token = env::var("GITHUB_TOKEN").expect("GITHUB_TOKEN not set"); 27 27 28 - let pull_request = tokio::task::spawn_blocking({ 29 - let github_token = github_token.clone(); 30 - move || fetch_nixpkgs_pull_request(pr, Some(&github_token)) 31 - }) 32 - .await??; 28 + let pull_request = 29 + fetch_nixpkgs_pull_request(crate::W(ctx.data().client.clone()), pr, Some(&github_token)) 30 + .await?; 33 31 34 32 let Some(commit_sha) = pull_request.merge_commit_sha else { 35 33 ctx.say("This pull request is very old. I can't track it!") ··· 42 40 let github_token = github_token.clone(); 43 41 let commit_sha = commit_sha.clone(); 44 42 45 - let has_pull_request = tokio::task::spawn_blocking(move || { 46 - branch_contains_commit(branch, &commit_sha, Some(&github_token)) 47 - }) 48 - .await 49 - .unwrap_or(Ok(false))?; 43 + let has_pull_request = branch_contains_commit( 44 + crate::W(ctx.data().client.clone()), 45 + branch, 46 + &commit_sha, 47 + Some(&github_token), 48 + ) 49 + .await?; 50 50 51 51 embed_description.push_str(&format!( 52 52 "{}: {}\n",
+9 -1
src/main.rs
··· 3 3 4 4 use dotenv::dotenv; 5 5 use reqwest::Client; 6 - use std::env; 6 + use std::{convert::AsRef, env}; 7 7 8 8 use color_eyre::eyre::{Report, Result}; 9 9 use poise::serenity_prelude::{ActivityData, ClientBuilder, GatewayIntents}; ··· 12 12 // User data, which is stored and accessible in all command invocations 13 13 pub struct Data { 14 14 client: Client, 15 + } 16 + 17 + pub struct W<T>(T); 18 + 19 + impl AsRef<Client> for W<Client> { 20 + fn as_ref(&self) -> &reqwest::Client { 21 + &self.0 22 + } 15 23 } 16 24 17 25 pub type Context<'a> = poise::Context<'a, Data, Report>;