♻️ Simple & Efficient Gemini-to-HTTP Proxy fuwn.net
proxy gemini-protocol protocol gemini http rust
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(build): Replace vergen with git-based build script

Fuwn 8259e4c8 a3ca8de7

+51 -827
+2 -820
Cargo.lock
··· 192 192 checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" 193 193 194 194 [[package]] 195 - name = "ahash" 196 - version = "0.8.12" 197 - source = "registry+https://github.com/rust-lang/crates.io-index" 198 - checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" 199 - dependencies = [ 200 - "cfg-if", 201 - "once_cell", 202 - "version_check", 203 - "zerocopy", 204 - ] 205 - 206 - [[package]] 207 195 name = "aho-corasick" 208 196 version = "1.1.4" 209 197 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 228 216 ] 229 217 230 218 [[package]] 231 - name = "allocator-api2" 232 - version = "0.2.21" 233 - source = "registry+https://github.com/rust-lang/crates.io-index" 234 - checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" 235 - 236 - [[package]] 237 219 name = "anyhow" 238 220 version = "1.0.100" 239 221 source = "registry+https://github.com/rust-lang/crates.io-index" 240 222 checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" 241 223 242 224 [[package]] 243 - name = "arc-swap" 244 - version = "1.8.0" 245 - source = "registry+https://github.com/rust-lang/crates.io-index" 246 - checksum = "51d03449bb8ca2cc2ef70869af31463d1ae5ccc8fa3e334b307203fbf815207e" 247 - dependencies = [ 248 - "rustversion", 249 - ] 250 - 251 - [[package]] 252 225 name = "base64" 253 226 version = "0.22.1" 254 227 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 291 264 ] 292 265 293 266 [[package]] 294 - name = "bstr" 295 - version = "1.12.1" 296 - source = "registry+https://github.com/rust-lang/crates.io-index" 297 - checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab" 298 - dependencies = [ 299 - "memchr", 300 - "regex-automata", 301 - "serde", 302 - ] 303 - 304 - [[package]] 305 267 name = "bumpalo" 306 268 version = "3.19.1" 307 269 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 348 310 version = "1.0.4" 349 311 source = "registry+https://github.com/rust-lang/crates.io-index" 350 312 checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" 351 - 352 - [[package]] 353 - name = "clru" 354 - version = "0.6.2" 355 - source = "registry+https://github.com/rust-lang/crates.io-index" 356 - checksum = "cbd0f76e066e64fdc5631e3bb46381254deab9ef1158292f27c8c57e3bf3fe59" 357 313 358 314 [[package]] 359 315 name = "comrak" ··· 552 508 checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" 553 509 554 510 [[package]] 555 - name = "dunce" 556 - version = "1.0.5" 557 - source = "registry+https://github.com/rust-lang/crates.io-index" 558 - checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" 559 - 560 - [[package]] 561 511 name = "encoding_rs" 562 512 version = "0.8.35" 563 513 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 602 552 ] 603 553 604 554 [[package]] 605 - name = "faster-hex" 606 - version = "0.9.0" 607 - source = "registry+https://github.com/rust-lang/crates.io-index" 608 - checksum = "a2a2b11eda1d40935b26cf18f6833c526845ae8c41e58d09af6adeb6f0269183" 609 - 610 - [[package]] 611 - name = "fastrand" 612 - version = "2.3.0" 613 - source = "registry+https://github.com/rust-lang/crates.io-index" 614 - checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" 615 - 616 - [[package]] 617 - name = "filetime" 618 - version = "0.2.27" 619 - source = "registry+https://github.com/rust-lang/crates.io-index" 620 - checksum = "f98844151eee8917efc50bd9e8318cb963ae8b297431495d3f758616ea5c57db" 621 - dependencies = [ 622 - "cfg-if", 623 - "libc", 624 - "libredox", 625 - ] 626 - 627 - [[package]] 628 555 name = "find-msvc-tools" 629 556 version = "0.1.8" 630 557 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 738 665 ] 739 666 740 667 [[package]] 741 - name = "gix" 742 - version = "0.63.0" 743 - source = "registry+https://github.com/rust-lang/crates.io-index" 744 - checksum = "984c5018adfa7a4536ade67990b3ebc6e11ab57b3d6cd9968de0947ca99b4b06" 745 - dependencies = [ 746 - "gix-actor", 747 - "gix-commitgraph", 748 - "gix-config", 749 - "gix-date", 750 - "gix-diff", 751 - "gix-discover", 752 - "gix-features", 753 - "gix-fs", 754 - "gix-glob", 755 - "gix-hash", 756 - "gix-hashtable", 757 - "gix-index", 758 - "gix-lock", 759 - "gix-macros", 760 - "gix-object", 761 - "gix-odb", 762 - "gix-pack", 763 - "gix-path", 764 - "gix-ref", 765 - "gix-refspec", 766 - "gix-revision", 767 - "gix-revwalk", 768 - "gix-sec", 769 - "gix-tempfile", 770 - "gix-trace", 771 - "gix-traverse", 772 - "gix-url", 773 - "gix-utils", 774 - "gix-validate 0.8.5", 775 - "once_cell", 776 - "parking_lot", 777 - "signal-hook", 778 - "smallvec", 779 - "thiserror 1.0.69", 780 - ] 781 - 782 - [[package]] 783 - name = "gix-actor" 784 - version = "0.31.5" 785 - source = "registry+https://github.com/rust-lang/crates.io-index" 786 - checksum = "a0e454357e34b833cc3a00b6efbbd3dd4d18b24b9fb0c023876ec2645e8aa3f2" 787 - dependencies = [ 788 - "bstr", 789 - "gix-date", 790 - "gix-utils", 791 - "itoa", 792 - "thiserror 1.0.69", 793 - "winnow", 794 - ] 795 - 796 - [[package]] 797 - name = "gix-bitmap" 798 - version = "0.2.15" 799 - source = "registry+https://github.com/rust-lang/crates.io-index" 800 - checksum = "5e150161b8a75b5860521cb876b506879a3376d3adc857ec7a9d35e7c6a5e531" 801 - dependencies = [ 802 - "thiserror 2.0.18", 803 - ] 804 - 805 - [[package]] 806 - name = "gix-chunk" 807 - version = "0.4.12" 808 - source = "registry+https://github.com/rust-lang/crates.io-index" 809 - checksum = "5c356b3825677cb6ff579551bb8311a81821e184453cbd105e2fc5311b288eeb" 810 - dependencies = [ 811 - "thiserror 2.0.18", 812 - ] 813 - 814 - [[package]] 815 - name = "gix-commitgraph" 816 - version = "0.24.3" 817 - source = "registry+https://github.com/rust-lang/crates.io-index" 818 - checksum = "133b06f67f565836ec0c473e2116a60fb74f80b6435e21d88013ac0e3c60fc78" 819 - dependencies = [ 820 - "bstr", 821 - "gix-chunk", 822 - "gix-features", 823 - "gix-hash", 824 - "memmap2", 825 - "thiserror 1.0.69", 826 - ] 827 - 828 - [[package]] 829 - name = "gix-config" 830 - version = "0.37.0" 831 - source = "registry+https://github.com/rust-lang/crates.io-index" 832 - checksum = "53fafe42957e11d98e354a66b6bd70aeea00faf2f62dd11164188224a507c840" 833 - dependencies = [ 834 - "bstr", 835 - "gix-config-value", 836 - "gix-features", 837 - "gix-glob", 838 - "gix-path", 839 - "gix-ref", 840 - "gix-sec", 841 - "memchr", 842 - "once_cell", 843 - "smallvec", 844 - "thiserror 1.0.69", 845 - "unicode-bom", 846 - "winnow", 847 - ] 848 - 849 - [[package]] 850 - name = "gix-config-value" 851 - version = "0.14.12" 852 - source = "registry+https://github.com/rust-lang/crates.io-index" 853 - checksum = "8dc2c844c4cf141884678cabef736fd91dd73068b9146e6f004ba1a0457944b6" 854 - dependencies = [ 855 - "bitflags", 856 - "bstr", 857 - "gix-path", 858 - "libc", 859 - "thiserror 2.0.18", 860 - ] 861 - 862 - [[package]] 863 - name = "gix-date" 864 - version = "0.8.7" 865 - source = "registry+https://github.com/rust-lang/crates.io-index" 866 - checksum = "9eed6931f21491ee0aeb922751bd7ec97b4b2fe8fbfedcb678e2a2dce5f3b8c0" 867 - dependencies = [ 868 - "bstr", 869 - "itoa", 870 - "thiserror 1.0.69", 871 - "time", 872 - ] 873 - 874 - [[package]] 875 - name = "gix-diff" 876 - version = "0.44.1" 877 - source = "registry+https://github.com/rust-lang/crates.io-index" 878 - checksum = "1996d5c8a305b59709467d80617c9fde48d9d75fd1f4179ea970912630886c9d" 879 - dependencies = [ 880 - "bstr", 881 - "gix-hash", 882 - "gix-object", 883 - "thiserror 1.0.69", 884 - ] 885 - 886 - [[package]] 887 - name = "gix-discover" 888 - version = "0.32.0" 889 - source = "registry+https://github.com/rust-lang/crates.io-index" 890 - checksum = "fc27c699b63da66b50d50c00668bc0b7e90c3a382ef302865e891559935f3dbf" 891 - dependencies = [ 892 - "bstr", 893 - "dunce", 894 - "gix-fs", 895 - "gix-hash", 896 - "gix-path", 897 - "gix-ref", 898 - "gix-sec", 899 - "thiserror 1.0.69", 900 - ] 901 - 902 - [[package]] 903 - name = "gix-features" 904 - version = "0.38.2" 905 - source = "registry+https://github.com/rust-lang/crates.io-index" 906 - checksum = "ac7045ac9fe5f9c727f38799d002a7ed3583cd777e3322a7c4b43e3cf437dc69" 907 - dependencies = [ 908 - "crc32fast", 909 - "flate2", 910 - "gix-hash", 911 - "gix-trace", 912 - "gix-utils", 913 - "libc", 914 - "once_cell", 915 - "prodash", 916 - "sha1_smol", 917 - "thiserror 1.0.69", 918 - "walkdir", 919 - ] 920 - 921 - [[package]] 922 - name = "gix-fs" 923 - version = "0.11.3" 924 - source = "registry+https://github.com/rust-lang/crates.io-index" 925 - checksum = "f2bfe6249cfea6d0c0e0990d5226a4cb36f030444ba9e35e0639275db8f98575" 926 - dependencies = [ 927 - "fastrand", 928 - "gix-features", 929 - "gix-utils", 930 - ] 931 - 932 - [[package]] 933 - name = "gix-glob" 934 - version = "0.16.5" 935 - source = "registry+https://github.com/rust-lang/crates.io-index" 936 - checksum = "74908b4bbc0a0a40852737e5d7889f676f081e340d5451a16e5b4c50d592f111" 937 - dependencies = [ 938 - "bitflags", 939 - "bstr", 940 - "gix-features", 941 - "gix-path", 942 - ] 943 - 944 - [[package]] 945 - name = "gix-hash" 946 - version = "0.14.2" 947 - source = "registry+https://github.com/rust-lang/crates.io-index" 948 - checksum = "f93d7df7366121b5018f947a04d37f034717e113dcf9ccd85c34b58e57a74d5e" 949 - dependencies = [ 950 - "faster-hex", 951 - "thiserror 1.0.69", 952 - ] 953 - 954 - [[package]] 955 - name = "gix-hashtable" 956 - version = "0.5.2" 957 - source = "registry+https://github.com/rust-lang/crates.io-index" 958 - checksum = "7ddf80e16f3c19ac06ce415a38b8591993d3f73aede049cb561becb5b3a8e242" 959 - dependencies = [ 960 - "gix-hash", 961 - "hashbrown 0.14.5", 962 - "parking_lot", 963 - ] 964 - 965 - [[package]] 966 - name = "gix-index" 967 - version = "0.33.1" 968 - source = "registry+https://github.com/rust-lang/crates.io-index" 969 - checksum = "9a9a44eb55bd84bb48f8a44980e951968ced21e171b22d115d1cdcef82a7d73f" 970 - dependencies = [ 971 - "bitflags", 972 - "bstr", 973 - "filetime", 974 - "fnv", 975 - "gix-bitmap", 976 - "gix-features", 977 - "gix-fs", 978 - "gix-hash", 979 - "gix-lock", 980 - "gix-object", 981 - "gix-traverse", 982 - "gix-utils", 983 - "gix-validate 0.8.5", 984 - "hashbrown 0.14.5", 985 - "itoa", 986 - "libc", 987 - "memmap2", 988 - "rustix 0.38.44", 989 - "smallvec", 990 - "thiserror 1.0.69", 991 - ] 992 - 993 - [[package]] 994 - name = "gix-lock" 995 - version = "14.0.0" 996 - source = "registry+https://github.com/rust-lang/crates.io-index" 997 - checksum = "e3bc7fe297f1f4614774989c00ec8b1add59571dc9b024b4c00acb7dedd4e19d" 998 - dependencies = [ 999 - "gix-tempfile", 1000 - "gix-utils", 1001 - "thiserror 1.0.69", 1002 - ] 1003 - 1004 - [[package]] 1005 - name = "gix-macros" 1006 - version = "0.1.5" 1007 - source = "registry+https://github.com/rust-lang/crates.io-index" 1008 - checksum = "999ce923619f88194171a67fb3e6d613653b8d4d6078b529b15a765da0edcc17" 1009 - dependencies = [ 1010 - "proc-macro2", 1011 - "quote", 1012 - "syn", 1013 - ] 1014 - 1015 - [[package]] 1016 - name = "gix-object" 1017 - version = "0.42.3" 1018 - source = "registry+https://github.com/rust-lang/crates.io-index" 1019 - checksum = "25da2f46b4e7c2fa7b413ce4dffb87f69eaf89c2057e386491f4c55cadbfe386" 1020 - dependencies = [ 1021 - "bstr", 1022 - "gix-actor", 1023 - "gix-date", 1024 - "gix-features", 1025 - "gix-hash", 1026 - "gix-utils", 1027 - "gix-validate 0.8.5", 1028 - "itoa", 1029 - "smallvec", 1030 - "thiserror 1.0.69", 1031 - "winnow", 1032 - ] 1033 - 1034 - [[package]] 1035 - name = "gix-odb" 1036 - version = "0.61.1" 1037 - source = "registry+https://github.com/rust-lang/crates.io-index" 1038 - checksum = "20d384fe541d93d8a3bb7d5d5ef210780d6df4f50c4e684ccba32665a5e3bc9b" 1039 - dependencies = [ 1040 - "arc-swap", 1041 - "gix-date", 1042 - "gix-features", 1043 - "gix-fs", 1044 - "gix-hash", 1045 - "gix-object", 1046 - "gix-pack", 1047 - "gix-path", 1048 - "gix-quote", 1049 - "parking_lot", 1050 - "tempfile", 1051 - "thiserror 1.0.69", 1052 - ] 1053 - 1054 - [[package]] 1055 - name = "gix-pack" 1056 - version = "0.51.1" 1057 - source = "registry+https://github.com/rust-lang/crates.io-index" 1058 - checksum = "3e0594491fffe55df94ba1c111a6566b7f56b3f8d2e1efc750e77d572f5f5229" 1059 - dependencies = [ 1060 - "clru", 1061 - "gix-chunk", 1062 - "gix-features", 1063 - "gix-hash", 1064 - "gix-hashtable", 1065 - "gix-object", 1066 - "gix-path", 1067 - "memmap2", 1068 - "smallvec", 1069 - "thiserror 1.0.69", 1070 - ] 1071 - 1072 - [[package]] 1073 - name = "gix-path" 1074 - version = "0.10.22" 1075 - source = "registry+https://github.com/rust-lang/crates.io-index" 1076 - checksum = "7cb06c3e4f8eed6e24fd915fa93145e28a511f4ea0e768bae16673e05ed3f366" 1077 - dependencies = [ 1078 - "bstr", 1079 - "gix-trace", 1080 - "gix-validate 0.10.1", 1081 - "thiserror 2.0.18", 1082 - ] 1083 - 1084 - [[package]] 1085 - name = "gix-quote" 1086 - version = "0.4.15" 1087 - source = "registry+https://github.com/rust-lang/crates.io-index" 1088 - checksum = "e49357fccdb0c85c0d3a3292a9f6db32d9b3535959b5471bb9624908f4a066c6" 1089 - dependencies = [ 1090 - "bstr", 1091 - "gix-utils", 1092 - "thiserror 2.0.18", 1093 - ] 1094 - 1095 - [[package]] 1096 - name = "gix-ref" 1097 - version = "0.44.1" 1098 - source = "registry+https://github.com/rust-lang/crates.io-index" 1099 - checksum = "3394a2997e5bc6b22ebc1e1a87b41eeefbcfcff3dbfa7c4bd73cb0ac8f1f3e2e" 1100 - dependencies = [ 1101 - "gix-actor", 1102 - "gix-date", 1103 - "gix-features", 1104 - "gix-fs", 1105 - "gix-hash", 1106 - "gix-lock", 1107 - "gix-object", 1108 - "gix-path", 1109 - "gix-tempfile", 1110 - "gix-utils", 1111 - "gix-validate 0.8.5", 1112 - "memmap2", 1113 - "thiserror 1.0.69", 1114 - "winnow", 1115 - ] 1116 - 1117 - [[package]] 1118 - name = "gix-refspec" 1119 - version = "0.23.1" 1120 - source = "registry+https://github.com/rust-lang/crates.io-index" 1121 - checksum = "6868f8cd2e62555d1f7c78b784bece43ace40dd2a462daf3b588d5416e603f37" 1122 - dependencies = [ 1123 - "bstr", 1124 - "gix-hash", 1125 - "gix-revision", 1126 - "gix-validate 0.8.5", 1127 - "smallvec", 1128 - "thiserror 1.0.69", 1129 - ] 1130 - 1131 - [[package]] 1132 - name = "gix-revision" 1133 - version = "0.27.2" 1134 - source = "registry+https://github.com/rust-lang/crates.io-index" 1135 - checksum = "01b13e43c2118c4b0537ddac7d0821ae0dfa90b7b8dbf20c711e153fb749adce" 1136 - dependencies = [ 1137 - "bstr", 1138 - "gix-date", 1139 - "gix-hash", 1140 - "gix-hashtable", 1141 - "gix-object", 1142 - "gix-revwalk", 1143 - "gix-trace", 1144 - "thiserror 1.0.69", 1145 - ] 1146 - 1147 - [[package]] 1148 - name = "gix-revwalk" 1149 - version = "0.13.2" 1150 - source = "registry+https://github.com/rust-lang/crates.io-index" 1151 - checksum = "1b030ccaab71af141f537e0225f19b9e74f25fefdba0372246b844491cab43e0" 1152 - dependencies = [ 1153 - "gix-commitgraph", 1154 - "gix-date", 1155 - "gix-hash", 1156 - "gix-hashtable", 1157 - "gix-object", 1158 - "smallvec", 1159 - "thiserror 1.0.69", 1160 - ] 1161 - 1162 - [[package]] 1163 - name = "gix-sec" 1164 - version = "0.10.12" 1165 - source = "registry+https://github.com/rust-lang/crates.io-index" 1166 - checksum = "47aeb0f13de9ef2f3033f5ff218de30f44db827ac9f1286f9ef050aacddd5888" 1167 - dependencies = [ 1168 - "bitflags", 1169 - "gix-path", 1170 - "libc", 1171 - "windows-sys 0.52.0", 1172 - ] 1173 - 1174 - [[package]] 1175 - name = "gix-tempfile" 1176 - version = "14.0.2" 1177 - source = "registry+https://github.com/rust-lang/crates.io-index" 1178 - checksum = "046b4927969fa816a150a0cda2e62c80016fe11fb3c3184e4dddf4e542f108aa" 1179 - dependencies = [ 1180 - "gix-fs", 1181 - "libc", 1182 - "once_cell", 1183 - "parking_lot", 1184 - "signal-hook", 1185 - "signal-hook-registry", 1186 - "tempfile", 1187 - ] 1188 - 1189 - [[package]] 1190 - name = "gix-trace" 1191 - version = "0.1.17" 1192 - source = "registry+https://github.com/rust-lang/crates.io-index" 1193 - checksum = "6e42a4c2583357721ba2d887916e78df504980f22f1182df06997ce197b89504" 1194 - 1195 - [[package]] 1196 - name = "gix-traverse" 1197 - version = "0.39.2" 1198 - source = "registry+https://github.com/rust-lang/crates.io-index" 1199 - checksum = "e499a18c511e71cf4a20413b743b9f5bcf64b3d9e81e9c3c6cd399eae55a8840" 1200 - dependencies = [ 1201 - "bitflags", 1202 - "gix-commitgraph", 1203 - "gix-date", 1204 - "gix-hash", 1205 - "gix-hashtable", 1206 - "gix-object", 1207 - "gix-revwalk", 1208 - "smallvec", 1209 - "thiserror 1.0.69", 1210 - ] 1211 - 1212 - [[package]] 1213 - name = "gix-url" 1214 - version = "0.27.5" 1215 - source = "registry+https://github.com/rust-lang/crates.io-index" 1216 - checksum = "fd280c5e84fb22e128ed2a053a0daeacb6379469be6a85e3d518a0636e160c89" 1217 - dependencies = [ 1218 - "bstr", 1219 - "gix-features", 1220 - "gix-path", 1221 - "home", 1222 - "thiserror 1.0.69", 1223 - "url", 1224 - ] 1225 - 1226 - [[package]] 1227 - name = "gix-utils" 1228 - version = "0.1.14" 1229 - source = "registry+https://github.com/rust-lang/crates.io-index" 1230 - checksum = "ff08f24e03ac8916c478c8419d7d3c33393da9bb41fa4c24455d5406aeefd35f" 1231 - dependencies = [ 1232 - "fastrand", 1233 - "unicode-normalization", 1234 - ] 1235 - 1236 - [[package]] 1237 - name = "gix-validate" 1238 - version = "0.8.5" 1239 - source = "registry+https://github.com/rust-lang/crates.io-index" 1240 - checksum = "82c27dd34a49b1addf193c92070bcbf3beaf6e10f16a78544de6372e146a0acf" 1241 - dependencies = [ 1242 - "bstr", 1243 - "thiserror 1.0.69", 1244 - ] 1245 - 1246 - [[package]] 1247 - name = "gix-validate" 1248 - version = "0.10.1" 1249 - source = "registry+https://github.com/rust-lang/crates.io-index" 1250 - checksum = "5b1e63a5b516e970a594f870ed4571a8fdcb8a344e7bd407a20db8bd61dbfde4" 1251 - dependencies = [ 1252 - "bstr", 1253 - "thiserror 2.0.18", 1254 - ] 1255 - 1256 - [[package]] 1257 668 name = "h2" 1258 669 version = "0.3.27" 1259 670 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1274 685 1275 686 [[package]] 1276 687 name = "hashbrown" 1277 - version = "0.14.5" 1278 - source = "registry+https://github.com/rust-lang/crates.io-index" 1279 - checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" 1280 - dependencies = [ 1281 - "ahash", 1282 - "allocator-api2", 1283 - ] 1284 - 1285 - [[package]] 1286 - name = "hashbrown" 1287 688 version = "0.16.1" 1288 689 source = "registry+https://github.com/rust-lang/crates.io-index" 1289 690 checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" ··· 1293 694 version = "0.5.2" 1294 695 source = "registry+https://github.com/rust-lang/crates.io-index" 1295 696 checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" 1296 - 1297 - [[package]] 1298 - name = "home" 1299 - version = "0.5.12" 1300 - source = "registry+https://github.com/rust-lang/crates.io-index" 1301 - checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d" 1302 - dependencies = [ 1303 - "windows-sys 0.61.2", 1304 - ] 1305 697 1306 698 [[package]] 1307 699 name = "http" ··· 1453 845 checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" 1454 846 dependencies = [ 1455 847 "equivalent", 1456 - "hashbrown 0.16.1", 848 + "hashbrown", 1457 849 ] 1458 850 1459 851 [[package]] ··· 1496 888 checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc" 1497 889 1498 890 [[package]] 1499 - name = "libredox" 1500 - version = "0.1.12" 1501 - source = "registry+https://github.com/rust-lang/crates.io-index" 1502 - checksum = "3d0b95e02c851351f877147b7deea7b1afb1df71b63aa5f8270716e0c5720616" 1503 - dependencies = [ 1504 - "bitflags", 1505 - "libc", 1506 - "redox_syscall 0.7.0", 1507 - ] 1508 - 1509 - [[package]] 1510 - name = "linux-raw-sys" 1511 - version = "0.4.15" 1512 - source = "registry+https://github.com/rust-lang/crates.io-index" 1513 - checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" 1514 - 1515 - [[package]] 1516 - name = "linux-raw-sys" 1517 - version = "0.11.0" 1518 - source = "registry+https://github.com/rust-lang/crates.io-index" 1519 - checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039" 1520 - 1521 - [[package]] 1522 891 name = "litemap" 1523 892 version = "0.8.1" 1524 893 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1563 932 checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" 1564 933 1565 934 [[package]] 1566 - name = "memmap2" 1567 - version = "0.9.9" 1568 - source = "registry+https://github.com/rust-lang/crates.io-index" 1569 - checksum = "744133e4a0e0a658e1374cf3bf8e415c4052a15a111acd372764c55b4177d490" 1570 - dependencies = [ 1571 - "libc", 1572 - ] 1573 - 1574 - [[package]] 1575 935 name = "mime" 1576 936 version = "0.3.17" 1577 937 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1606 966 checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" 1607 967 1608 968 [[package]] 1609 - name = "num_threads" 1610 - version = "0.1.7" 1611 - source = "registry+https://github.com/rust-lang/crates.io-index" 1612 - checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9" 1613 - dependencies = [ 1614 - "libc", 1615 - ] 1616 - 1617 - [[package]] 1618 969 name = "once_cell" 1619 970 version = "1.21.3" 1620 971 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1638 989 dependencies = [ 1639 990 "cfg-if", 1640 991 "libc", 1641 - "redox_syscall 0.5.18", 992 + "redox_syscall", 1642 993 "smallvec", 1643 994 "windows-link", 1644 995 ] ··· 1711 1062 ] 1712 1063 1713 1064 [[package]] 1714 - name = "prodash" 1715 - version = "28.0.0" 1716 - source = "registry+https://github.com/rust-lang/crates.io-index" 1717 - checksum = "744a264d26b88a6a7e37cbad97953fa233b94d585236310bcbc88474b4092d79" 1718 - 1719 - [[package]] 1720 1065 name = "quote" 1721 1066 version = "1.0.43" 1722 1067 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1765 1110 version = "0.5.18" 1766 1111 source = "registry+https://github.com/rust-lang/crates.io-index" 1767 1112 checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" 1768 - dependencies = [ 1769 - "bitflags", 1770 - ] 1771 - 1772 - [[package]] 1773 - name = "redox_syscall" 1774 - version = "0.7.0" 1775 - source = "registry+https://github.com/rust-lang/crates.io-index" 1776 - checksum = "49f3fe0889e69e2ae9e41f4d6c4c0181701d00e4697b356fb1f74173a5e0ee27" 1777 1113 dependencies = [ 1778 1114 "bitflags", 1779 1115 ] ··· 1837 1173 ] 1838 1174 1839 1175 [[package]] 1840 - name = "rustix" 1841 - version = "0.38.44" 1842 - source = "registry+https://github.com/rust-lang/crates.io-index" 1843 - checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" 1844 - dependencies = [ 1845 - "bitflags", 1846 - "errno", 1847 - "libc", 1848 - "linux-raw-sys 0.4.15", 1849 - "windows-sys 0.59.0", 1850 - ] 1851 - 1852 - [[package]] 1853 - name = "rustix" 1854 - version = "1.1.3" 1855 - source = "registry+https://github.com/rust-lang/crates.io-index" 1856 - checksum = "146c9e247ccc180c1f61615433868c99f3de3ae256a30a43b49f67c2d9171f34" 1857 - dependencies = [ 1858 - "bitflags", 1859 - "errno", 1860 - "libc", 1861 - "linux-raw-sys 0.11.0", 1862 - "windows-sys 0.61.2", 1863 - ] 1864 - 1865 - [[package]] 1866 1176 name = "rustls" 1867 1177 version = "0.21.12" 1868 1178 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1897 1207 checksum = "a50f4cf475b65d88e057964e0e9bb1f0aa9bbb2036dc65c64596b42932536984" 1898 1208 1899 1209 [[package]] 1900 - name = "same-file" 1901 - version = "1.0.6" 1902 - source = "registry+https://github.com/rust-lang/crates.io-index" 1903 - checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" 1904 - dependencies = [ 1905 - "winapi-util", 1906 - ] 1907 - 1908 - [[package]] 1909 1210 name = "scopeguard" 1910 1211 version = "1.2.0" 1911 1212 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1940 1241 "serde", 1941 1242 "tokio", 1942 1243 "url", 1943 - "vergen", 1944 1244 ] 1945 1245 1946 1246 [[package]] ··· 2010 1310 ] 2011 1311 2012 1312 [[package]] 2013 - name = "sha1_smol" 2014 - version = "1.0.1" 2015 - source = "registry+https://github.com/rust-lang/crates.io-index" 2016 - checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d" 2017 - 2018 - [[package]] 2019 1313 name = "shlex" 2020 1314 version = "1.3.0" 2021 1315 source = "registry+https://github.com/rust-lang/crates.io-index" 2022 1316 checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 2023 - 2024 - [[package]] 2025 - name = "signal-hook" 2026 - version = "0.3.18" 2027 - source = "registry+https://github.com/rust-lang/crates.io-index" 2028 - checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2" 2029 - dependencies = [ 2030 - "libc", 2031 - "signal-hook-registry", 2032 - ] 2033 1317 2034 1318 [[package]] 2035 1319 name = "signal-hook-registry" ··· 2124 1408 ] 2125 1409 2126 1410 [[package]] 2127 - name = "tempfile" 2128 - version = "3.24.0" 2129 - source = "registry+https://github.com/rust-lang/crates.io-index" 2130 - checksum = "655da9c7eb6305c55742045d5a8d2037996d61d8de95806335c7c86ce0f82e9c" 2131 - dependencies = [ 2132 - "fastrand", 2133 - "getrandom 0.3.4", 2134 - "once_cell", 2135 - "rustix 1.1.3", 2136 - "windows-sys 0.61.2", 2137 - ] 2138 - 2139 - [[package]] 2140 1411 name = "termcolor" 2141 1412 version = "1.4.1" 2142 1413 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 2146 1417 ] 2147 1418 2148 1419 [[package]] 2149 - name = "thiserror" 2150 - version = "1.0.69" 2151 - source = "registry+https://github.com/rust-lang/crates.io-index" 2152 - checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" 2153 - dependencies = [ 2154 - "thiserror-impl 1.0.69", 2155 - ] 2156 - 2157 - [[package]] 2158 - name = "thiserror" 2159 - version = "2.0.18" 2160 - source = "registry+https://github.com/rust-lang/crates.io-index" 2161 - checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" 2162 - dependencies = [ 2163 - "thiserror-impl 2.0.18", 2164 - ] 2165 - 2166 - [[package]] 2167 - name = "thiserror-impl" 2168 - version = "1.0.69" 2169 - source = "registry+https://github.com/rust-lang/crates.io-index" 2170 - checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" 2171 - dependencies = [ 2172 - "proc-macro2", 2173 - "quote", 2174 - "syn", 2175 - ] 2176 - 2177 - [[package]] 2178 - name = "thiserror-impl" 2179 - version = "2.0.18" 2180 - source = "registry+https://github.com/rust-lang/crates.io-index" 2181 - checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" 2182 - dependencies = [ 2183 - "proc-macro2", 2184 - "quote", 2185 - "syn", 2186 - ] 2187 - 2188 - [[package]] 2189 1420 name = "time" 2190 1421 version = "0.3.45" 2191 1422 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 2193 1424 dependencies = [ 2194 1425 "deranged", 2195 1426 "itoa", 2196 - "libc", 2197 1427 "num-conv", 2198 - "num_threads", 2199 1428 "powerfmt", 2200 1429 "serde_core", 2201 1430 "time-core", ··· 2339 1568 checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" 2340 1569 2341 1570 [[package]] 2342 - name = "unicode-bom" 2343 - version = "2.0.3" 2344 - source = "registry+https://github.com/rust-lang/crates.io-index" 2345 - checksum = "7eec5d1121208364f6793f7d2e222bf75a915c19557537745b195b253dd64217" 2346 - 2347 - [[package]] 2348 1571 name = "unicode-ident" 2349 1572 version = "1.0.22" 2350 1573 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 2402 1625 checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" 2403 1626 2404 1627 [[package]] 2405 - name = "vergen" 2406 - version = "8.3.2" 2407 - source = "registry+https://github.com/rust-lang/crates.io-index" 2408 - checksum = "2990d9ea5967266ea0ccf413a4aa5c42a93dbcfda9cb49a97de6931726b12566" 2409 - dependencies = [ 2410 - "anyhow", 2411 - "cfg-if", 2412 - "gix", 2413 - "rustversion", 2414 - "time", 2415 - ] 2416 - 2417 - [[package]] 2418 1628 name = "version_check" 2419 1629 version = "0.9.5" 2420 1630 source = "registry+https://github.com/rust-lang/crates.io-index" 2421 1631 checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" 2422 1632 2423 1633 [[package]] 2424 - name = "walkdir" 2425 - version = "2.5.0" 2426 - source = "registry+https://github.com/rust-lang/crates.io-index" 2427 - checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" 2428 - dependencies = [ 2429 - "same-file", 2430 - "winapi-util", 2431 - ] 2432 - 2433 - [[package]] 2434 1634 name = "wasi" 2435 1635 version = "0.11.1+wasi-snapshot-preview1" 2436 1636 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 2510 1710 version = "0.52.0" 2511 1711 source = "registry+https://github.com/rust-lang/crates.io-index" 2512 1712 checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 2513 - dependencies = [ 2514 - "windows-targets 0.52.6", 2515 - ] 2516 - 2517 - [[package]] 2518 - name = "windows-sys" 2519 - version = "0.59.0" 2520 - source = "registry+https://github.com/rust-lang/crates.io-index" 2521 - checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 2522 1713 dependencies = [ 2523 1714 "windows-targets 0.52.6", 2524 1715 ] ··· 2669 1860 version = "0.53.1" 2670 1861 source = "registry+https://github.com/rust-lang/crates.io-index" 2671 1862 checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" 2672 - 2673 - [[package]] 2674 - name = "winnow" 2675 - version = "0.6.26" 2676 - source = "registry+https://github.com/rust-lang/crates.io-index" 2677 - checksum = "1e90edd2ac1aa278a5c4599b1d89cf03074b610800f866d4026dc199d7929a28" 2678 - dependencies = [ 2679 - "memchr", 2680 - ] 2681 1863 2682 1864 [[package]] 2683 1865 name = "wit-bindgen"
-4
Cargo.toml
··· 45 45 46 46 # Form Parsing 47 47 serde = { version = "1", features = ["derive"] } 48 - 49 - [build-dependencies] 50 - # Compile-time Environment Variables 51 - vergen = { version = "8.3.2", features = ["git", "gitoxide"] }
+49 -3
build.rs
··· 1 - fn main() -> Result<(), Box<dyn std::error::Error>> { 2 - vergen::EmitBuilder::builder().git_sha(true).emit()?; 1 + use std::{fs, path::Path, process::Command}; 2 + 3 + fn git_directory() -> Option<std::path::PathBuf> { 4 + let directory = Path::new(".git"); 5 + 6 + if directory.is_dir() { 7 + return Some(directory.to_path_buf()); 8 + } 3 9 4 - Ok(()) 10 + let content = fs::read_to_string(directory).ok()?; 11 + let path = Path::new(content.trim().strip_prefix("gitdir: ")?); 12 + 13 + if path.is_absolute() { 14 + Some(path.to_path_buf()) 15 + } else { 16 + Some(directory.parent()?.join(path)) 17 + } 18 + } 19 + 20 + fn git_sha() -> Option<String> { 21 + let output = Command::new("git").args(["rev-parse", "HEAD"]).output().ok()?; 22 + 23 + if !output.status.success() { 24 + return None; 25 + } 26 + 27 + let sha = String::from_utf8(output.stdout).ok()?.trim().to_string(); 28 + 29 + if sha.is_empty() { None } else { Some(sha) } 30 + } 31 + 32 + fn main() { 33 + if let Some(git_dir) = git_directory() { 34 + let head_path = git_dir.join("HEAD"); 35 + 36 + println!("cargo:rerun-if-changed={}", head_path.display()); 37 + 38 + if let Ok(head_contents) = fs::read_to_string(&head_path) { 39 + if let Some(reference) = head_contents.trim().strip_prefix("ref: ") { 40 + println!( 41 + "cargo:rerun-if-changed={}", 42 + git_dir.join(reference).display() 43 + ); 44 + } 45 + } 46 + } 47 + 48 + let sha = git_sha().unwrap_or_else(|| "UNKNOWN".to_string()); 49 + 50 + println!("cargo:rustc-env=VERGEN_GIT_SHA={sha}"); 5 51 }