My personal site cherry.computer
htmx tailwind axum askama

build: bump Rust dependencies to latest versions

cherry.computer e0298e3d b47bc7c2

verified
+303 -195
+296 -175
server/Cargo.lock
··· 40 41 [[package]] 42 name = "async-compression" 43 - version = "0.3.15" 44 source = "registry+https://github.com/rust-lang/crates.io-index" 45 - checksum = "942c7cd7ae39e91bde4820d74132e9862e62c2f386c3aa90ccf55949f5bad63a" 46 dependencies = [ 47 "brotli", 48 "flate2", ··· 50 "memchr", 51 "pin-project-lite", 52 "tokio", 53 ] 54 55 [[package]] 56 - name = "async-trait" 57 - version = "0.1.85" 58 source = "registry+https://github.com/rust-lang/crates.io-index" 59 - checksum = "3f934833b4b7233644e5848f235df3f57ed8c80f1528a26c3dfa13d2147fa056" 60 - dependencies = [ 61 - "proc-macro2", 62 - "quote", 63 - "syn", 64 - ] 65 66 [[package]] 67 name = "autocfg" ··· 71 72 [[package]] 73 name = "axum" 74 - version = "0.5.17" 75 source = "registry+https://github.com/rust-lang/crates.io-index" 76 - checksum = "acee9fd5073ab6b045a275b3e709c163dd36c90685219cb21804a147b58dba43" 77 dependencies = [ 78 - "async-trait", 79 "axum-core", 80 - "bitflags 1.3.2", 81 "bytes", 82 "futures-util", 83 "http", 84 "http-body", 85 "hyper", 86 "itoa", 87 "matchit", 88 "memchr", 89 "mime", 90 "percent-encoding", 91 "pin-project-lite", 92 "serde", 93 "serde_json", 94 "serde_urlencoded", 95 "sync_wrapper", 96 "tokio", 97 "tower", 98 - "tower-http", 99 "tower-layer", 100 "tower-service", 101 ] 102 103 [[package]] 104 name = "axum-core" 105 - version = "0.2.9" 106 source = "registry+https://github.com/rust-lang/crates.io-index" 107 - checksum = "37e5939e02c56fecd5c017c37df4238c0a839fa76b7f97acdd7efb804fd181cc" 108 dependencies = [ 109 - "async-trait", 110 "bytes", 111 "futures-util", 112 "http", 113 "http-body", 114 "mime", 115 "tower-layer", 116 "tower-service", 117 ] 118 119 [[package]] ··· 128 "miniz_oxide", 129 "object", 130 "rustc-demangle", 131 - "windows-targets 0.52.6", 132 ] 133 134 [[package]] 135 name = "base64" 136 - version = "0.21.7" 137 source = "registry+https://github.com/rust-lang/crates.io-index" 138 - checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" 139 - 140 - [[package]] 141 - name = "bitflags" 142 - version = "1.3.2" 143 - source = "registry+https://github.com/rust-lang/crates.io-index" 144 - checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 145 146 [[package]] 147 name = "bitflags" ··· 151 152 [[package]] 153 name = "brotli" 154 - version = "3.5.0" 155 source = "registry+https://github.com/rust-lang/crates.io-index" 156 - checksum = "d640d25bc63c50fb1f0b545ffd80207d2e10a4c965530809b40ba3386825c391" 157 dependencies = [ 158 "alloc-no-stdlib", 159 "alloc-stdlib", ··· 162 163 [[package]] 164 name = "brotli-decompressor" 165 - version = "2.5.1" 166 source = "registry+https://github.com/rust-lang/crates.io-index" 167 - checksum = "4e2e4afe60d7dd600fdd3de8d0f08c2b7ec039712e3b6137ff98b7004e82de4f" 168 dependencies = [ 169 "alloc-no-stdlib", 170 "alloc-stdlib", ··· 188 source = "registry+https://github.com/rust-lang/crates.io-index" 189 checksum = "a012a0df96dd6d06ba9a1b29d6402d1a5d77c6befd2566afdc26e10603dc93d7" 190 dependencies = [ 191 "shlex", 192 ] 193 ··· 362 363 [[package]] 364 name = "h2" 365 - version = "0.3.26" 366 source = "registry+https://github.com/rust-lang/crates.io-index" 367 - checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" 368 dependencies = [ 369 "bytes", 370 "fnv", 371 "futures-core", 372 "futures-sink", 373 - "futures-util", 374 "http", 375 "indexmap", 376 "slab", ··· 387 388 [[package]] 389 name = "http" 390 - version = "0.2.12" 391 source = "registry+https://github.com/rust-lang/crates.io-index" 392 - checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" 393 dependencies = [ 394 "bytes", 395 "fnv", ··· 398 399 [[package]] 400 name = "http-body" 401 - version = "0.4.6" 402 source = "registry+https://github.com/rust-lang/crates.io-index" 403 - checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" 404 dependencies = [ 405 "bytes", 406 "http", 407 "pin-project-lite", 408 ] 409 410 [[package]] 411 name = "http-range-header" 412 - version = "0.3.1" 413 source = "registry+https://github.com/rust-lang/crates.io-index" 414 - checksum = "add0ab9360ddbd88cfeb3bd9574a1d85cfdfa14db10b3e21d3700dbc4328758f" 415 416 [[package]] 417 name = "httparse" ··· 427 428 [[package]] 429 name = "hyper" 430 - version = "0.14.32" 431 source = "registry+https://github.com/rust-lang/crates.io-index" 432 - checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7" 433 dependencies = [ 434 "bytes", 435 "futures-channel", 436 - "futures-core", 437 "futures-util", 438 "h2", 439 "http", ··· 442 "httpdate", 443 "itoa", 444 "pin-project-lite", 445 - "socket2", 446 "tokio", 447 - "tower-service", 448 - "tracing", 449 "want", 450 ] 451 452 [[package]] 453 name = "hyper-tls" 454 - version = "0.5.0" 455 source = "registry+https://github.com/rust-lang/crates.io-index" 456 - checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" 457 dependencies = [ 458 "bytes", 459 "hyper", 460 "native-tls", 461 "tokio", 462 "tokio-native-tls", 463 ] 464 465 [[package]] ··· 624 checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" 625 626 [[package]] 627 name = "js-sys" 628 version = "0.3.76" 629 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 675 676 [[package]] 677 name = "matchit" 678 - version = "0.5.0" 679 source = "registry+https://github.com/rust-lang/crates.io-index" 680 - checksum = "73cbba799671b762df5a175adf59ce145165747bb891505c43d09aefbbf38beb" 681 682 [[package]] 683 name = "memchr" ··· 783 source = "registry+https://github.com/rust-lang/crates.io-index" 784 checksum = "6174bc48f102d208783c2c84bf931bb75927a617866870de8a4ea85597f871f5" 785 dependencies = [ 786 - "bitflags 2.6.0", 787 "cfg-if", 788 "foreign-types", 789 "libc", ··· 847 "libc", 848 "redox_syscall", 849 "smallvec", 850 - "windows-targets 0.52.6", 851 ] 852 853 [[package]] ··· 857 checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" 858 859 [[package]] 860 - name = "pin-project" 861 - version = "1.1.8" 862 - source = "registry+https://github.com/rust-lang/crates.io-index" 863 - checksum = "1e2ec53ad785f4d35dac0adea7f7dc6f1bb277ad84a680c7afefeae05d1f5916" 864 - dependencies = [ 865 - "pin-project-internal", 866 - ] 867 - 868 - [[package]] 869 - name = "pin-project-internal" 870 - version = "1.1.8" 871 - source = "registry+https://github.com/rust-lang/crates.io-index" 872 - checksum = "d56a66c0c55993aa927429d0f8a0abfd74f084e4d9c192cffed01e418d83eefb" 873 - dependencies = [ 874 - "proc-macro2", 875 - "quote", 876 - "syn", 877 - ] 878 - 879 - [[package]] 880 name = "pin-project-lite" 881 version = "0.2.16" 882 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 918 source = "registry+https://github.com/rust-lang/crates.io-index" 919 checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" 920 dependencies = [ 921 - "bitflags 2.6.0", 922 ] 923 924 [[package]] 925 name = "reqwest" 926 - version = "0.11.27" 927 source = "registry+https://github.com/rust-lang/crates.io-index" 928 - checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" 929 dependencies = [ 930 "base64", 931 "bytes", ··· 935 "h2", 936 "http", 937 "http-body", 938 "hyper", 939 "hyper-tls", 940 "ipnet", 941 "js-sys", 942 "log", ··· 953 "system-configuration", 954 "tokio", 955 "tokio-native-tls", 956 "tower-service", 957 "url", 958 "wasm-bindgen", 959 "wasm-bindgen-futures", 960 "web-sys", 961 - "winreg", 962 ] 963 964 [[package]] ··· 973 source = "registry+https://github.com/rust-lang/crates.io-index" 974 checksum = "a78891ee6bf2340288408954ac787aa063d8e8817e9f53abb37c695c6d834ef6" 975 dependencies = [ 976 - "bitflags 2.6.0", 977 "errno", 978 "libc", 979 "linux-raw-sys", ··· 981 ] 982 983 [[package]] 984 name = "rustls-pemfile" 985 - version = "1.0.4" 986 source = "registry+https://github.com/rust-lang/crates.io-index" 987 - checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" 988 dependencies = [ 989 - "base64", 990 ] 991 992 [[package]] 993 name = "ryu" 994 version = "1.0.18" 995 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1016 source = "registry+https://github.com/rust-lang/crates.io-index" 1017 checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" 1018 dependencies = [ 1019 - "bitflags 2.6.0", 1020 "core-foundation", 1021 "core-foundation-sys", 1022 "libc", ··· 1066 ] 1067 1068 [[package]] 1069 name = "serde_urlencoded" 1070 version = "0.7.1" 1071 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1127 ] 1128 1129 [[package]] 1130 name = "stable_deref_trait" 1131 version = "1.2.0" 1132 source = "registry+https://github.com/rust-lang/crates.io-index" 1133 checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" 1134 1135 [[package]] 1136 name = "syn" 1137 version = "2.0.95" 1138 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1145 1146 [[package]] 1147 name = "sync_wrapper" 1148 - version = "0.1.2" 1149 source = "registry+https://github.com/rust-lang/crates.io-index" 1150 - checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" 1151 1152 [[package]] 1153 name = "synstructure" ··· 1162 1163 [[package]] 1164 name = "system-configuration" 1165 - version = "0.5.1" 1166 source = "registry+https://github.com/rust-lang/crates.io-index" 1167 - checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" 1168 dependencies = [ 1169 - "bitflags 1.3.2", 1170 "core-foundation", 1171 "system-configuration-sys", 1172 ] 1173 1174 [[package]] 1175 name = "system-configuration-sys" 1176 - version = "0.5.0" 1177 source = "registry+https://github.com/rust-lang/crates.io-index" 1178 - checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" 1179 dependencies = [ 1180 "core-foundation-sys", 1181 "libc", ··· 1255 ] 1256 1257 [[package]] 1258 name = "tokio-util" 1259 version = "0.7.13" 1260 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1269 1270 [[package]] 1271 name = "tower" 1272 - version = "0.4.13" 1273 source = "registry+https://github.com/rust-lang/crates.io-index" 1274 - checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" 1275 dependencies = [ 1276 "futures-core", 1277 "futures-util", 1278 - "pin-project", 1279 "pin-project-lite", 1280 "tokio", 1281 "tower-layer", 1282 "tower-service", ··· 1285 1286 [[package]] 1287 name = "tower-http" 1288 - version = "0.3.5" 1289 source = "registry+https://github.com/rust-lang/crates.io-index" 1290 - checksum = "f873044bf02dd1e8239e9c1293ea39dad76dc594ec16185d0a1bf31d8dc8d858" 1291 dependencies = [ 1292 "async-compression", 1293 - "bitflags 1.3.2", 1294 "bytes", 1295 "futures-core", 1296 "futures-util", 1297 "http", 1298 "http-body", 1299 "http-range-header", 1300 "httpdate", 1301 "mime", ··· 1304 "pin-project-lite", 1305 "tokio", 1306 "tokio-util", 1307 - "tower", 1308 "tower-layer", 1309 "tower-service", 1310 "tracing", ··· 1397 version = "1.0.14" 1398 source = "registry+https://github.com/rust-lang/crates.io-index" 1399 checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" 1400 1401 [[package]] 1402 name = "url" ··· 1548 checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1549 1550 [[package]] 1551 - name = "windows-sys" 1552 - version = "0.48.0" 1553 source = "registry+https://github.com/rust-lang/crates.io-index" 1554 - checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" 1555 dependencies = [ 1556 - "windows-targets 0.48.5", 1557 ] 1558 1559 [[package]] ··· 1562 source = "registry+https://github.com/rust-lang/crates.io-index" 1563 checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 1564 dependencies = [ 1565 - "windows-targets 0.52.6", 1566 ] 1567 1568 [[package]] ··· 1571 source = "registry+https://github.com/rust-lang/crates.io-index" 1572 checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 1573 dependencies = [ 1574 - "windows-targets 0.52.6", 1575 - ] 1576 - 1577 - [[package]] 1578 - name = "windows-targets" 1579 - version = "0.48.5" 1580 - source = "registry+https://github.com/rust-lang/crates.io-index" 1581 - checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" 1582 - dependencies = [ 1583 - "windows_aarch64_gnullvm 0.48.5", 1584 - "windows_aarch64_msvc 0.48.5", 1585 - "windows_i686_gnu 0.48.5", 1586 - "windows_i686_msvc 0.48.5", 1587 - "windows_x86_64_gnu 0.48.5", 1588 - "windows_x86_64_gnullvm 0.48.5", 1589 - "windows_x86_64_msvc 0.48.5", 1590 ] 1591 1592 [[package]] ··· 1595 source = "registry+https://github.com/rust-lang/crates.io-index" 1596 checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 1597 dependencies = [ 1598 - "windows_aarch64_gnullvm 0.52.6", 1599 - "windows_aarch64_msvc 0.52.6", 1600 - "windows_i686_gnu 0.52.6", 1601 "windows_i686_gnullvm", 1602 - "windows_i686_msvc 0.52.6", 1603 - "windows_x86_64_gnu 0.52.6", 1604 - "windows_x86_64_gnullvm 0.52.6", 1605 - "windows_x86_64_msvc 0.52.6", 1606 ] 1607 - 1608 - [[package]] 1609 - name = "windows_aarch64_gnullvm" 1610 - version = "0.48.5" 1611 - source = "registry+https://github.com/rust-lang/crates.io-index" 1612 - checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" 1613 1614 [[package]] 1615 name = "windows_aarch64_gnullvm" ··· 1619 1620 [[package]] 1621 name = "windows_aarch64_msvc" 1622 - version = "0.48.5" 1623 - source = "registry+https://github.com/rust-lang/crates.io-index" 1624 - checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" 1625 - 1626 - [[package]] 1627 - name = "windows_aarch64_msvc" 1628 version = "0.52.6" 1629 source = "registry+https://github.com/rust-lang/crates.io-index" 1630 checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 1631 1632 [[package]] 1633 name = "windows_i686_gnu" 1634 - version = "0.48.5" 1635 - source = "registry+https://github.com/rust-lang/crates.io-index" 1636 - checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" 1637 - 1638 - [[package]] 1639 - name = "windows_i686_gnu" 1640 version = "0.52.6" 1641 source = "registry+https://github.com/rust-lang/crates.io-index" 1642 checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" ··· 1649 1650 [[package]] 1651 name = "windows_i686_msvc" 1652 - version = "0.48.5" 1653 - source = "registry+https://github.com/rust-lang/crates.io-index" 1654 - checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" 1655 - 1656 - [[package]] 1657 - name = "windows_i686_msvc" 1658 version = "0.52.6" 1659 source = "registry+https://github.com/rust-lang/crates.io-index" 1660 checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 1661 1662 [[package]] 1663 name = "windows_x86_64_gnu" 1664 - version = "0.48.5" 1665 - source = "registry+https://github.com/rust-lang/crates.io-index" 1666 - checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" 1667 - 1668 - [[package]] 1669 - name = "windows_x86_64_gnu" 1670 version = "0.52.6" 1671 source = "registry+https://github.com/rust-lang/crates.io-index" 1672 checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 1673 1674 [[package]] 1675 name = "windows_x86_64_gnullvm" 1676 - version = "0.48.5" 1677 - source = "registry+https://github.com/rust-lang/crates.io-index" 1678 - checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" 1679 - 1680 - [[package]] 1681 - name = "windows_x86_64_gnullvm" 1682 version = "0.52.6" 1683 source = "registry+https://github.com/rust-lang/crates.io-index" 1684 checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 1685 1686 [[package]] 1687 name = "windows_x86_64_msvc" 1688 - version = "0.48.5" 1689 - source = "registry+https://github.com/rust-lang/crates.io-index" 1690 - checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" 1691 - 1692 - [[package]] 1693 - name = "windows_x86_64_msvc" 1694 version = "0.52.6" 1695 source = "registry+https://github.com/rust-lang/crates.io-index" 1696 checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 1697 - 1698 - [[package]] 1699 - name = "winreg" 1700 - version = "0.50.0" 1701 - source = "registry+https://github.com/rust-lang/crates.io-index" 1702 - checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" 1703 - dependencies = [ 1704 - "cfg-if", 1705 - "windows-sys 0.48.0", 1706 - ] 1707 1708 [[package]] 1709 name = "write16" ··· 1763 ] 1764 1765 [[package]] 1766 name = "zerovec" 1767 version = "0.10.4" 1768 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1783 "quote", 1784 "syn", 1785 ]
··· 40 41 [[package]] 42 name = "async-compression" 43 + version = "0.4.18" 44 source = "registry+https://github.com/rust-lang/crates.io-index" 45 + checksum = "df895a515f70646414f4b45c0b79082783b80552b373a68283012928df56f522" 46 dependencies = [ 47 "brotli", 48 "flate2", ··· 50 "memchr", 51 "pin-project-lite", 52 "tokio", 53 + "zstd", 54 + "zstd-safe", 55 ] 56 57 [[package]] 58 + name = "atomic-waker" 59 + version = "1.1.2" 60 source = "registry+https://github.com/rust-lang/crates.io-index" 61 + checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" 62 63 [[package]] 64 name = "autocfg" ··· 68 69 [[package]] 70 name = "axum" 71 + version = "0.8.1" 72 source = "registry+https://github.com/rust-lang/crates.io-index" 73 + checksum = "6d6fd624c75e18b3b4c6b9caf42b1afe24437daaee904069137d8bab077be8b8" 74 dependencies = [ 75 "axum-core", 76 "bytes", 77 + "form_urlencoded", 78 "futures-util", 79 "http", 80 "http-body", 81 + "http-body-util", 82 "hyper", 83 + "hyper-util", 84 "itoa", 85 "matchit", 86 "memchr", 87 "mime", 88 "percent-encoding", 89 "pin-project-lite", 90 + "rustversion", 91 "serde", 92 "serde_json", 93 + "serde_path_to_error", 94 "serde_urlencoded", 95 "sync_wrapper", 96 "tokio", 97 "tower", 98 "tower-layer", 99 "tower-service", 100 + "tracing", 101 ] 102 103 [[package]] 104 name = "axum-core" 105 + version = "0.5.0" 106 source = "registry+https://github.com/rust-lang/crates.io-index" 107 + checksum = "df1362f362fd16024ae199c1970ce98f9661bf5ef94b9808fee734bc3698b733" 108 dependencies = [ 109 "bytes", 110 "futures-util", 111 "http", 112 "http-body", 113 + "http-body-util", 114 "mime", 115 + "pin-project-lite", 116 + "rustversion", 117 + "sync_wrapper", 118 "tower-layer", 119 "tower-service", 120 + "tracing", 121 ] 122 123 [[package]] ··· 132 "miniz_oxide", 133 "object", 134 "rustc-demangle", 135 + "windows-targets", 136 ] 137 138 [[package]] 139 name = "base64" 140 + version = "0.22.1" 141 source = "registry+https://github.com/rust-lang/crates.io-index" 142 + checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" 143 144 [[package]] 145 name = "bitflags" ··· 149 150 [[package]] 151 name = "brotli" 152 + version = "7.0.0" 153 source = "registry+https://github.com/rust-lang/crates.io-index" 154 + checksum = "cc97b8f16f944bba54f0433f07e30be199b6dc2bd25937444bbad560bcea29bd" 155 dependencies = [ 156 "alloc-no-stdlib", 157 "alloc-stdlib", ··· 160 161 [[package]] 162 name = "brotli-decompressor" 163 + version = "4.0.1" 164 source = "registry+https://github.com/rust-lang/crates.io-index" 165 + checksum = "9a45bd2e4095a8b518033b128020dd4a55aab1c0a381ba4404a472630f4bc362" 166 dependencies = [ 167 "alloc-no-stdlib", 168 "alloc-stdlib", ··· 186 source = "registry+https://github.com/rust-lang/crates.io-index" 187 checksum = "a012a0df96dd6d06ba9a1b29d6402d1a5d77c6befd2566afdc26e10603dc93d7" 188 dependencies = [ 189 + "jobserver", 190 + "libc", 191 "shlex", 192 ] 193 ··· 362 363 [[package]] 364 name = "h2" 365 + version = "0.4.7" 366 source = "registry+https://github.com/rust-lang/crates.io-index" 367 + checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e" 368 dependencies = [ 369 + "atomic-waker", 370 "bytes", 371 "fnv", 372 "futures-core", 373 "futures-sink", 374 "http", 375 "indexmap", 376 "slab", ··· 387 388 [[package]] 389 name = "http" 390 + version = "1.2.0" 391 source = "registry+https://github.com/rust-lang/crates.io-index" 392 + checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea" 393 dependencies = [ 394 "bytes", 395 "fnv", ··· 398 399 [[package]] 400 name = "http-body" 401 + version = "1.0.1" 402 source = "registry+https://github.com/rust-lang/crates.io-index" 403 + checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" 404 dependencies = [ 405 "bytes", 406 "http", 407 + ] 408 + 409 + [[package]] 410 + name = "http-body-util" 411 + version = "0.1.2" 412 + source = "registry+https://github.com/rust-lang/crates.io-index" 413 + checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" 414 + dependencies = [ 415 + "bytes", 416 + "futures-util", 417 + "http", 418 + "http-body", 419 "pin-project-lite", 420 ] 421 422 [[package]] 423 name = "http-range-header" 424 + version = "0.4.2" 425 source = "registry+https://github.com/rust-lang/crates.io-index" 426 + checksum = "9171a2ea8a68358193d15dd5d70c1c10a2afc3e7e4c5bc92bc9f025cebd7359c" 427 428 [[package]] 429 name = "httparse" ··· 439 440 [[package]] 441 name = "hyper" 442 + version = "1.5.2" 443 source = "registry+https://github.com/rust-lang/crates.io-index" 444 + checksum = "256fb8d4bd6413123cc9d91832d78325c48ff41677595be797d90f42969beae0" 445 dependencies = [ 446 "bytes", 447 "futures-channel", 448 "futures-util", 449 "h2", 450 "http", ··· 453 "httpdate", 454 "itoa", 455 "pin-project-lite", 456 + "smallvec", 457 "tokio", 458 "want", 459 + ] 460 + 461 + [[package]] 462 + name = "hyper-rustls" 463 + version = "0.27.5" 464 + source = "registry+https://github.com/rust-lang/crates.io-index" 465 + checksum = "2d191583f3da1305256f22463b9bb0471acad48a4e534a5218b9963e9c1f59b2" 466 + dependencies = [ 467 + "futures-util", 468 + "http", 469 + "hyper", 470 + "hyper-util", 471 + "rustls", 472 + "rustls-pki-types", 473 + "tokio", 474 + "tokio-rustls", 475 + "tower-service", 476 ] 477 478 [[package]] 479 name = "hyper-tls" 480 + version = "0.6.0" 481 source = "registry+https://github.com/rust-lang/crates.io-index" 482 + checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" 483 dependencies = [ 484 "bytes", 485 + "http-body-util", 486 "hyper", 487 + "hyper-util", 488 "native-tls", 489 "tokio", 490 "tokio-native-tls", 491 + "tower-service", 492 + ] 493 + 494 + [[package]] 495 + name = "hyper-util" 496 + version = "0.1.10" 497 + source = "registry+https://github.com/rust-lang/crates.io-index" 498 + checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" 499 + dependencies = [ 500 + "bytes", 501 + "futures-channel", 502 + "futures-util", 503 + "http", 504 + "http-body", 505 + "hyper", 506 + "pin-project-lite", 507 + "socket2", 508 + "tokio", 509 + "tower-service", 510 + "tracing", 511 ] 512 513 [[package]] ··· 672 checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" 673 674 [[package]] 675 + name = "jobserver" 676 + version = "0.1.32" 677 + source = "registry+https://github.com/rust-lang/crates.io-index" 678 + checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" 679 + dependencies = [ 680 + "libc", 681 + ] 682 + 683 + [[package]] 684 name = "js-sys" 685 version = "0.3.76" 686 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 732 733 [[package]] 734 name = "matchit" 735 + version = "0.8.4" 736 source = "registry+https://github.com/rust-lang/crates.io-index" 737 + checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" 738 739 [[package]] 740 name = "memchr" ··· 840 source = "registry+https://github.com/rust-lang/crates.io-index" 841 checksum = "6174bc48f102d208783c2c84bf931bb75927a617866870de8a4ea85597f871f5" 842 dependencies = [ 843 + "bitflags", 844 "cfg-if", 845 "foreign-types", 846 "libc", ··· 904 "libc", 905 "redox_syscall", 906 "smallvec", 907 + "windows-targets", 908 ] 909 910 [[package]] ··· 914 checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" 915 916 [[package]] 917 name = "pin-project-lite" 918 version = "0.2.16" 919 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 955 source = "registry+https://github.com/rust-lang/crates.io-index" 956 checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" 957 dependencies = [ 958 + "bitflags", 959 ] 960 961 [[package]] 962 name = "reqwest" 963 + version = "0.12.12" 964 source = "registry+https://github.com/rust-lang/crates.io-index" 965 + checksum = "43e734407157c3c2034e0258f5e4473ddb361b1e85f95a66690d67264d7cd1da" 966 dependencies = [ 967 "base64", 968 "bytes", ··· 972 "h2", 973 "http", 974 "http-body", 975 + "http-body-util", 976 "hyper", 977 + "hyper-rustls", 978 "hyper-tls", 979 + "hyper-util", 980 "ipnet", 981 "js-sys", 982 "log", ··· 993 "system-configuration", 994 "tokio", 995 "tokio-native-tls", 996 + "tower", 997 "tower-service", 998 "url", 999 "wasm-bindgen", 1000 "wasm-bindgen-futures", 1001 "web-sys", 1002 + "windows-registry", 1003 + ] 1004 + 1005 + [[package]] 1006 + name = "ring" 1007 + version = "0.17.8" 1008 + source = "registry+https://github.com/rust-lang/crates.io-index" 1009 + checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" 1010 + dependencies = [ 1011 + "cc", 1012 + "cfg-if", 1013 + "getrandom", 1014 + "libc", 1015 + "spin", 1016 + "untrusted", 1017 + "windows-sys 0.52.0", 1018 ] 1019 1020 [[package]] ··· 1029 source = "registry+https://github.com/rust-lang/crates.io-index" 1030 checksum = "a78891ee6bf2340288408954ac787aa063d8e8817e9f53abb37c695c6d834ef6" 1031 dependencies = [ 1032 + "bitflags", 1033 "errno", 1034 "libc", 1035 "linux-raw-sys", ··· 1037 ] 1038 1039 [[package]] 1040 + name = "rustls" 1041 + version = "0.23.20" 1042 + source = "registry+https://github.com/rust-lang/crates.io-index" 1043 + checksum = "5065c3f250cbd332cd894be57c40fa52387247659b14a2d6041d121547903b1b" 1044 + dependencies = [ 1045 + "once_cell", 1046 + "rustls-pki-types", 1047 + "rustls-webpki", 1048 + "subtle", 1049 + "zeroize", 1050 + ] 1051 + 1052 + [[package]] 1053 name = "rustls-pemfile" 1054 + version = "2.2.0" 1055 + source = "registry+https://github.com/rust-lang/crates.io-index" 1056 + checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" 1057 + dependencies = [ 1058 + "rustls-pki-types", 1059 + ] 1060 + 1061 + [[package]] 1062 + name = "rustls-pki-types" 1063 + version = "1.10.1" 1064 + source = "registry+https://github.com/rust-lang/crates.io-index" 1065 + checksum = "d2bf47e6ff922db3825eb750c4e2ff784c6ff8fb9e13046ef6a1d1c5401b0b37" 1066 + 1067 + [[package]] 1068 + name = "rustls-webpki" 1069 + version = "0.102.8" 1070 source = "registry+https://github.com/rust-lang/crates.io-index" 1071 + checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" 1072 dependencies = [ 1073 + "ring", 1074 + "rustls-pki-types", 1075 + "untrusted", 1076 ] 1077 1078 [[package]] 1079 + name = "rustversion" 1080 + version = "1.0.19" 1081 + source = "registry+https://github.com/rust-lang/crates.io-index" 1082 + checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" 1083 + 1084 + [[package]] 1085 name = "ryu" 1086 version = "1.0.18" 1087 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1108 source = "registry+https://github.com/rust-lang/crates.io-index" 1109 checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" 1110 dependencies = [ 1111 + "bitflags", 1112 "core-foundation", 1113 "core-foundation-sys", 1114 "libc", ··· 1158 ] 1159 1160 [[package]] 1161 + name = "serde_path_to_error" 1162 + version = "0.1.16" 1163 + source = "registry+https://github.com/rust-lang/crates.io-index" 1164 + checksum = "af99884400da37c88f5e9146b7f1fd0fbcae8f6eec4e9da38b67d05486f814a6" 1165 + dependencies = [ 1166 + "itoa", 1167 + "serde", 1168 + ] 1169 + 1170 + [[package]] 1171 name = "serde_urlencoded" 1172 version = "0.7.1" 1173 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1229 ] 1230 1231 [[package]] 1232 + name = "spin" 1233 + version = "0.9.8" 1234 + source = "registry+https://github.com/rust-lang/crates.io-index" 1235 + checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" 1236 + 1237 + [[package]] 1238 name = "stable_deref_trait" 1239 version = "1.2.0" 1240 source = "registry+https://github.com/rust-lang/crates.io-index" 1241 checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" 1242 1243 [[package]] 1244 + name = "subtle" 1245 + version = "2.6.1" 1246 + source = "registry+https://github.com/rust-lang/crates.io-index" 1247 + checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" 1248 + 1249 + [[package]] 1250 name = "syn" 1251 version = "2.0.95" 1252 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1259 1260 [[package]] 1261 name = "sync_wrapper" 1262 + version = "1.0.2" 1263 source = "registry+https://github.com/rust-lang/crates.io-index" 1264 + checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" 1265 + dependencies = [ 1266 + "futures-core", 1267 + ] 1268 1269 [[package]] 1270 name = "synstructure" ··· 1279 1280 [[package]] 1281 name = "system-configuration" 1282 + version = "0.6.1" 1283 source = "registry+https://github.com/rust-lang/crates.io-index" 1284 + checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" 1285 dependencies = [ 1286 + "bitflags", 1287 "core-foundation", 1288 "system-configuration-sys", 1289 ] 1290 1291 [[package]] 1292 name = "system-configuration-sys" 1293 + version = "0.6.0" 1294 source = "registry+https://github.com/rust-lang/crates.io-index" 1295 + checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" 1296 dependencies = [ 1297 "core-foundation-sys", 1298 "libc", ··· 1372 ] 1373 1374 [[package]] 1375 + name = "tokio-rustls" 1376 + version = "0.26.1" 1377 + source = "registry+https://github.com/rust-lang/crates.io-index" 1378 + checksum = "5f6d0975eaace0cf0fcadee4e4aaa5da15b5c079146f2cffb67c113be122bf37" 1379 + dependencies = [ 1380 + "rustls", 1381 + "tokio", 1382 + ] 1383 + 1384 + [[package]] 1385 name = "tokio-util" 1386 version = "0.7.13" 1387 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1396 1397 [[package]] 1398 name = "tower" 1399 + version = "0.5.2" 1400 source = "registry+https://github.com/rust-lang/crates.io-index" 1401 + checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" 1402 dependencies = [ 1403 "futures-core", 1404 "futures-util", 1405 "pin-project-lite", 1406 + "sync_wrapper", 1407 "tokio", 1408 "tower-layer", 1409 "tower-service", ··· 1412 1413 [[package]] 1414 name = "tower-http" 1415 + version = "0.6.2" 1416 source = "registry+https://github.com/rust-lang/crates.io-index" 1417 + checksum = "403fa3b783d4b626a8ad51d766ab03cb6d2dbfc46b1c5d4448395e6628dc9697" 1418 dependencies = [ 1419 "async-compression", 1420 + "bitflags", 1421 "bytes", 1422 "futures-core", 1423 "futures-util", 1424 "http", 1425 "http-body", 1426 + "http-body-util", 1427 "http-range-header", 1428 "httpdate", 1429 "mime", ··· 1432 "pin-project-lite", 1433 "tokio", 1434 "tokio-util", 1435 "tower-layer", 1436 "tower-service", 1437 "tracing", ··· 1524 version = "1.0.14" 1525 source = "registry+https://github.com/rust-lang/crates.io-index" 1526 checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" 1527 + 1528 + [[package]] 1529 + name = "untrusted" 1530 + version = "0.9.0" 1531 + source = "registry+https://github.com/rust-lang/crates.io-index" 1532 + checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" 1533 1534 [[package]] 1535 name = "url" ··· 1681 checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1682 1683 [[package]] 1684 + name = "windows-registry" 1685 + version = "0.2.0" 1686 + source = "registry+https://github.com/rust-lang/crates.io-index" 1687 + checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0" 1688 + dependencies = [ 1689 + "windows-result", 1690 + "windows-strings", 1691 + "windows-targets", 1692 + ] 1693 + 1694 + [[package]] 1695 + name = "windows-result" 1696 + version = "0.2.0" 1697 + source = "registry+https://github.com/rust-lang/crates.io-index" 1698 + checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" 1699 + dependencies = [ 1700 + "windows-targets", 1701 + ] 1702 + 1703 + [[package]] 1704 + name = "windows-strings" 1705 + version = "0.1.0" 1706 source = "registry+https://github.com/rust-lang/crates.io-index" 1707 + checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" 1708 dependencies = [ 1709 + "windows-result", 1710 + "windows-targets", 1711 ] 1712 1713 [[package]] ··· 1716 source = "registry+https://github.com/rust-lang/crates.io-index" 1717 checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 1718 dependencies = [ 1719 + "windows-targets", 1720 ] 1721 1722 [[package]] ··· 1725 source = "registry+https://github.com/rust-lang/crates.io-index" 1726 checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 1727 dependencies = [ 1728 + "windows-targets", 1729 ] 1730 1731 [[package]] ··· 1734 source = "registry+https://github.com/rust-lang/crates.io-index" 1735 checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 1736 dependencies = [ 1737 + "windows_aarch64_gnullvm", 1738 + "windows_aarch64_msvc", 1739 + "windows_i686_gnu", 1740 "windows_i686_gnullvm", 1741 + "windows_i686_msvc", 1742 + "windows_x86_64_gnu", 1743 + "windows_x86_64_gnullvm", 1744 + "windows_x86_64_msvc", 1745 ] 1746 1747 [[package]] 1748 name = "windows_aarch64_gnullvm" ··· 1752 1753 [[package]] 1754 name = "windows_aarch64_msvc" 1755 version = "0.52.6" 1756 source = "registry+https://github.com/rust-lang/crates.io-index" 1757 checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 1758 1759 [[package]] 1760 name = "windows_i686_gnu" 1761 version = "0.52.6" 1762 source = "registry+https://github.com/rust-lang/crates.io-index" 1763 checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" ··· 1770 1771 [[package]] 1772 name = "windows_i686_msvc" 1773 version = "0.52.6" 1774 source = "registry+https://github.com/rust-lang/crates.io-index" 1775 checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 1776 1777 [[package]] 1778 name = "windows_x86_64_gnu" 1779 version = "0.52.6" 1780 source = "registry+https://github.com/rust-lang/crates.io-index" 1781 checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 1782 1783 [[package]] 1784 name = "windows_x86_64_gnullvm" 1785 version = "0.52.6" 1786 source = "registry+https://github.com/rust-lang/crates.io-index" 1787 checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 1788 1789 [[package]] 1790 name = "windows_x86_64_msvc" 1791 version = "0.52.6" 1792 source = "registry+https://github.com/rust-lang/crates.io-index" 1793 checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 1794 1795 [[package]] 1796 name = "write16" ··· 1850 ] 1851 1852 [[package]] 1853 + name = "zeroize" 1854 + version = "1.8.1" 1855 + source = "registry+https://github.com/rust-lang/crates.io-index" 1856 + checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" 1857 + 1858 + [[package]] 1859 name = "zerovec" 1860 version = "0.10.4" 1861 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1876 "quote", 1877 "syn", 1878 ] 1879 + 1880 + [[package]] 1881 + name = "zstd" 1882 + version = "0.13.2" 1883 + source = "registry+https://github.com/rust-lang/crates.io-index" 1884 + checksum = "fcf2b778a664581e31e389454a7072dab1647606d44f7feea22cd5abb9c9f3f9" 1885 + dependencies = [ 1886 + "zstd-safe", 1887 + ] 1888 + 1889 + [[package]] 1890 + name = "zstd-safe" 1891 + version = "7.2.1" 1892 + source = "registry+https://github.com/rust-lang/crates.io-index" 1893 + checksum = "54a3ab4db68cea366acc5c897c7b4d4d1b8994a9cd6e6f841f8964566a419059" 1894 + dependencies = [ 1895 + "zstd-sys", 1896 + ] 1897 + 1898 + [[package]] 1899 + name = "zstd-sys" 1900 + version = "2.0.13+zstd.1.5.6" 1901 + source = "registry+https://github.com/rust-lang/crates.io-index" 1902 + checksum = "38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa" 1903 + dependencies = [ 1904 + "cc", 1905 + "pkg-config", 1906 + ]
+4 -9
server/Cargo.toml
··· 7 8 [dependencies] 9 anyhow = "1.0.57" 10 - axum = "0.5.6" 11 - reqwest = "0.11.10" 12 tokio = { version = "1.18.2", features = ["full"] } 13 - tower = "0.4.12" 14 - tower-http = { version = "0.3.3", features = [ 15 - "compression-full", 16 - "fs", 17 - "trace", 18 - "set-header" 19 - ] } 20 tracing = "0.1.34" 21 tracing-subscriber = "0.3.11"
··· 7 8 [dependencies] 9 anyhow = "1.0.57" 10 + axum = "0.8.1" 11 + reqwest = "0.12.12" 12 tokio = { version = "1.18.2", features = ["full"] } 13 + tower = "0.5.2" 14 + tower-http = { version = "0.6.2", features = ["compression-full", "fs", "trace", "set-header"] } 15 tracing = "0.1.34" 16 tracing-subscriber = "0.3.11"
+3 -11
server/src/main.rs
··· 1 mod scrobble_monitor; 2 3 - use std::{env, io, net::SocketAddr}; 4 5 use crate::scrobble_monitor::ScrobbleMonitor; 6 ··· 38 39 let addr = SocketAddr::from(([0, 0, 0, 0], 8080)); 40 tracing::debug!("starting server on {addr}"); 41 - axum::Server::bind(&addr) 42 - .serve(app.into_make_service()) 43 - .await?; 44 45 Ok(()) 46 - } 47 - 48 - async fn handle_serve_error(error: io::Error) -> impl IntoResponse { 49 - ( 50 - StatusCode::INTERNAL_SERVER_ERROR, 51 - format!("Unhandled internal error: {error}"), 52 - ) 53 } 54 55 async fn get_scrobble(Extension(mut monitor): Extension<ScrobbleMonitor>) -> impl IntoResponse {
··· 1 mod scrobble_monitor; 2 3 + use std::{env, net::SocketAddr}; 4 5 use crate::scrobble_monitor::ScrobbleMonitor; 6 ··· 38 39 let addr = SocketAddr::from(([0, 0, 0, 0], 8080)); 40 tracing::debug!("starting server on {addr}"); 41 + let listener = tokio::net::TcpListener::bind(addr).await?; 42 + axum::serve(listener, app).await?; 43 44 Ok(()) 45 } 46 47 async fn get_scrobble(Extension(mut monitor): Extension<ScrobbleMonitor>) -> impl IntoResponse {