tangled
alpha
login
or
join now
bad-example.com
/
hacktober-bot
6
fork
atom
announcing good-first-issue tags added on @tangled.sh (not affiliated with tangled!)
6
fork
atom
overview
issues
1
pulls
pipelines
upgrade jacquard
bad-example.com
5 months ago
693b77ed
4a2767b4
+358
-40
3 changed files
expand all
collapse all
unified
split
Cargo.lock
Cargo.toml
src
main.rs
+346
-26
Cargo.lock
···
225
]
226
227
[[package]]
0
0
0
0
0
0
0
0
0
228
name = "base-x"
229
version = "0.2.11"
230
source = "registry+https://github.com/rust-lang/crates.io-index"
···
720
]
721
722
[[package]]
0
0
0
0
0
0
0
0
0
0
0
0
723
name = "enum_dispatch"
724
version = "0.3.13"
725
source = "registry+https://github.com/rust-lang/crates.io-index"
···
865
checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
866
867
[[package]]
0
0
0
0
0
0
868
name = "futures-macro"
869
version = "0.3.31"
870
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1013
]
1014
1015
[[package]]
1016
-
name = "hashbrown"
1017
-
version = "0.16.0"
1018
-
source = "registry+https://github.com/rust-lang/crates.io-index"
1019
-
checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d"
1020
-
1021
-
[[package]]
1022
name = "heck"
1023
version = "0.4.1"
1024
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1043
checksum = "b07f60793ff0a4d9cef0f18e63b5357e06209987153a64648c972c1e5aff336f"
1044
1045
[[package]]
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1046
name = "http"
1047
version = "1.3.1"
1048
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1155
"libc",
1156
"percent-encoding",
1157
"pin-project-lite",
1158
-
"socket2",
1159
"system-configuration",
1160
"tokio",
1161
"tower-service",
···
1318
checksum = "4b0f83760fb341a774ed326568e19f5a863af4a952def8c39f9ab92fd95b88e5"
1319
dependencies = [
1320
"equivalent",
1321
-
"hashbrown 0.16.0",
1322
"serde",
1323
"serde_core",
1324
]
···
1341
]
1342
1343
[[package]]
0
0
0
0
0
0
0
0
0
0
0
0
1344
name = "ipld-core"
1345
version = "0.4.2"
1346
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1368
]
1369
1370
[[package]]
0
0
0
0
0
0
1371
name = "is_terminal_polyfill"
1372
version = "1.70.1"
1373
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1390
1391
[[package]]
1392
name = "jacquard"
1393
-
version = "0.1.0"
1394
source = "registry+https://github.com/rust-lang/crates.io-index"
1395
-
checksum = "0e2fb462e7bd414bfd66918bd82eb3ada7c4c7bcb4e47abb9d72ddd32264b49c"
1396
dependencies = [
0
0
1397
"bytes",
1398
"clap",
0
1399
"http",
1400
"jacquard-api",
1401
"jacquard-common",
1402
"miette",
0
1403
"reqwest",
1404
"serde",
1405
"serde_html_form",
1406
"serde_ipld_dagcbor",
1407
"serde_json",
0
1408
"thiserror 2.0.17",
1409
"tokio",
0
0
1410
]
1411
1412
[[package]]
1413
name = "jacquard-api"
1414
-
version = "0.1.0"
1415
source = "registry+https://github.com/rust-lang/crates.io-index"
1416
-
checksum = "9175e40f71219451961f1da8f10c183617fb611e2e474219ce31bc669830c1f1"
1417
dependencies = [
1418
"bon",
1419
"bytes",
···
1426
1427
[[package]]
1428
name = "jacquard-common"
1429
-
version = "0.1.0"
1430
source = "registry+https://github.com/rust-lang/crates.io-index"
1431
-
checksum = "3b4a7bef3e4fbb0d7c22ad6709544a594a000e78cd514612b584cc001945056d"
1432
dependencies = [
1433
"base64",
0
1434
"bytes",
1435
"chrono",
1436
"cid",
···
1442
"multihash",
1443
"num-traits",
1444
"ouroboros",
1445
-
"rand",
1446
"regex",
1447
"serde",
1448
"serde_html_form",
···
1455
1456
[[package]]
1457
name = "jacquard-derive"
1458
-
version = "0.1.0"
1459
source = "registry+https://github.com/rust-lang/crates.io-index"
1460
-
checksum = "b068f4196f31793f90d682c97b8570bc0bac810d8fb681f6d561937d9bf1510e"
1461
dependencies = [
1462
"heck 0.5.0",
1463
"itertools",
···
1560
checksum = "58f929b4d672ea937a23a1ab494143d968337a5f47e56d0815df1e0890ddf174"
1561
1562
[[package]]
0
0
0
0
0
0
1563
name = "linux-raw-sys"
1564
version = "0.11.0"
1565
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1596
]
1597
1598
[[package]]
0
0
0
0
0
0
0
0
0
1599
name = "lru-slab"
1600
version = "0.1.2"
1601
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1624
source = "registry+https://github.com/rust-lang/crates.io-index"
1625
checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7"
1626
dependencies = [
0
0
1627
"cfg-if",
1628
"miette-derive",
1629
-
"unicode-width",
0
0
0
0
0
0
1630
]
1631
1632
[[package]]
···
1858
]
1859
1860
[[package]]
0
0
0
0
0
0
1861
name = "parking"
1862
version = "2.2.1"
1863
source = "registry+https://github.com/rust-lang/crates.io-index"
···
2018
"quinn-udp",
2019
"rustc-hash",
2020
"rustls",
2021
-
"socket2",
2022
"thiserror 2.0.17",
2023
"tokio",
2024
"tracing",
···
2034
"bytes",
2035
"getrandom 0.3.3",
2036
"lru-slab",
2037
-
"rand",
2038
"ring",
2039
"rustc-hash",
2040
"rustls",
···
2055
"cfg_aliases",
2056
"libc",
2057
"once_cell",
2058
-
"socket2",
2059
"tracing",
2060
"windows-sys 0.60.2",
2061
]
···
2077
2078
[[package]]
2079
name = "rand"
0
0
0
0
0
0
0
0
0
0
0
2080
version = "0.9.2"
2081
source = "registry+https://github.com/rust-lang/crates.io-index"
2082
checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"
2083
dependencies = [
2084
-
"rand_chacha",
2085
-
"rand_core",
0
0
0
0
0
0
0
0
0
0
2086
]
2087
2088
[[package]]
···
2092
checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
2093
dependencies = [
2094
"ppv-lite86",
2095
-
"rand_core",
0
0
0
0
0
0
0
0
0
2096
]
2097
2098
[[package]]
···
2214
"web-sys",
2215
"webpki-roots",
2216
]
0
0
0
0
0
0
2217
2218
[[package]]
2219
name = "ring"
···
2571
2572
[[package]]
2573
name = "socket2"
0
0
0
0
0
0
0
0
0
0
2574
version = "0.6.0"
2575
source = "registry+https://github.com/rust-lang/crates.io-index"
2576
checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807"
···
2624
checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
2625
2626
[[package]]
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2627
name = "syn"
2628
version = "1.0.109"
2629
source = "registry+https://github.com/rust-lang/crates.io-index"
···
2703
"once_cell",
2704
"rustix",
2705
"windows-sys 0.61.1",
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2706
]
2707
2708
[[package]]
···
2816
"pin-project-lite",
2817
"signal-hook-registry",
2818
"slab",
2819
-
"socket2",
2820
"tokio-macros",
2821
"windows-sys 0.59.0",
2822
]
···
2931
checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0"
2932
dependencies = [
2933
"pin-project-lite",
0
2934
"tracing-core",
2935
]
2936
2937
[[package]]
0
0
0
0
0
0
0
0
0
0
0
2938
name = "tracing-core"
2939
version = "0.1.34"
2940
source = "registry+https://github.com/rust-lang/crates.io-index"
···
2972
"httparse",
2973
"log",
2974
"native-tls",
2975
-
"rand",
2976
"sha1",
2977
"thiserror 2.0.17",
2978
"url",
···
2992
checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d"
2993
2994
[[package]]
0
0
0
0
0
0
2995
name = "unicode-width"
2996
version = "0.1.14"
2997
source = "registry+https://github.com/rust-lang/crates.io-index"
2998
checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
2999
3000
[[package]]
0
0
0
0
0
0
3001
name = "unsigned-varint"
3002
version = "0.8.0"
3003
source = "registry+https://github.com/rust-lang/crates.io-index"
···
3020
"percent-encoding",
3021
"serde",
3022
]
0
0
0
0
0
0
3023
3024
[[package]]
3025
name = "utf-8"
···
3197
]
3198
3199
[[package]]
0
0
0
0
0
0
3200
name = "windows-core"
3201
version = "0.62.1"
3202
source = "registry+https://github.com/rust-lang/crates.io-index"
···
3292
3293
[[package]]
3294
name = "windows-sys"
0
0
0
0
0
0
0
0
0
3295
version = "0.52.0"
3296
source = "registry+https://github.com/rust-lang/crates.io-index"
3297
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
···
3328
3329
[[package]]
3330
name = "windows-targets"
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3331
version = "0.52.6"
3332
source = "registry+https://github.com/rust-lang/crates.io-index"
3333
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
···
3358
"windows_x86_64_gnullvm 0.53.0",
3359
"windows_x86_64_msvc 0.53.0",
3360
]
0
0
0
0
0
0
3361
3362
[[package]]
3363
name = "windows_aarch64_gnullvm"
···
3373
3374
[[package]]
3375
name = "windows_aarch64_msvc"
0
0
0
0
0
0
3376
version = "0.52.6"
3377
source = "registry+https://github.com/rust-lang/crates.io-index"
3378
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
···
3382
version = "0.53.0"
3383
source = "registry+https://github.com/rust-lang/crates.io-index"
3384
checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c"
0
0
0
0
0
0
3385
3386
[[package]]
3387
name = "windows_i686_gnu"
···
3409
3410
[[package]]
3411
name = "windows_i686_msvc"
0
0
0
0
0
0
3412
version = "0.52.6"
3413
source = "registry+https://github.com/rust-lang/crates.io-index"
3414
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
···
3421
3422
[[package]]
3423
name = "windows_x86_64_gnu"
0
0
0
0
0
0
3424
version = "0.52.6"
3425
source = "registry+https://github.com/rust-lang/crates.io-index"
3426
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
···
3433
3434
[[package]]
3435
name = "windows_x86_64_gnullvm"
0
0
0
0
0
0
3436
version = "0.52.6"
3437
source = "registry+https://github.com/rust-lang/crates.io-index"
3438
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
···
3445
3446
[[package]]
3447
name = "windows_x86_64_msvc"
0
0
0
0
0
0
3448
version = "0.52.6"
3449
source = "registry+https://github.com/rust-lang/crates.io-index"
3450
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
···
3454
version = "0.53.0"
3455
source = "registry+https://github.com/rust-lang/crates.io-index"
3456
checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
0
0
0
0
0
0
0
0
0
0
3457
3458
[[package]]
3459
name = "wit-bindgen"
···
225
]
226
227
[[package]]
228
+
name = "backtrace-ext"
229
+
version = "0.2.1"
230
+
source = "registry+https://github.com/rust-lang/crates.io-index"
231
+
checksum = "537beee3be4a18fb023b570f80e3ae28003db9167a751266b259926e25539d50"
232
+
dependencies = [
233
+
"backtrace",
234
+
]
235
+
236
+
[[package]]
237
name = "base-x"
238
version = "0.2.11"
239
source = "registry+https://github.com/rust-lang/crates.io-index"
···
729
]
730
731
[[package]]
732
+
name = "enum-as-inner"
733
+
version = "0.6.1"
734
+
source = "registry+https://github.com/rust-lang/crates.io-index"
735
+
checksum = "a1e6a265c649f3f5979b601d26f1d05ada116434c87741c9493cb56218f76cbc"
736
+
dependencies = [
737
+
"heck 0.5.0",
738
+
"proc-macro2",
739
+
"quote",
740
+
"syn 2.0.106",
741
+
]
742
+
743
+
[[package]]
744
name = "enum_dispatch"
745
version = "0.3.13"
746
source = "registry+https://github.com/rust-lang/crates.io-index"
···
886
checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
887
888
[[package]]
889
+
name = "futures-io"
890
+
version = "0.3.31"
891
+
source = "registry+https://github.com/rust-lang/crates.io-index"
892
+
checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
893
+
894
+
[[package]]
895
name = "futures-macro"
896
version = "0.3.31"
897
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1040
]
1041
1042
[[package]]
0
0
0
0
0
0
1043
name = "heck"
1044
version = "0.4.1"
1045
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1064
checksum = "b07f60793ff0a4d9cef0f18e63b5357e06209987153a64648c972c1e5aff336f"
1065
1066
[[package]]
1067
+
name = "hickory-proto"
1068
+
version = "0.24.4"
1069
+
source = "registry+https://github.com/rust-lang/crates.io-index"
1070
+
checksum = "92652067c9ce6f66ce53cc38d1169daa36e6e7eb7dd3b63b5103bd9d97117248"
1071
+
dependencies = [
1072
+
"async-trait",
1073
+
"cfg-if",
1074
+
"data-encoding",
1075
+
"enum-as-inner",
1076
+
"futures-channel",
1077
+
"futures-io",
1078
+
"futures-util",
1079
+
"idna",
1080
+
"ipnet",
1081
+
"once_cell",
1082
+
"rand 0.8.5",
1083
+
"thiserror 1.0.69",
1084
+
"tinyvec",
1085
+
"tokio",
1086
+
"tracing",
1087
+
"url",
1088
+
]
1089
+
1090
+
[[package]]
1091
+
name = "hickory-resolver"
1092
+
version = "0.24.4"
1093
+
source = "registry+https://github.com/rust-lang/crates.io-index"
1094
+
checksum = "cbb117a1ca520e111743ab2f6688eddee69db4e0ea242545a604dce8a66fd22e"
1095
+
dependencies = [
1096
+
"cfg-if",
1097
+
"futures-util",
1098
+
"hickory-proto",
1099
+
"ipconfig",
1100
+
"lru-cache",
1101
+
"once_cell",
1102
+
"parking_lot",
1103
+
"rand 0.8.5",
1104
+
"resolv-conf",
1105
+
"smallvec",
1106
+
"thiserror 1.0.69",
1107
+
"tokio",
1108
+
"tracing",
1109
+
]
1110
+
1111
+
[[package]]
1112
name = "http"
1113
version = "1.3.1"
1114
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1221
"libc",
1222
"percent-encoding",
1223
"pin-project-lite",
1224
+
"socket2 0.6.0",
1225
"system-configuration",
1226
"tokio",
1227
"tower-service",
···
1384
checksum = "4b0f83760fb341a774ed326568e19f5a863af4a952def8c39f9ab92fd95b88e5"
1385
dependencies = [
1386
"equivalent",
1387
+
"hashbrown 0.15.5",
1388
"serde",
1389
"serde_core",
1390
]
···
1407
]
1408
1409
[[package]]
1410
+
name = "ipconfig"
1411
+
version = "0.3.2"
1412
+
source = "registry+https://github.com/rust-lang/crates.io-index"
1413
+
checksum = "b58db92f96b720de98181bbbe63c831e87005ab460c1bf306eb2622b4707997f"
1414
+
dependencies = [
1415
+
"socket2 0.5.10",
1416
+
"widestring",
1417
+
"windows-sys 0.48.0",
1418
+
"winreg",
1419
+
]
1420
+
1421
+
[[package]]
1422
name = "ipld-core"
1423
version = "0.4.2"
1424
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1446
]
1447
1448
[[package]]
1449
+
name = "is_ci"
1450
+
version = "1.2.0"
1451
+
source = "registry+https://github.com/rust-lang/crates.io-index"
1452
+
checksum = "7655c9839580ee829dfacba1d1278c2b7883e50a277ff7541299489d6bdfdc45"
1453
+
1454
+
[[package]]
1455
name = "is_terminal_polyfill"
1456
version = "1.70.1"
1457
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1474
1475
[[package]]
1476
name = "jacquard"
1477
+
version = "0.2.1"
1478
source = "registry+https://github.com/rust-lang/crates.io-index"
1479
+
checksum = "719fe6fc35f0bd7859a25ba55ebaf55360e3af5b17764dab173202ad734ef5a4"
1480
dependencies = [
1481
+
"async-trait",
1482
+
"bon",
1483
"bytes",
1484
"clap",
1485
+
"hickory-resolver",
1486
"http",
1487
"jacquard-api",
1488
"jacquard-common",
1489
"miette",
1490
+
"percent-encoding",
1491
"reqwest",
1492
"serde",
1493
"serde_html_form",
1494
"serde_ipld_dagcbor",
1495
"serde_json",
1496
+
"smol_str",
1497
"thiserror 2.0.17",
1498
"tokio",
1499
+
"url",
1500
+
"urlencoding",
1501
]
1502
1503
[[package]]
1504
name = "jacquard-api"
1505
+
version = "0.2.0"
1506
source = "registry+https://github.com/rust-lang/crates.io-index"
1507
+
checksum = "51de55e4de7c7b2a5f5ea67450d8e21bc9388cca719ce3347cb58e236cc90457"
1508
dependencies = [
1509
"bon",
1510
"bytes",
···
1517
1518
[[package]]
1519
name = "jacquard-common"
1520
+
version = "0.2.0"
1521
source = "registry+https://github.com/rust-lang/crates.io-index"
1522
+
checksum = "69abd1202e606b0f2cdca38e1daaf98ce09dfe3e29cbae27bcb4cb1f6b4560c4"
1523
dependencies = [
1524
"base64",
1525
+
"bon",
1526
"bytes",
1527
"chrono",
1528
"cid",
···
1534
"multihash",
1535
"num-traits",
1536
"ouroboros",
1537
+
"rand 0.9.2",
1538
"regex",
1539
"serde",
1540
"serde_html_form",
···
1547
1548
[[package]]
1549
name = "jacquard-derive"
1550
+
version = "0.2.0"
1551
source = "registry+https://github.com/rust-lang/crates.io-index"
1552
+
checksum = "079cff009d305585a7929ea3ff45aeb5dfb93e18281793e7d79ad03ca75b9513"
1553
dependencies = [
1554
"heck 0.5.0",
1555
"itertools",
···
1652
checksum = "58f929b4d672ea937a23a1ab494143d968337a5f47e56d0815df1e0890ddf174"
1653
1654
[[package]]
1655
+
name = "linked-hash-map"
1656
+
version = "0.5.6"
1657
+
source = "registry+https://github.com/rust-lang/crates.io-index"
1658
+
checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
1659
+
1660
+
[[package]]
1661
name = "linux-raw-sys"
1662
version = "0.11.0"
1663
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1694
]
1695
1696
[[package]]
1697
+
name = "lru-cache"
1698
+
version = "0.1.2"
1699
+
source = "registry+https://github.com/rust-lang/crates.io-index"
1700
+
checksum = "31e24f1ad8321ca0e8a1e0ac13f23cb668e6f5466c2c57319f6a5cf1cc8e3b1c"
1701
+
dependencies = [
1702
+
"linked-hash-map",
1703
+
]
1704
+
1705
+
[[package]]
1706
name = "lru-slab"
1707
version = "0.1.2"
1708
source = "registry+https://github.com/rust-lang/crates.io-index"
···
1731
source = "registry+https://github.com/rust-lang/crates.io-index"
1732
checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7"
1733
dependencies = [
1734
+
"backtrace",
1735
+
"backtrace-ext",
1736
"cfg-if",
1737
"miette-derive",
1738
+
"owo-colors",
1739
+
"supports-color",
1740
+
"supports-hyperlinks",
1741
+
"supports-unicode",
1742
+
"terminal_size",
1743
+
"textwrap",
1744
+
"unicode-width 0.1.14",
1745
]
1746
1747
[[package]]
···
1973
]
1974
1975
[[package]]
1976
+
name = "owo-colors"
1977
+
version = "4.2.3"
1978
+
source = "registry+https://github.com/rust-lang/crates.io-index"
1979
+
checksum = "9c6901729fa79e91a0913333229e9ca5dc725089d1c363b2f4b4760709dc4a52"
1980
+
1981
+
[[package]]
1982
name = "parking"
1983
version = "2.2.1"
1984
source = "registry+https://github.com/rust-lang/crates.io-index"
···
2139
"quinn-udp",
2140
"rustc-hash",
2141
"rustls",
2142
+
"socket2 0.6.0",
2143
"thiserror 2.0.17",
2144
"tokio",
2145
"tracing",
···
2155
"bytes",
2156
"getrandom 0.3.3",
2157
"lru-slab",
2158
+
"rand 0.9.2",
2159
"ring",
2160
"rustc-hash",
2161
"rustls",
···
2176
"cfg_aliases",
2177
"libc",
2178
"once_cell",
2179
+
"socket2 0.6.0",
2180
"tracing",
2181
"windows-sys 0.60.2",
2182
]
···
2198
2199
[[package]]
2200
name = "rand"
2201
+
version = "0.8.5"
2202
+
source = "registry+https://github.com/rust-lang/crates.io-index"
2203
+
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
2204
+
dependencies = [
2205
+
"libc",
2206
+
"rand_chacha 0.3.1",
2207
+
"rand_core 0.6.4",
2208
+
]
2209
+
2210
+
[[package]]
2211
+
name = "rand"
2212
version = "0.9.2"
2213
source = "registry+https://github.com/rust-lang/crates.io-index"
2214
checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"
2215
dependencies = [
2216
+
"rand_chacha 0.9.0",
2217
+
"rand_core 0.9.3",
2218
+
]
2219
+
2220
+
[[package]]
2221
+
name = "rand_chacha"
2222
+
version = "0.3.1"
2223
+
source = "registry+https://github.com/rust-lang/crates.io-index"
2224
+
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
2225
+
dependencies = [
2226
+
"ppv-lite86",
2227
+
"rand_core 0.6.4",
2228
]
2229
2230
[[package]]
···
2234
checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
2235
dependencies = [
2236
"ppv-lite86",
2237
+
"rand_core 0.9.3",
2238
+
]
2239
+
2240
+
[[package]]
2241
+
name = "rand_core"
2242
+
version = "0.6.4"
2243
+
source = "registry+https://github.com/rust-lang/crates.io-index"
2244
+
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
2245
+
dependencies = [
2246
+
"getrandom 0.2.16",
2247
]
2248
2249
[[package]]
···
2365
"web-sys",
2366
"webpki-roots",
2367
]
2368
+
2369
+
[[package]]
2370
+
name = "resolv-conf"
2371
+
version = "0.7.5"
2372
+
source = "registry+https://github.com/rust-lang/crates.io-index"
2373
+
checksum = "6b3789b30bd25ba102de4beabd95d21ac45b69b1be7d14522bab988c526d6799"
2374
2375
[[package]]
2376
name = "ring"
···
2728
2729
[[package]]
2730
name = "socket2"
2731
+
version = "0.5.10"
2732
+
source = "registry+https://github.com/rust-lang/crates.io-index"
2733
+
checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678"
2734
+
dependencies = [
2735
+
"libc",
2736
+
"windows-sys 0.52.0",
2737
+
]
2738
+
2739
+
[[package]]
2740
+
name = "socket2"
2741
version = "0.6.0"
2742
source = "registry+https://github.com/rust-lang/crates.io-index"
2743
checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807"
···
2791
checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
2792
2793
[[package]]
2794
+
name = "supports-color"
2795
+
version = "3.0.2"
2796
+
source = "registry+https://github.com/rust-lang/crates.io-index"
2797
+
checksum = "c64fc7232dd8d2e4ac5ce4ef302b1d81e0b80d055b9d77c7c4f51f6aa4c867d6"
2798
+
dependencies = [
2799
+
"is_ci",
2800
+
]
2801
+
2802
+
[[package]]
2803
+
name = "supports-hyperlinks"
2804
+
version = "3.1.0"
2805
+
source = "registry+https://github.com/rust-lang/crates.io-index"
2806
+
checksum = "804f44ed3c63152de6a9f90acbea1a110441de43006ea51bcce8f436196a288b"
2807
+
2808
+
[[package]]
2809
+
name = "supports-unicode"
2810
+
version = "3.0.0"
2811
+
source = "registry+https://github.com/rust-lang/crates.io-index"
2812
+
checksum = "b7401a30af6cb5818bb64852270bb722533397edcfc7344954a38f420819ece2"
2813
+
2814
+
[[package]]
2815
name = "syn"
2816
version = "1.0.109"
2817
source = "registry+https://github.com/rust-lang/crates.io-index"
···
2891
"once_cell",
2892
"rustix",
2893
"windows-sys 0.61.1",
2894
+
]
2895
+
2896
+
[[package]]
2897
+
name = "terminal_size"
2898
+
version = "0.4.3"
2899
+
source = "registry+https://github.com/rust-lang/crates.io-index"
2900
+
checksum = "60b8cb979cb11c32ce1603f8137b22262a9d131aaa5c37b5678025f22b8becd0"
2901
+
dependencies = [
2902
+
"rustix",
2903
+
"windows-sys 0.60.2",
2904
+
]
2905
+
2906
+
[[package]]
2907
+
name = "textwrap"
2908
+
version = "0.16.2"
2909
+
source = "registry+https://github.com/rust-lang/crates.io-index"
2910
+
checksum = "c13547615a44dc9c452a8a534638acdf07120d4b6847c8178705da06306a3057"
2911
+
dependencies = [
2912
+
"unicode-linebreak",
2913
+
"unicode-width 0.2.2",
2914
]
2915
2916
[[package]]
···
3024
"pin-project-lite",
3025
"signal-hook-registry",
3026
"slab",
3027
+
"socket2 0.6.0",
3028
"tokio-macros",
3029
"windows-sys 0.59.0",
3030
]
···
3139
checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0"
3140
dependencies = [
3141
"pin-project-lite",
3142
+
"tracing-attributes",
3143
"tracing-core",
3144
]
3145
3146
[[package]]
3147
+
name = "tracing-attributes"
3148
+
version = "0.1.30"
3149
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3150
+
checksum = "81383ab64e72a7a8b8e13130c49e3dab29def6d0c7d76a03087b3cf71c5c6903"
3151
+
dependencies = [
3152
+
"proc-macro2",
3153
+
"quote",
3154
+
"syn 2.0.106",
3155
+
]
3156
+
3157
+
[[package]]
3158
name = "tracing-core"
3159
version = "0.1.34"
3160
source = "registry+https://github.com/rust-lang/crates.io-index"
···
3192
"httparse",
3193
"log",
3194
"native-tls",
3195
+
"rand 0.9.2",
3196
"sha1",
3197
"thiserror 2.0.17",
3198
"url",
···
3212
checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d"
3213
3214
[[package]]
3215
+
name = "unicode-linebreak"
3216
+
version = "0.1.5"
3217
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3218
+
checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f"
3219
+
3220
+
[[package]]
3221
name = "unicode-width"
3222
version = "0.1.14"
3223
source = "registry+https://github.com/rust-lang/crates.io-index"
3224
checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
3225
3226
[[package]]
3227
+
name = "unicode-width"
3228
+
version = "0.2.2"
3229
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3230
+
checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
3231
+
3232
+
[[package]]
3233
name = "unsigned-varint"
3234
version = "0.8.0"
3235
source = "registry+https://github.com/rust-lang/crates.io-index"
···
3252
"percent-encoding",
3253
"serde",
3254
]
3255
+
3256
+
[[package]]
3257
+
name = "urlencoding"
3258
+
version = "2.1.3"
3259
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3260
+
checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da"
3261
3262
[[package]]
3263
name = "utf-8"
···
3435
]
3436
3437
[[package]]
3438
+
name = "widestring"
3439
+
version = "1.2.0"
3440
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3441
+
checksum = "dd7cf3379ca1aac9eea11fba24fd7e315d621f8dfe35c8d7d2be8b793726e07d"
3442
+
3443
+
[[package]]
3444
name = "windows-core"
3445
version = "0.62.1"
3446
source = "registry+https://github.com/rust-lang/crates.io-index"
···
3536
3537
[[package]]
3538
name = "windows-sys"
3539
+
version = "0.48.0"
3540
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3541
+
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
3542
+
dependencies = [
3543
+
"windows-targets 0.48.5",
3544
+
]
3545
+
3546
+
[[package]]
3547
+
name = "windows-sys"
3548
version = "0.52.0"
3549
source = "registry+https://github.com/rust-lang/crates.io-index"
3550
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
···
3581
3582
[[package]]
3583
name = "windows-targets"
3584
+
version = "0.48.5"
3585
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3586
+
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
3587
+
dependencies = [
3588
+
"windows_aarch64_gnullvm 0.48.5",
3589
+
"windows_aarch64_msvc 0.48.5",
3590
+
"windows_i686_gnu 0.48.5",
3591
+
"windows_i686_msvc 0.48.5",
3592
+
"windows_x86_64_gnu 0.48.5",
3593
+
"windows_x86_64_gnullvm 0.48.5",
3594
+
"windows_x86_64_msvc 0.48.5",
3595
+
]
3596
+
3597
+
[[package]]
3598
+
name = "windows-targets"
3599
version = "0.52.6"
3600
source = "registry+https://github.com/rust-lang/crates.io-index"
3601
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
···
3626
"windows_x86_64_gnullvm 0.53.0",
3627
"windows_x86_64_msvc 0.53.0",
3628
]
3629
+
3630
+
[[package]]
3631
+
name = "windows_aarch64_gnullvm"
3632
+
version = "0.48.5"
3633
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3634
+
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
3635
3636
[[package]]
3637
name = "windows_aarch64_gnullvm"
···
3647
3648
[[package]]
3649
name = "windows_aarch64_msvc"
3650
+
version = "0.48.5"
3651
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3652
+
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
3653
+
3654
+
[[package]]
3655
+
name = "windows_aarch64_msvc"
3656
version = "0.52.6"
3657
source = "registry+https://github.com/rust-lang/crates.io-index"
3658
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
···
3662
version = "0.53.0"
3663
source = "registry+https://github.com/rust-lang/crates.io-index"
3664
checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c"
3665
+
3666
+
[[package]]
3667
+
name = "windows_i686_gnu"
3668
+
version = "0.48.5"
3669
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3670
+
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
3671
3672
[[package]]
3673
name = "windows_i686_gnu"
···
3695
3696
[[package]]
3697
name = "windows_i686_msvc"
3698
+
version = "0.48.5"
3699
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3700
+
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
3701
+
3702
+
[[package]]
3703
+
name = "windows_i686_msvc"
3704
version = "0.52.6"
3705
source = "registry+https://github.com/rust-lang/crates.io-index"
3706
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
···
3713
3714
[[package]]
3715
name = "windows_x86_64_gnu"
3716
+
version = "0.48.5"
3717
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3718
+
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
3719
+
3720
+
[[package]]
3721
+
name = "windows_x86_64_gnu"
3722
version = "0.52.6"
3723
source = "registry+https://github.com/rust-lang/crates.io-index"
3724
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
···
3731
3732
[[package]]
3733
name = "windows_x86_64_gnullvm"
3734
+
version = "0.48.5"
3735
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3736
+
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
3737
+
3738
+
[[package]]
3739
+
name = "windows_x86_64_gnullvm"
3740
version = "0.52.6"
3741
source = "registry+https://github.com/rust-lang/crates.io-index"
3742
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
···
3749
3750
[[package]]
3751
name = "windows_x86_64_msvc"
3752
+
version = "0.48.5"
3753
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3754
+
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
3755
+
3756
+
[[package]]
3757
+
name = "windows_x86_64_msvc"
3758
version = "0.52.6"
3759
source = "registry+https://github.com/rust-lang/crates.io-index"
3760
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
···
3764
version = "0.53.0"
3765
source = "registry+https://github.com/rust-lang/crates.io-index"
3766
checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
3767
+
3768
+
[[package]]
3769
+
name = "winreg"
3770
+
version = "0.50.0"
3771
+
source = "registry+https://github.com/rust-lang/crates.io-index"
3772
+
checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1"
3773
+
dependencies = [
3774
+
"cfg-if",
3775
+
"windows-sys 0.48.0",
3776
+
]
3777
3778
[[package]]
3779
name = "wit-bindgen"
+1
-1
Cargo.toml
···
6
[dependencies]
7
clap = { version = "4.5.48", features = ["derive", "env"] }
8
env_logger = "0.11.8"
9
-
jacquard = "0.1.0"
10
jetstream = { path = "../links/jetstream" }
11
reqwest = { version = "0.12.23", features = ["json"] }
12
serde = { version = "1.0.228", features = ["derive"] }
···
6
[dependencies]
7
clap = { version = "4.5.48", features = ["derive", "env"] }
8
env_logger = "0.11.8"
9
+
jacquard = "0.2.1"
10
jetstream = { path = "../links/jetstream" }
11
reqwest = { version = "0.12.23", features = ["json"] }
12
serde = { version = "1.0.228", features = ["derive"] }
+11
-13
src/main.rs
···
6
exports::Nsid,
7
};
8
use jacquard::{
9
-
api::app_bsky::{
10
-
feed::post::Post,
11
-
richtext::facet::{Facet, ByteSlice},
12
-
},
13
-
api::com_atproto::{
14
-
server::create_session::CreateSession,
15
-
repo::create_record::CreateRecord,
16
},
17
-
client::{HttpClient, AuthenticatedClient, Session, XrpcClient},
18
types::{
19
datetime::Datetime,
20
ident::AtIdentifier,
···
24
string::AtUri,
25
},
26
};
0
27
use std::time::Duration;
28
use serde::Deserialize;
29
···
57
dry_run: bool,
58
}
59
60
-
async fn post<C: HttpClient>(
61
-
client: &AuthenticatedClient<C>,
62
identifier: &AtIdentifier<'_>,
63
repo_name: &str,
64
repo_url: &str,
···
207
let args = Args::parse();
208
209
// Create HTTP client and session
210
-
let pds_uri = args.pds.as_str().trim_end_matches('/').to_string().into();
211
-
let mut client = AuthenticatedClient::new(reqwest::Client::new(), pds_uri);
212
let bot_id = AtIdentifier::new(&args.identifier)?;
213
let session = Session::from(
214
client
···
222
.into_output()?,
223
);
224
println!("logged in as {} ({})", session.handle, session.did);
225
-
client.set_session(session);
226
227
let jetstream_config: JetstreamConfig = JetstreamConfig {
228
endpoint: args.jetstream_url.to_string(),
···
6
exports::Nsid,
7
};
8
use jacquard::{
9
+
api::{
10
+
app_bsky::feed::post::Post,
11
+
app_bsky::richtext::facet::{Facet, ByteSlice},
12
+
com_atproto::server::create_session::CreateSession,
13
+
com_atproto::repo::create_record::CreateRecord,
0
0
14
},
15
+
client::{BasicClient, Session},
16
types::{
17
datetime::Datetime,
18
ident::AtIdentifier,
···
22
string::AtUri,
23
},
24
};
25
+
26
use std::time::Duration;
27
use serde::Deserialize;
28
···
56
dry_run: bool,
57
}
58
59
+
async fn post(
60
+
client: &BasicClient,
61
identifier: &AtIdentifier<'_>,
62
repo_name: &str,
63
repo_url: &str,
···
206
let args = Args::parse();
207
208
// Create HTTP client and session
209
+
let client = BasicClient::new(args.pds);
0
210
let bot_id = AtIdentifier::new(&args.identifier)?;
211
let session = Session::from(
212
client
···
220
.into_output()?,
221
);
222
println!("logged in as {} ({})", session.handle, session.did);
223
+
client.set_session(session).await?;
224
225
let jetstream_config: JetstreamConfig = JetstreamConfig {
226
endpoint: args.jetstream_url.to_string(),