[WIP] A (somewhat barebones) atproto app for creating custom sites without hosting!

upload: make main async

this will be required for jacquard later sooo

vielle.dev 7a1053cf edc717c4

verified
Changed files
+234 -11
upload
+230 -9
upload/Cargo.lock
··· 69 69 "ignore", 70 70 "mime_guess", 71 71 "regex", 72 + "tokio", 72 73 ] 73 74 74 75 [[package]] 76 + name = "bitflags" 77 + version = "2.9.4" 78 + source = "registry+https://github.com/rust-lang/crates.io-index" 79 + checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394" 80 + 81 + [[package]] 75 82 name = "bstr" 76 83 version = "1.12.0" 77 84 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 80 87 "memchr", 81 88 "serde", 82 89 ] 90 + 91 + [[package]] 92 + name = "bytes" 93 + version = "1.10.1" 94 + source = "registry+https://github.com/rust-lang/crates.io-index" 95 + checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" 96 + 97 + [[package]] 98 + name = "cfg-if" 99 + version = "1.0.3" 100 + source = "registry+https://github.com/rust-lang/crates.io-index" 101 + checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9" 83 102 84 103 [[package]] 85 104 name = "clap" ··· 194 213 checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" 195 214 196 215 [[package]] 216 + name = "libc" 217 + version = "0.2.177" 218 + source = "registry+https://github.com/rust-lang/crates.io-index" 219 + checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976" 220 + 221 + [[package]] 222 + name = "lock_api" 223 + version = "0.4.14" 224 + source = "registry+https://github.com/rust-lang/crates.io-index" 225 + checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" 226 + dependencies = [ 227 + "scopeguard", 228 + ] 229 + 230 + [[package]] 197 231 name = "log" 198 232 version = "0.4.28" 199 233 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 222 256 ] 223 257 224 258 [[package]] 259 + name = "mio" 260 + version = "1.0.4" 261 + source = "registry+https://github.com/rust-lang/crates.io-index" 262 + checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c" 263 + dependencies = [ 264 + "libc", 265 + "wasi", 266 + "windows-sys 0.59.0", 267 + ] 268 + 269 + [[package]] 225 270 name = "once_cell_polyfill" 226 271 version = "1.70.1" 227 272 source = "registry+https://github.com/rust-lang/crates.io-index" 228 273 checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad" 229 274 230 275 [[package]] 276 + name = "parking_lot" 277 + version = "0.12.5" 278 + source = "registry+https://github.com/rust-lang/crates.io-index" 279 + checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" 280 + dependencies = [ 281 + "lock_api", 282 + "parking_lot_core", 283 + ] 284 + 285 + [[package]] 286 + name = "parking_lot_core" 287 + version = "0.9.12" 288 + source = "registry+https://github.com/rust-lang/crates.io-index" 289 + checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" 290 + dependencies = [ 291 + "cfg-if", 292 + "libc", 293 + "redox_syscall", 294 + "smallvec", 295 + "windows-link", 296 + ] 297 + 298 + [[package]] 299 + name = "pin-project-lite" 300 + version = "0.2.16" 301 + source = "registry+https://github.com/rust-lang/crates.io-index" 302 + checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" 303 + 304 + [[package]] 231 305 name = "proc-macro2" 232 306 version = "1.0.101" 233 307 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 246 320 ] 247 321 248 322 [[package]] 323 + name = "redox_syscall" 324 + version = "0.5.18" 325 + source = "registry+https://github.com/rust-lang/crates.io-index" 326 + checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" 327 + dependencies = [ 328 + "bitflags", 329 + ] 330 + 331 + [[package]] 249 332 name = "regex" 250 333 version = "1.12.2" 251 334 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 284 367 ] 285 368 286 369 [[package]] 370 + name = "scopeguard" 371 + version = "1.2.0" 372 + source = "registry+https://github.com/rust-lang/crates.io-index" 373 + checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 374 + 375 + [[package]] 287 376 name = "serde" 288 377 version = "1.0.228" 289 378 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 313 402 ] 314 403 315 404 [[package]] 405 + name = "signal-hook-registry" 406 + version = "1.4.6" 407 + source = "registry+https://github.com/rust-lang/crates.io-index" 408 + checksum = "b2a4719bff48cee6b39d12c020eeb490953ad2443b7055bd0b21fca26bd8c28b" 409 + dependencies = [ 410 + "libc", 411 + ] 412 + 413 + [[package]] 414 + name = "smallvec" 415 + version = "1.15.1" 416 + source = "registry+https://github.com/rust-lang/crates.io-index" 417 + checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" 418 + 419 + [[package]] 420 + name = "socket2" 421 + version = "0.6.1" 422 + source = "registry+https://github.com/rust-lang/crates.io-index" 423 + checksum = "17129e116933cf371d018bb80ae557e889637989d8638274fb25622827b03881" 424 + dependencies = [ 425 + "libc", 426 + "windows-sys 0.60.2", 427 + ] 428 + 429 + [[package]] 316 430 name = "strsim" 317 431 version = "0.11.1" 318 432 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 330 444 ] 331 445 332 446 [[package]] 447 + name = "tokio" 448 + version = "1.48.0" 449 + source = "registry+https://github.com/rust-lang/crates.io-index" 450 + checksum = "ff360e02eab121e0bc37a2d3b4d4dc622e6eda3a8e5253d5435ecf5bd4c68408" 451 + dependencies = [ 452 + "bytes", 453 + "libc", 454 + "mio", 455 + "parking_lot", 456 + "pin-project-lite", 457 + "signal-hook-registry", 458 + "socket2", 459 + "tokio-macros", 460 + "windows-sys 0.61.2", 461 + ] 462 + 463 + [[package]] 464 + name = "tokio-macros" 465 + version = "2.6.0" 466 + source = "registry+https://github.com/rust-lang/crates.io-index" 467 + checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" 468 + dependencies = [ 469 + "proc-macro2", 470 + "quote", 471 + "syn", 472 + ] 473 + 474 + [[package]] 333 475 name = "unicase" 334 476 version = "2.8.1" 335 477 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 358 500 ] 359 501 360 502 [[package]] 503 + name = "wasi" 504 + version = "0.11.1+wasi-snapshot-preview1" 505 + source = "registry+https://github.com/rust-lang/crates.io-index" 506 + checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" 507 + 508 + [[package]] 361 509 name = "winapi-util" 362 510 version = "0.1.11" 363 511 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 374 522 375 523 [[package]] 376 524 name = "windows-sys" 525 + version = "0.59.0" 526 + source = "registry+https://github.com/rust-lang/crates.io-index" 527 + checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 528 + dependencies = [ 529 + "windows-targets 0.52.6", 530 + ] 531 + 532 + [[package]] 533 + name = "windows-sys" 377 534 version = "0.60.2" 378 535 source = "registry+https://github.com/rust-lang/crates.io-index" 379 536 checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" 380 537 dependencies = [ 381 - "windows-targets", 538 + "windows-targets 0.53.5", 382 539 ] 383 540 384 541 [[package]] ··· 392 549 393 550 [[package]] 394 551 name = "windows-targets" 552 + version = "0.52.6" 553 + source = "registry+https://github.com/rust-lang/crates.io-index" 554 + checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 555 + dependencies = [ 556 + "windows_aarch64_gnullvm 0.52.6", 557 + "windows_aarch64_msvc 0.52.6", 558 + "windows_i686_gnu 0.52.6", 559 + "windows_i686_gnullvm 0.52.6", 560 + "windows_i686_msvc 0.52.6", 561 + "windows_x86_64_gnu 0.52.6", 562 + "windows_x86_64_gnullvm 0.52.6", 563 + "windows_x86_64_msvc 0.52.6", 564 + ] 565 + 566 + [[package]] 567 + name = "windows-targets" 395 568 version = "0.53.5" 396 569 source = "registry+https://github.com/rust-lang/crates.io-index" 397 570 checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" 398 571 dependencies = [ 399 572 "windows-link", 400 - "windows_aarch64_gnullvm", 401 - "windows_aarch64_msvc", 402 - "windows_i686_gnu", 403 - "windows_i686_gnullvm", 404 - "windows_i686_msvc", 405 - "windows_x86_64_gnu", 406 - "windows_x86_64_gnullvm", 407 - "windows_x86_64_msvc", 573 + "windows_aarch64_gnullvm 0.53.1", 574 + "windows_aarch64_msvc 0.53.1", 575 + "windows_i686_gnu 0.53.1", 576 + "windows_i686_gnullvm 0.53.1", 577 + "windows_i686_msvc 0.53.1", 578 + "windows_x86_64_gnu 0.53.1", 579 + "windows_x86_64_gnullvm 0.53.1", 580 + "windows_x86_64_msvc 0.53.1", 408 581 ] 409 582 410 583 [[package]] 411 584 name = "windows_aarch64_gnullvm" 585 + version = "0.52.6" 586 + source = "registry+https://github.com/rust-lang/crates.io-index" 587 + checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 588 + 589 + [[package]] 590 + name = "windows_aarch64_gnullvm" 412 591 version = "0.53.1" 413 592 source = "registry+https://github.com/rust-lang/crates.io-index" 414 593 checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" 594 + 595 + [[package]] 596 + name = "windows_aarch64_msvc" 597 + version = "0.52.6" 598 + source = "registry+https://github.com/rust-lang/crates.io-index" 599 + checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 415 600 416 601 [[package]] 417 602 name = "windows_aarch64_msvc" ··· 421 606 422 607 [[package]] 423 608 name = "windows_i686_gnu" 609 + version = "0.52.6" 610 + source = "registry+https://github.com/rust-lang/crates.io-index" 611 + checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 612 + 613 + [[package]] 614 + name = "windows_i686_gnu" 424 615 version = "0.53.1" 425 616 source = "registry+https://github.com/rust-lang/crates.io-index" 426 617 checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" 427 618 428 619 [[package]] 429 620 name = "windows_i686_gnullvm" 621 + version = "0.52.6" 622 + source = "registry+https://github.com/rust-lang/crates.io-index" 623 + checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 624 + 625 + [[package]] 626 + name = "windows_i686_gnullvm" 430 627 version = "0.53.1" 431 628 source = "registry+https://github.com/rust-lang/crates.io-index" 432 629 checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" 433 630 434 631 [[package]] 435 632 name = "windows_i686_msvc" 633 + version = "0.52.6" 634 + source = "registry+https://github.com/rust-lang/crates.io-index" 635 + checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 636 + 637 + [[package]] 638 + name = "windows_i686_msvc" 436 639 version = "0.53.1" 437 640 source = "registry+https://github.com/rust-lang/crates.io-index" 438 641 checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" 439 642 440 643 [[package]] 441 644 name = "windows_x86_64_gnu" 645 + version = "0.52.6" 646 + source = "registry+https://github.com/rust-lang/crates.io-index" 647 + checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 648 + 649 + [[package]] 650 + name = "windows_x86_64_gnu" 442 651 version = "0.53.1" 443 652 source = "registry+https://github.com/rust-lang/crates.io-index" 444 653 checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" 445 654 446 655 [[package]] 447 656 name = "windows_x86_64_gnullvm" 657 + version = "0.52.6" 658 + source = "registry+https://github.com/rust-lang/crates.io-index" 659 + checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 660 + 661 + [[package]] 662 + name = "windows_x86_64_gnullvm" 448 663 version = "0.53.1" 449 664 source = "registry+https://github.com/rust-lang/crates.io-index" 450 665 checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" 666 + 667 + [[package]] 668 + name = "windows_x86_64_msvc" 669 + version = "0.52.6" 670 + source = "registry+https://github.com/rust-lang/crates.io-index" 671 + checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 451 672 452 673 [[package]] 453 674 name = "windows_x86_64_msvc"
+2 -1
upload/Cargo.toml
··· 7 7 clap = { version = "4.5.49", features = ["derive"] } 8 8 ignore = "0.4.23" 9 9 regex = "1.12.2" 10 - mime_guess = "2.0.5" 10 + mime_guess = "2.0.5" 11 + tokio = { version = "1.48.0", features = ["full"] }
+2 -1
upload/src/main.rs
··· 30 30 dir: PathBuf, 31 31 } 32 32 33 - fn main() -> Result<(), ()> { 33 + #[tokio::main] 34 + async fn main() -> Result<(), ()> { 34 35 // get config items 35 36 let config = Config::parse(); 36 37