An easy-to-host PDS on the ATProtocol, MacOS. Grandma-approved.

chore(relay): add reqwest 0.12 and wiremock 0.6 deps for POST /v1/dids (MM-89)

authored by malpercio.dev and committed by

Tangled c1c1e357 ddfa014a

+412
+406
Cargo.lock
··· 109 109 checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" 110 110 111 111 [[package]] 112 + name = "assert-json-diff" 113 + version = "2.0.2" 114 + source = "registry+https://github.com/rust-lang/crates.io-index" 115 + checksum = "47e4f2b81832e72834d7518d8487a0396a28cc408186a2e8854c0f98011faf12" 116 + dependencies = [ 117 + "serde", 118 + "serde_json", 119 + ] 120 + 121 + [[package]] 112 122 name = "async-stream" 113 123 version = "0.3.6" 114 124 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 429 439 checksum = "2f421161cb492475f1661ddc9815a745a1c894592070661180fdec3d4872e9c3" 430 440 431 441 [[package]] 442 + name = "core-foundation" 443 + version = "0.9.4" 444 + source = "registry+https://github.com/rust-lang/crates.io-index" 445 + checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" 446 + dependencies = [ 447 + "core-foundation-sys", 448 + "libc", 449 + ] 450 + 451 + [[package]] 452 + name = "core-foundation" 453 + version = "0.10.1" 454 + source = "registry+https://github.com/rust-lang/crates.io-index" 455 + checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" 456 + dependencies = [ 457 + "core-foundation-sys", 458 + "libc", 459 + ] 460 + 461 + [[package]] 462 + name = "core-foundation-sys" 463 + version = "0.8.7" 464 + source = "registry+https://github.com/rust-lang/crates.io-index" 465 + checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" 466 + 467 + [[package]] 432 468 name = "cpufeatures" 433 469 version = "0.2.17" 434 470 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 485 521 "p256", 486 522 "rand_core", 487 523 "serde", 524 + "serde_json", 488 525 "sha2", 489 526 "thiserror", 490 527 "zeroize", ··· 549 586 ] 550 587 551 588 [[package]] 589 + name = "deadpool" 590 + version = "0.12.3" 591 + source = "registry+https://github.com/rust-lang/crates.io-index" 592 + checksum = "0be2b1d1d6ec8d846f05e137292d0b89133caf95ef33695424c09568bdd39b1b" 593 + dependencies = [ 594 + "deadpool-runtime", 595 + "lazy_static", 596 + "num_cpus", 597 + "tokio", 598 + ] 599 + 600 + [[package]] 601 + name = "deadpool-runtime" 602 + version = "0.1.4" 603 + source = "registry+https://github.com/rust-lang/crates.io-index" 604 + checksum = "092966b41edc516079bdf31ec78a2e0588d1d0c08f78b91d8307215928642b2b" 605 + 606 + [[package]] 552 607 name = "der" 553 608 version = "0.7.10" 554 609 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 629 684 "sec1", 630 685 "subtle", 631 686 "zeroize", 687 + ] 688 + 689 + [[package]] 690 + name = "encoding_rs" 691 + version = "0.8.35" 692 + source = "registry+https://github.com/rust-lang/crates.io-index" 693 + checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" 694 + dependencies = [ 695 + "cfg-if", 632 696 ] 633 697 634 698 [[package]] ··· 715 779 checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" 716 780 717 781 [[package]] 782 + name = "foreign-types" 783 + version = "0.3.2" 784 + source = "registry+https://github.com/rust-lang/crates.io-index" 785 + checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" 786 + dependencies = [ 787 + "foreign-types-shared", 788 + ] 789 + 790 + [[package]] 791 + name = "foreign-types-shared" 792 + version = "0.1.1" 793 + source = "registry+https://github.com/rust-lang/crates.io-index" 794 + checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" 795 + 796 + [[package]] 718 797 name = "form_urlencoded" 719 798 version = "1.2.2" 720 799 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 724 803 ] 725 804 726 805 [[package]] 806 + name = "futures" 807 + version = "0.3.32" 808 + source = "registry+https://github.com/rust-lang/crates.io-index" 809 + checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d" 810 + dependencies = [ 811 + "futures-channel", 812 + "futures-core", 813 + "futures-executor", 814 + "futures-io", 815 + "futures-sink", 816 + "futures-task", 817 + "futures-util", 818 + ] 819 + 820 + [[package]] 727 821 name = "futures-channel" 728 822 version = "0.3.32" 729 823 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 796 890 source = "registry+https://github.com/rust-lang/crates.io-index" 797 891 checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" 798 892 dependencies = [ 893 + "futures-channel", 799 894 "futures-core", 800 895 "futures-io", 801 896 "futures-macro", ··· 937 1032 checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" 938 1033 939 1034 [[package]] 1035 + name = "hermit-abi" 1036 + version = "0.5.2" 1037 + source = "registry+https://github.com/rust-lang/crates.io-index" 1038 + checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" 1039 + 1040 + [[package]] 940 1041 name = "hex" 941 1042 version = "0.4.3" 942 1043 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1038 1139 ] 1039 1140 1040 1141 [[package]] 1142 + name = "hyper-rustls" 1143 + version = "0.27.7" 1144 + source = "registry+https://github.com/rust-lang/crates.io-index" 1145 + checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" 1146 + dependencies = [ 1147 + "http", 1148 + "hyper", 1149 + "hyper-util", 1150 + "rustls", 1151 + "rustls-pki-types", 1152 + "tokio", 1153 + "tokio-rustls", 1154 + "tower-service", 1155 + ] 1156 + 1157 + [[package]] 1041 1158 name = "hyper-timeout" 1042 1159 version = "0.5.2" 1043 1160 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1051 1168 ] 1052 1169 1053 1170 [[package]] 1171 + name = "hyper-tls" 1172 + version = "0.6.0" 1173 + source = "registry+https://github.com/rust-lang/crates.io-index" 1174 + checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" 1175 + dependencies = [ 1176 + "bytes", 1177 + "http-body-util", 1178 + "hyper", 1179 + "hyper-util", 1180 + "native-tls", 1181 + "tokio", 1182 + "tokio-native-tls", 1183 + "tower-service", 1184 + ] 1185 + 1186 + [[package]] 1054 1187 name = "hyper-util" 1055 1188 version = "0.1.20" 1056 1189 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1068 1201 "percent-encoding", 1069 1202 "pin-project-lite", 1070 1203 "socket2 0.6.3", 1204 + "system-configuration", 1071 1205 "tokio", 1072 1206 "tower-service", 1073 1207 "tracing", 1208 + "windows-registry", 1074 1209 ] 1075 1210 1076 1211 [[package]] ··· 1408 1543 ] 1409 1544 1410 1545 [[package]] 1546 + name = "native-tls" 1547 + version = "0.2.18" 1548 + source = "registry+https://github.com/rust-lang/crates.io-index" 1549 + checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2" 1550 + dependencies = [ 1551 + "libc", 1552 + "log", 1553 + "openssl", 1554 + "openssl-probe", 1555 + "openssl-sys", 1556 + "schannel", 1557 + "security-framework", 1558 + "security-framework-sys", 1559 + "tempfile", 1560 + ] 1561 + 1562 + [[package]] 1411 1563 name = "nu-ansi-term" 1412 1564 version = "0.50.3" 1413 1565 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1463 1615 ] 1464 1616 1465 1617 [[package]] 1618 + name = "num_cpus" 1619 + version = "1.17.0" 1620 + source = "registry+https://github.com/rust-lang/crates.io-index" 1621 + checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b" 1622 + dependencies = [ 1623 + "hermit-abi", 1624 + "libc", 1625 + ] 1626 + 1627 + [[package]] 1466 1628 name = "once_cell" 1467 1629 version = "1.21.3" 1468 1630 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1481 1643 checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" 1482 1644 1483 1645 [[package]] 1646 + name = "openssl" 1647 + version = "0.10.76" 1648 + source = "registry+https://github.com/rust-lang/crates.io-index" 1649 + checksum = "951c002c75e16ea2c65b8c7e4d3d51d5530d8dfa7d060b4776828c88cfb18ecf" 1650 + dependencies = [ 1651 + "bitflags", 1652 + "cfg-if", 1653 + "foreign-types", 1654 + "libc", 1655 + "once_cell", 1656 + "openssl-macros", 1657 + "openssl-sys", 1658 + ] 1659 + 1660 + [[package]] 1661 + name = "openssl-macros" 1662 + version = "0.1.1" 1663 + source = "registry+https://github.com/rust-lang/crates.io-index" 1664 + checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" 1665 + dependencies = [ 1666 + "proc-macro2", 1667 + "quote", 1668 + "syn", 1669 + ] 1670 + 1671 + [[package]] 1672 + name = "openssl-probe" 1673 + version = "0.2.1" 1674 + source = "registry+https://github.com/rust-lang/crates.io-index" 1675 + checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" 1676 + 1677 + [[package]] 1678 + name = "openssl-sys" 1679 + version = "0.9.112" 1680 + source = "registry+https://github.com/rust-lang/crates.io-index" 1681 + checksum = "57d55af3b3e226502be1526dfdba67ab0e9c96fc293004e79576b2b9edb0dbdb" 1682 + dependencies = [ 1683 + "cc", 1684 + "libc", 1685 + "pkg-config", 1686 + "vcpkg", 1687 + ] 1688 + 1689 + [[package]] 1484 1690 name = "opentelemetry" 1485 1691 version = "0.28.0" 1486 1692 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1828 2034 ] 1829 2035 1830 2036 [[package]] 2037 + name = "regex" 2038 + version = "1.12.3" 2039 + source = "registry+https://github.com/rust-lang/crates.io-index" 2040 + checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" 2041 + dependencies = [ 2042 + "aho-corasick", 2043 + "memchr", 2044 + "regex-automata", 2045 + "regex-syntax", 2046 + ] 2047 + 2048 + [[package]] 1831 2049 name = "regex-automata" 1832 2050 version = "0.4.14" 1833 2051 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1858 2076 "opentelemetry-otlp", 1859 2077 "opentelemetry_sdk", 1860 2078 "rand_core", 2079 + "reqwest", 1861 2080 "serde", 1862 2081 "serde_json", 1863 2082 "sha2", ··· 1872 2091 "tracing-opentelemetry", 1873 2092 "tracing-subscriber", 1874 2093 "uuid", 2094 + "wiremock", 1875 2095 "zeroize", 1876 2096 ] 1877 2097 ··· 1887 2107 dependencies = [ 1888 2108 "base64 0.22.1", 1889 2109 "bytes", 2110 + "encoding_rs", 1890 2111 "futures-channel", 1891 2112 "futures-core", 1892 2113 "futures-util", 2114 + "h2", 1893 2115 "http", 1894 2116 "http-body", 1895 2117 "http-body-util", 1896 2118 "hyper", 2119 + "hyper-rustls", 2120 + "hyper-tls", 1897 2121 "hyper-util", 1898 2122 "js-sys", 1899 2123 "log", 2124 + "mime", 2125 + "native-tls", 1900 2126 "percent-encoding", 1901 2127 "pin-project-lite", 2128 + "rustls-pki-types", 1902 2129 "serde", 1903 2130 "serde_json", 1904 2131 "serde_urlencoded", 1905 2132 "sync_wrapper", 1906 2133 "tokio", 2134 + "tokio-native-tls", 1907 2135 "tower 0.5.3", 1908 2136 "tower-http 0.6.8", 1909 2137 "tower-service", ··· 1924 2152 ] 1925 2153 1926 2154 [[package]] 2155 + name = "ring" 2156 + version = "0.17.14" 2157 + source = "registry+https://github.com/rust-lang/crates.io-index" 2158 + checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" 2159 + dependencies = [ 2160 + "cc", 2161 + "cfg-if", 2162 + "getrandom 0.2.17", 2163 + "libc", 2164 + "untrusted", 2165 + "windows-sys 0.52.0", 2166 + ] 2167 + 2168 + [[package]] 1927 2169 name = "rsa" 1928 2170 version = "0.9.10" 1929 2171 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1957 2199 ] 1958 2200 1959 2201 [[package]] 2202 + name = "rustls" 2203 + version = "0.23.37" 2204 + source = "registry+https://github.com/rust-lang/crates.io-index" 2205 + checksum = "758025cb5fccfd3bc2fd74708fd4682be41d99e5dff73c377c0646c6012c73a4" 2206 + dependencies = [ 2207 + "once_cell", 2208 + "rustls-pki-types", 2209 + "rustls-webpki", 2210 + "subtle", 2211 + "zeroize", 2212 + ] 2213 + 2214 + [[package]] 2215 + name = "rustls-pki-types" 2216 + version = "1.14.0" 2217 + source = "registry+https://github.com/rust-lang/crates.io-index" 2218 + checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" 2219 + dependencies = [ 2220 + "zeroize", 2221 + ] 2222 + 2223 + [[package]] 2224 + name = "rustls-webpki" 2225 + version = "0.103.9" 2226 + source = "registry+https://github.com/rust-lang/crates.io-index" 2227 + checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53" 2228 + dependencies = [ 2229 + "ring", 2230 + "rustls-pki-types", 2231 + "untrusted", 2232 + ] 2233 + 2234 + [[package]] 1960 2235 name = "rustversion" 1961 2236 version = "1.0.22" 1962 2237 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1969 2244 checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" 1970 2245 1971 2246 [[package]] 2247 + name = "schannel" 2248 + version = "0.1.29" 2249 + source = "registry+https://github.com/rust-lang/crates.io-index" 2250 + checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" 2251 + dependencies = [ 2252 + "windows-sys 0.61.2", 2253 + ] 2254 + 2255 + [[package]] 1972 2256 name = "scopeguard" 1973 2257 version = "1.2.0" 1974 2258 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1989 2273 ] 1990 2274 1991 2275 [[package]] 2276 + name = "security-framework" 2277 + version = "3.7.0" 2278 + source = "registry+https://github.com/rust-lang/crates.io-index" 2279 + checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" 2280 + dependencies = [ 2281 + "bitflags", 2282 + "core-foundation 0.10.1", 2283 + "core-foundation-sys", 2284 + "libc", 2285 + "security-framework-sys", 2286 + ] 2287 + 2288 + [[package]] 2289 + name = "security-framework-sys" 2290 + version = "2.17.0" 2291 + source = "registry+https://github.com/rust-lang/crates.io-index" 2292 + checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" 2293 + dependencies = [ 2294 + "core-foundation-sys", 2295 + "libc", 2296 + ] 2297 + 2298 + [[package]] 1992 2299 name = "semver" 1993 2300 version = "1.0.27" 1994 2301 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 2429 2736 ] 2430 2737 2431 2738 [[package]] 2739 + name = "system-configuration" 2740 + version = "0.7.0" 2741 + source = "registry+https://github.com/rust-lang/crates.io-index" 2742 + checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" 2743 + dependencies = [ 2744 + "bitflags", 2745 + "core-foundation 0.9.4", 2746 + "system-configuration-sys", 2747 + ] 2748 + 2749 + [[package]] 2750 + name = "system-configuration-sys" 2751 + version = "0.6.0" 2752 + source = "registry+https://github.com/rust-lang/crates.io-index" 2753 + checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" 2754 + dependencies = [ 2755 + "core-foundation-sys", 2756 + "libc", 2757 + ] 2758 + 2759 + [[package]] 2432 2760 name = "tempfile" 2433 2761 version = "3.26.0" 2434 2762 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 2524 2852 ] 2525 2853 2526 2854 [[package]] 2855 + name = "tokio-native-tls" 2856 + version = "0.3.1" 2857 + source = "registry+https://github.com/rust-lang/crates.io-index" 2858 + checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" 2859 + dependencies = [ 2860 + "native-tls", 2861 + "tokio", 2862 + ] 2863 + 2864 + [[package]] 2865 + name = "tokio-rustls" 2866 + version = "0.26.4" 2867 + source = "registry+https://github.com/rust-lang/crates.io-index" 2868 + checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" 2869 + dependencies = [ 2870 + "rustls", 2871 + "tokio", 2872 + ] 2873 + 2874 + [[package]] 2527 2875 name = "tokio-stream" 2528 2876 version = "0.1.18" 2529 2877 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 2837 3185 ] 2838 3186 2839 3187 [[package]] 3188 + name = "untrusted" 3189 + version = "0.9.0" 3190 + source = "registry+https://github.com/rust-lang/crates.io-index" 3191 + checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" 3192 + 3193 + [[package]] 2840 3194 name = "url" 2841 3195 version = "2.5.8" 2842 3196 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 3058 3412 checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" 3059 3413 3060 3414 [[package]] 3415 + name = "windows-registry" 3416 + version = "0.6.1" 3417 + source = "registry+https://github.com/rust-lang/crates.io-index" 3418 + checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" 3419 + dependencies = [ 3420 + "windows-link", 3421 + "windows-result", 3422 + "windows-strings", 3423 + ] 3424 + 3425 + [[package]] 3426 + name = "windows-result" 3427 + version = "0.4.1" 3428 + source = "registry+https://github.com/rust-lang/crates.io-index" 3429 + checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" 3430 + dependencies = [ 3431 + "windows-link", 3432 + ] 3433 + 3434 + [[package]] 3435 + name = "windows-strings" 3436 + version = "0.5.1" 3437 + source = "registry+https://github.com/rust-lang/crates.io-index" 3438 + checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" 3439 + dependencies = [ 3440 + "windows-link", 3441 + ] 3442 + 3443 + [[package]] 3061 3444 name = "windows-sys" 3062 3445 version = "0.48.0" 3063 3446 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 3212 3595 checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" 3213 3596 dependencies = [ 3214 3597 "memchr", 3598 + ] 3599 + 3600 + [[package]] 3601 + name = "wiremock" 3602 + version = "0.6.5" 3603 + source = "registry+https://github.com/rust-lang/crates.io-index" 3604 + checksum = "08db1edfb05d9b3c1542e521aea074442088292f00b5f28e435c714a98f85031" 3605 + dependencies = [ 3606 + "assert-json-diff", 3607 + "base64 0.22.1", 3608 + "deadpool", 3609 + "futures", 3610 + "http", 3611 + "http-body-util", 3612 + "hyper", 3613 + "hyper-util", 3614 + "log", 3615 + "once_cell", 3616 + "regex", 3617 + "serde", 3618 + "serde_json", 3619 + "tokio", 3620 + "url", 3215 3621 ] 3216 3622 3217 3623 [[package]]
+3
Cargo.toml
··· 21 21 # Web framework (relay) 22 22 axum = "0.7" 23 23 24 + # HTTP client (relay) 25 + reqwest = { version = "0.12", features = ["json"] } 26 + 24 27 # Database 25 28 sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite"] } 26 29
+3
crates/relay/Cargo.toml
··· 25 25 tokio = { workspace = true } 26 26 tower-http = { workspace = true } 27 27 serde = { workspace = true } 28 + serde_json = { workspace = true } 28 29 sqlx = { workspace = true } 29 30 crypto = { workspace = true } 31 + reqwest = { workspace = true } 30 32 base64 = { workspace = true } 31 33 rand_core = { workspace = true } 32 34 sha2 = { workspace = true } ··· 38 40 tower = { workspace = true } 39 41 serde_json = { workspace = true } 40 42 tempfile = { workspace = true } 43 + wiremock = "0.6"