Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

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

Plan: add Rust unit tests for netstream crate

Agent-Logs-Url: https://github.com/tsirysndr/rockbox-zig/sessions/d4447967-c905-41bb-a691-d915c25310a5

Co-authored-by: tsirysndr <15877106+tsirysndr@users.noreply.github.com>

authored by

copilot-swe-agent[bot]
tsirysndr
and committed by
GitHub
702ba086 45d1cd0f

+208
+205
crates/netstream/Cargo.lock
··· 3 3 version = 4 4 4 5 5 [[package]] 6 + name = "aho-corasick" 7 + version = "1.1.4" 8 + source = "registry+https://github.com/rust-lang/crates.io-index" 9 + checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" 10 + dependencies = [ 11 + "memchr", 12 + ] 13 + 14 + [[package]] 15 + name = "assert-json-diff" 16 + version = "2.0.2" 17 + source = "registry+https://github.com/rust-lang/crates.io-index" 18 + checksum = "47e4f2b81832e72834d7518d8487a0396a28cc408186a2e8854c0f98011faf12" 19 + dependencies = [ 20 + "serde", 21 + "serde_json", 22 + ] 23 + 24 + [[package]] 6 25 name = "atomic-waker" 7 26 version = "1.1.2" 8 27 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 55 74 checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" 56 75 57 76 [[package]] 77 + name = "colored" 78 + version = "3.1.1" 79 + source = "registry+https://github.com/rust-lang/crates.io-index" 80 + checksum = "faf9468729b8cbcea668e36183cb69d317348c2e08e994829fb56ebfdfbaac34" 81 + dependencies = [ 82 + "windows-sys 0.61.2", 83 + ] 84 + 85 + [[package]] 58 86 name = "displaydoc" 59 87 version = "0.2.5" 60 88 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 66 94 ] 67 95 68 96 [[package]] 97 + name = "equivalent" 98 + version = "1.0.2" 99 + source = "registry+https://github.com/rust-lang/crates.io-index" 100 + checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" 101 + 102 + [[package]] 69 103 name = "find-msvc-tools" 70 104 version = "0.1.9" 71 105 source = "registry+https://github.com/rust-lang/crates.io-index" 72 106 checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" 107 + 108 + [[package]] 109 + name = "fnv" 110 + version = "1.0.7" 111 + source = "registry+https://github.com/rust-lang/crates.io-index" 112 + checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 73 113 74 114 [[package]] 75 115 name = "form_urlencoded" ··· 157 197 ] 158 198 159 199 [[package]] 200 + name = "h2" 201 + version = "0.4.13" 202 + source = "registry+https://github.com/rust-lang/crates.io-index" 203 + checksum = "2f44da3a8150a6703ed5d34e164b875fd14c2cdab9af1252a9a1020bde2bdc54" 204 + dependencies = [ 205 + "atomic-waker", 206 + "bytes", 207 + "fnv", 208 + "futures-core", 209 + "futures-sink", 210 + "http", 211 + "indexmap", 212 + "slab", 213 + "tokio", 214 + "tokio-util", 215 + "tracing", 216 + ] 217 + 218 + [[package]] 219 + name = "hashbrown" 220 + version = "0.17.0" 221 + source = "registry+https://github.com/rust-lang/crates.io-index" 222 + checksum = "4f467dd6dccf739c208452f8014c75c18bb8301b050ad1cfb27153803edb0f51" 223 + 224 + [[package]] 160 225 name = "http" 161 226 version = "1.4.0" 162 227 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 196 261 checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" 197 262 198 263 [[package]] 264 + name = "httpdate" 265 + version = "1.0.3" 266 + source = "registry+https://github.com/rust-lang/crates.io-index" 267 + checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" 268 + 269 + [[package]] 199 270 name = "hyper" 200 271 version = "1.9.0" 201 272 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 205 276 "bytes", 206 277 "futures-channel", 207 278 "futures-core", 279 + "h2", 208 280 "http", 209 281 "http-body", 210 282 "httparse", 283 + "httpdate", 211 284 "itoa", 212 285 "pin-project-lite", 213 286 "smallvec", ··· 358 431 ] 359 432 360 433 [[package]] 434 + name = "indexmap" 435 + version = "2.14.0" 436 + source = "registry+https://github.com/rust-lang/crates.io-index" 437 + checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" 438 + dependencies = [ 439 + "equivalent", 440 + "hashbrown", 441 + ] 442 + 443 + [[package]] 361 444 name = "ipnet" 362 445 version = "2.12.0" 363 446 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 404 487 checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" 405 488 406 489 [[package]] 490 + name = "lock_api" 491 + version = "0.4.14" 492 + source = "registry+https://github.com/rust-lang/crates.io-index" 493 + checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" 494 + dependencies = [ 495 + "scopeguard", 496 + ] 497 + 498 + [[package]] 407 499 name = "log" 408 500 version = "0.4.29" 409 501 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 433 525 ] 434 526 435 527 [[package]] 528 + name = "mockito" 529 + version = "1.7.2" 530 + source = "registry+https://github.com/rust-lang/crates.io-index" 531 + checksum = "90820618712cab19cfc46b274c6c22546a82affcb3c3bdf0f29e3db8e1bb92c0" 532 + dependencies = [ 533 + "assert-json-diff", 534 + "bytes", 535 + "colored", 536 + "futures-core", 537 + "http", 538 + "http-body", 539 + "http-body-util", 540 + "hyper", 541 + "hyper-util", 542 + "log", 543 + "pin-project-lite", 544 + "rand", 545 + "regex", 546 + "serde_json", 547 + "serde_urlencoded", 548 + "similar", 549 + "tokio", 550 + ] 551 + 552 + [[package]] 436 553 name = "netstream" 437 554 version = "0.1.0" 438 555 dependencies = [ 439 556 "libc", 557 + "mockito", 440 558 "once_cell", 441 559 "reqwest", 442 560 ] ··· 446 564 version = "1.21.4" 447 565 source = "registry+https://github.com/rust-lang/crates.io-index" 448 566 checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" 567 + 568 + [[package]] 569 + name = "parking_lot" 570 + version = "0.12.5" 571 + source = "registry+https://github.com/rust-lang/crates.io-index" 572 + checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" 573 + dependencies = [ 574 + "lock_api", 575 + "parking_lot_core", 576 + ] 577 + 578 + [[package]] 579 + name = "parking_lot_core" 580 + version = "0.9.12" 581 + source = "registry+https://github.com/rust-lang/crates.io-index" 582 + checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" 583 + dependencies = [ 584 + "cfg-if", 585 + "libc", 586 + "redox_syscall", 587 + "smallvec", 588 + "windows-link", 589 + ] 449 590 450 591 [[package]] 451 592 name = "percent-encoding" ··· 586 727 ] 587 728 588 729 [[package]] 730 + name = "redox_syscall" 731 + version = "0.5.18" 732 + source = "registry+https://github.com/rust-lang/crates.io-index" 733 + checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" 734 + dependencies = [ 735 + "bitflags", 736 + ] 737 + 738 + [[package]] 739 + name = "regex" 740 + version = "1.12.3" 741 + source = "registry+https://github.com/rust-lang/crates.io-index" 742 + checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" 743 + dependencies = [ 744 + "aho-corasick", 745 + "memchr", 746 + "regex-automata", 747 + "regex-syntax", 748 + ] 749 + 750 + [[package]] 751 + name = "regex-automata" 752 + version = "0.4.14" 753 + source = "registry+https://github.com/rust-lang/crates.io-index" 754 + checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" 755 + dependencies = [ 756 + "aho-corasick", 757 + "memchr", 758 + "regex-syntax", 759 + ] 760 + 761 + [[package]] 762 + name = "regex-syntax" 763 + version = "0.8.10" 764 + source = "registry+https://github.com/rust-lang/crates.io-index" 765 + checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" 766 + 767 + [[package]] 589 768 name = "reqwest" 590 769 version = "0.12.28" 591 770 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 693 872 checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" 694 873 695 874 [[package]] 875 + name = "scopeguard" 876 + version = "1.2.0" 877 + source = "registry+https://github.com/rust-lang/crates.io-index" 878 + checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 879 + 880 + [[package]] 696 881 name = "serde" 697 882 version = "1.0.228" 698 883 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 752 937 version = "1.3.0" 753 938 source = "registry+https://github.com/rust-lang/crates.io-index" 754 939 checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 940 + 941 + [[package]] 942 + name = "similar" 943 + version = "2.7.0" 944 + source = "registry+https://github.com/rust-lang/crates.io-index" 945 + checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa" 755 946 756 947 [[package]] 757 948 name = "slab" ··· 872 1063 "bytes", 873 1064 "libc", 874 1065 "mio", 1066 + "parking_lot", 875 1067 "pin-project-lite", 876 1068 "socket2", 877 1069 "windows-sys 0.61.2", ··· 884 1076 checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" 885 1077 dependencies = [ 886 1078 "rustls", 1079 + "tokio", 1080 + ] 1081 + 1082 + [[package]] 1083 + name = "tokio-util" 1084 + version = "0.7.18" 1085 + source = "registry+https://github.com/rust-lang/crates.io-index" 1086 + checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" 1087 + dependencies = [ 1088 + "bytes", 1089 + "futures-core", 1090 + "futures-sink", 1091 + "pin-project-lite", 887 1092 "tokio", 888 1093 ] 889 1094
+3
crates/netstream/Cargo.toml
··· 14 14 reqwest = { version = "0.12.5", features = ["blocking", "rustls-tls"], default-features = false } 15 15 once_cell = "1.17.1" 16 16 libc = "0.2.168" 17 + 18 + [dev-dependencies] 19 + mockito = "1.7.2"