silly goober bot

refactor: bump deps

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