Satellite tracking TUI using ratatui
2
fork

Configure Feed

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

mild variable name changes + change of reqwest to ureq

+182 -674
+163 -660
Cargo.lock
··· 39 39 ] 40 40 41 41 [[package]] 42 - name = "atomic-waker" 43 - version = "1.1.2" 44 - source = "registry+https://github.com/rust-lang/crates.io-index" 45 - checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" 46 - 47 - [[package]] 48 42 name = "autocfg" 49 43 version = "1.4.0" 50 44 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 62 56 "miniz_oxide", 63 57 "object", 64 58 "rustc-demangle", 65 - "windows-targets 0.52.6", 59 + "windows-targets", 66 60 ] 67 61 68 62 [[package]] ··· 149 143 ] 150 144 151 145 [[package]] 152 - name = "core-foundation" 153 - version = "0.9.4" 146 + name = "cookie" 147 + version = "0.18.1" 154 148 source = "registry+https://github.com/rust-lang/crates.io-index" 155 - checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" 149 + checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747" 156 150 dependencies = [ 157 - "core-foundation-sys", 158 - "libc", 151 + "percent-encoding", 152 + "time", 153 + "version_check", 154 + ] 155 + 156 + [[package]] 157 + name = "cookie_store" 158 + version = "0.21.1" 159 + source = "registry+https://github.com/rust-lang/crates.io-index" 160 + checksum = "2eac901828f88a5241ee0600950ab981148a18f2f756900ffba1b125ca6a3ef9" 161 + dependencies = [ 162 + "cookie", 163 + "document-features", 164 + "idna", 165 + "indexmap", 166 + "log", 167 + "serde", 168 + "serde_derive", 169 + "serde_json", 170 + "time", 171 + "url", 159 172 ] 160 173 161 174 [[package]] ··· 165 178 checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" 166 179 167 180 [[package]] 181 + name = "crc32fast" 182 + version = "1.4.2" 183 + source = "registry+https://github.com/rust-lang/crates.io-index" 184 + checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" 185 + dependencies = [ 186 + "cfg-if", 187 + ] 188 + 189 + [[package]] 168 190 name = "crossterm" 169 191 version = "0.28.1" 170 192 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 174 196 "crossterm_winapi", 175 197 "mio", 176 198 "parking_lot", 177 - "rustix 0.38.44", 199 + "rustix", 178 200 "signal-hook", 179 201 "signal-hook-mio", 180 202 "winapi", ··· 225 247 ] 226 248 227 249 [[package]] 250 + name = "deranged" 251 + version = "0.4.0" 252 + source = "registry+https://github.com/rust-lang/crates.io-index" 253 + checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e" 254 + dependencies = [ 255 + "powerfmt", 256 + ] 257 + 258 + [[package]] 228 259 name = "displaydoc" 229 260 version = "0.2.5" 230 261 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 236 267 ] 237 268 238 269 [[package]] 239 - name = "either" 240 - version = "1.15.0" 270 + name = "document-features" 271 + version = "0.2.11" 241 272 source = "registry+https://github.com/rust-lang/crates.io-index" 242 - checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" 273 + checksum = "95249b50c6c185bee49034bcb378a49dc2b5dff0be90ff6616d31d64febab05d" 274 + dependencies = [ 275 + "litrs", 276 + ] 243 277 244 278 [[package]] 245 - name = "encoding_rs" 246 - version = "0.8.35" 279 + name = "either" 280 + version = "1.15.0" 247 281 source = "registry+https://github.com/rust-lang/crates.io-index" 248 - checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" 249 - dependencies = [ 250 - "cfg-if", 251 - ] 282 + checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" 252 283 253 284 [[package]] 254 285 name = "equivalent" ··· 267 298 ] 268 299 269 300 [[package]] 270 - name = "fastrand" 271 - version = "2.3.0" 301 + name = "flate2" 302 + version = "1.1.1" 272 303 source = "registry+https://github.com/rust-lang/crates.io-index" 273 - checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" 304 + checksum = "7ced92e76e966ca2fd84c8f7aa01a4aea65b0eb6648d72f7c8f3e2764a67fece" 305 + dependencies = [ 306 + "crc32fast", 307 + "miniz_oxide", 308 + ] 274 309 275 310 [[package]] 276 311 name = "fnv" ··· 285 320 checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" 286 321 287 322 [[package]] 288 - name = "foreign-types" 289 - version = "0.3.2" 290 - source = "registry+https://github.com/rust-lang/crates.io-index" 291 - checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" 292 - dependencies = [ 293 - "foreign-types-shared", 294 - ] 295 - 296 - [[package]] 297 - name = "foreign-types-shared" 298 - version = "0.1.1" 299 - source = "registry+https://github.com/rust-lang/crates.io-index" 300 - checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" 301 - 302 - [[package]] 303 323 name = "form_urlencoded" 304 324 version = "1.2.1" 305 325 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 309 329 ] 310 330 311 331 [[package]] 312 - name = "futures-channel" 313 - version = "0.3.31" 314 - source = "registry+https://github.com/rust-lang/crates.io-index" 315 - checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" 316 - dependencies = [ 317 - "futures-core", 318 - ] 319 - 320 - [[package]] 321 - name = "futures-core" 322 - version = "0.3.31" 323 - source = "registry+https://github.com/rust-lang/crates.io-index" 324 - checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" 325 - 326 - [[package]] 327 - name = "futures-sink" 328 - version = "0.3.31" 329 - source = "registry+https://github.com/rust-lang/crates.io-index" 330 - checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" 331 - 332 - [[package]] 333 - name = "futures-task" 334 - version = "0.3.31" 335 - source = "registry+https://github.com/rust-lang/crates.io-index" 336 - checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" 337 - 338 - [[package]] 339 - name = "futures-util" 340 - version = "0.3.31" 341 - source = "registry+https://github.com/rust-lang/crates.io-index" 342 - checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" 343 - dependencies = [ 344 - "futures-core", 345 - "futures-task", 346 - "pin-project-lite", 347 - "pin-utils", 348 - ] 349 - 350 - [[package]] 351 332 name = "getrandom" 352 333 version = "0.2.16" 353 334 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 355 336 dependencies = [ 356 337 "cfg-if", 357 338 "libc", 358 - "wasi 0.11.0+wasi-snapshot-preview1", 359 - ] 360 - 361 - [[package]] 362 - name = "getrandom" 363 - version = "0.3.2" 364 - source = "registry+https://github.com/rust-lang/crates.io-index" 365 - checksum = "73fea8450eea4bac3940448fb7ae50d91f034f941199fcd9d909a5a07aa455f0" 366 - dependencies = [ 367 - "cfg-if", 368 - "libc", 369 - "r-efi", 370 - "wasi 0.14.2+wasi-0.2.4", 339 + "wasi", 371 340 ] 372 341 373 342 [[package]] ··· 377 346 checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" 378 347 379 348 [[package]] 380 - name = "h2" 381 - version = "0.4.9" 382 - source = "registry+https://github.com/rust-lang/crates.io-index" 383 - checksum = "75249d144030531f8dee69fe9cea04d3edf809a017ae445e2abdff6629e86633" 384 - dependencies = [ 385 - "atomic-waker", 386 - "bytes", 387 - "fnv", 388 - "futures-core", 389 - "futures-sink", 390 - "http", 391 - "indexmap", 392 - "slab", 393 - "tokio", 394 - "tokio-util", 395 - "tracing", 396 - ] 397 - 398 - [[package]] 399 349 name = "hashbrown" 400 350 version = "0.15.2" 401 351 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 424 374 ] 425 375 426 376 [[package]] 427 - name = "http-body" 428 - version = "1.0.1" 429 - source = "registry+https://github.com/rust-lang/crates.io-index" 430 - checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" 431 - dependencies = [ 432 - "bytes", 433 - "http", 434 - ] 435 - 436 - [[package]] 437 - name = "http-body-util" 438 - version = "0.1.3" 439 - source = "registry+https://github.com/rust-lang/crates.io-index" 440 - checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" 441 - dependencies = [ 442 - "bytes", 443 - "futures-core", 444 - "http", 445 - "http-body", 446 - "pin-project-lite", 447 - ] 448 - 449 - [[package]] 450 377 name = "httparse" 451 378 version = "1.10.1" 452 379 source = "registry+https://github.com/rust-lang/crates.io-index" 453 380 checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" 454 381 455 382 [[package]] 456 - name = "hyper" 457 - version = "1.6.0" 458 - source = "registry+https://github.com/rust-lang/crates.io-index" 459 - checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80" 460 - dependencies = [ 461 - "bytes", 462 - "futures-channel", 463 - "futures-util", 464 - "h2", 465 - "http", 466 - "http-body", 467 - "httparse", 468 - "itoa", 469 - "pin-project-lite", 470 - "smallvec", 471 - "tokio", 472 - "want", 473 - ] 474 - 475 - [[package]] 476 - name = "hyper-rustls" 477 - version = "0.27.5" 478 - source = "registry+https://github.com/rust-lang/crates.io-index" 479 - checksum = "2d191583f3da1305256f22463b9bb0471acad48a4e534a5218b9963e9c1f59b2" 480 - dependencies = [ 481 - "futures-util", 482 - "http", 483 - "hyper", 484 - "hyper-util", 485 - "rustls", 486 - "rustls-pki-types", 487 - "tokio", 488 - "tokio-rustls", 489 - "tower-service", 490 - ] 491 - 492 - [[package]] 493 - name = "hyper-tls" 494 - version = "0.6.0" 495 - source = "registry+https://github.com/rust-lang/crates.io-index" 496 - checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" 497 - dependencies = [ 498 - "bytes", 499 - "http-body-util", 500 - "hyper", 501 - "hyper-util", 502 - "native-tls", 503 - "tokio", 504 - "tokio-native-tls", 505 - "tower-service", 506 - ] 507 - 508 - [[package]] 509 - name = "hyper-util" 510 - version = "0.1.11" 511 - source = "registry+https://github.com/rust-lang/crates.io-index" 512 - checksum = "497bbc33a26fdd4af9ed9c70d63f61cf56a938375fbb32df34db9b1cd6d643f2" 513 - dependencies = [ 514 - "bytes", 515 - "futures-channel", 516 - "futures-util", 517 - "http", 518 - "http-body", 519 - "hyper", 520 - "libc", 521 - "pin-project-lite", 522 - "socket2", 523 - "tokio", 524 - "tower-service", 525 - "tracing", 526 - ] 527 - 528 - [[package]] 529 383 name = "iana-time-zone" 530 384 version = "0.1.63" 531 385 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 724 578 ] 725 579 726 580 [[package]] 727 - name = "ipnet" 728 - version = "2.11.0" 729 - source = "registry+https://github.com/rust-lang/crates.io-index" 730 - checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" 731 - 732 - [[package]] 733 581 name = "itertools" 734 582 version = "0.13.0" 735 583 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 773 621 checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" 774 622 775 623 [[package]] 776 - name = "linux-raw-sys" 777 - version = "0.9.4" 624 + name = "litemap" 625 + version = "0.7.5" 778 626 source = "registry+https://github.com/rust-lang/crates.io-index" 779 - checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" 627 + checksum = "23fb14cb19457329c82206317a5663005a4d404783dc74f4252769b0d5f42856" 780 628 781 629 [[package]] 782 - name = "litemap" 783 - version = "0.7.5" 630 + name = "litrs" 631 + version = "0.4.1" 784 632 source = "registry+https://github.com/rust-lang/crates.io-index" 785 - checksum = "23fb14cb19457329c82206317a5663005a4d404783dc74f4252769b0d5f42856" 633 + checksum = "b4ce301924b7887e9d637144fdade93f9dfff9b60981d4ac161db09720d39aa5" 786 634 787 635 [[package]] 788 636 name = "lock_api" ··· 816 664 checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" 817 665 818 666 [[package]] 819 - name = "mime" 820 - version = "0.3.17" 821 - source = "registry+https://github.com/rust-lang/crates.io-index" 822 - checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" 823 - 824 - [[package]] 825 667 name = "miniz_oxide" 826 668 version = "0.8.8" 827 669 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 838 680 dependencies = [ 839 681 "libc", 840 682 "log", 841 - "wasi 0.11.0+wasi-snapshot-preview1", 683 + "wasi", 842 684 "windows-sys 0.52.0", 843 685 ] 844 686 845 687 [[package]] 846 - name = "native-tls" 847 - version = "0.2.14" 848 - source = "registry+https://github.com/rust-lang/crates.io-index" 849 - checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e" 850 - dependencies = [ 851 - "libc", 852 - "log", 853 - "openssl", 854 - "openssl-probe", 855 - "openssl-sys", 856 - "schannel", 857 - "security-framework", 858 - "security-framework-sys", 859 - "tempfile", 860 - ] 861 - 862 - [[package]] 863 688 name = "nu-ansi-term" 864 689 version = "0.46.0" 865 690 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 868 693 "overload", 869 694 "winapi", 870 695 ] 696 + 697 + [[package]] 698 + name = "num-conv" 699 + version = "0.1.0" 700 + source = "registry+https://github.com/rust-lang/crates.io-index" 701 + checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" 871 702 872 703 [[package]] 873 704 name = "num-traits" ··· 892 723 version = "1.21.3" 893 724 source = "registry+https://github.com/rust-lang/crates.io-index" 894 725 checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" 895 - 896 - [[package]] 897 - name = "openssl" 898 - version = "0.10.72" 899 - source = "registry+https://github.com/rust-lang/crates.io-index" 900 - checksum = "fedfea7d58a1f73118430a55da6a286e7b044961736ce96a16a17068ea25e5da" 901 - dependencies = [ 902 - "bitflags", 903 - "cfg-if", 904 - "foreign-types", 905 - "libc", 906 - "once_cell", 907 - "openssl-macros", 908 - "openssl-sys", 909 - ] 910 - 911 - [[package]] 912 - name = "openssl-macros" 913 - version = "0.1.1" 914 - source = "registry+https://github.com/rust-lang/crates.io-index" 915 - checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" 916 - dependencies = [ 917 - "proc-macro2", 918 - "quote", 919 - "syn", 920 - ] 921 - 922 - [[package]] 923 - name = "openssl-probe" 924 - version = "0.1.6" 925 - source = "registry+https://github.com/rust-lang/crates.io-index" 926 - checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" 927 - 928 - [[package]] 929 - name = "openssl-sys" 930 - version = "0.9.107" 931 - source = "registry+https://github.com/rust-lang/crates.io-index" 932 - checksum = "8288979acd84749c744a9014b4382d42b8f7b2592847b5afb2ed29e5d16ede07" 933 - dependencies = [ 934 - "cc", 935 - "libc", 936 - "pkg-config", 937 - "vcpkg", 938 - ] 939 726 940 727 [[package]] 941 728 name = "overload" ··· 963 750 "libc", 964 751 "redox_syscall", 965 752 "smallvec", 966 - "windows-targets 0.52.6", 753 + "windows-targets", 967 754 ] 968 755 969 756 [[package]] ··· 985 772 checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" 986 773 987 774 [[package]] 988 - name = "pin-utils" 989 - version = "0.1.0" 775 + name = "powerfmt" 776 + version = "0.2.0" 990 777 source = "registry+https://github.com/rust-lang/crates.io-index" 991 - checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 992 - 993 - [[package]] 994 - name = "pkg-config" 995 - version = "0.3.32" 996 - source = "registry+https://github.com/rust-lang/crates.io-index" 997 - checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" 778 + checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" 998 779 999 780 [[package]] 1000 781 name = "proc-macro2" ··· 1013 794 dependencies = [ 1014 795 "proc-macro2", 1015 796 ] 1016 - 1017 - [[package]] 1018 - name = "r-efi" 1019 - version = "5.2.0" 1020 - source = "registry+https://github.com/rust-lang/crates.io-index" 1021 - checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" 1022 797 1023 798 [[package]] 1024 799 name = "ratatui" ··· 1051 826 ] 1052 827 1053 828 [[package]] 1054 - name = "reqwest" 1055 - version = "0.12.15" 1056 - source = "registry+https://github.com/rust-lang/crates.io-index" 1057 - checksum = "d19c46a6fdd48bc4dab94b6103fccc55d34c67cc0ad04653aad4ea2a07cd7bbb" 1058 - dependencies = [ 1059 - "base64", 1060 - "bytes", 1061 - "encoding_rs", 1062 - "futures-core", 1063 - "futures-util", 1064 - "h2", 1065 - "http", 1066 - "http-body", 1067 - "http-body-util", 1068 - "hyper", 1069 - "hyper-rustls", 1070 - "hyper-tls", 1071 - "hyper-util", 1072 - "ipnet", 1073 - "js-sys", 1074 - "log", 1075 - "mime", 1076 - "native-tls", 1077 - "once_cell", 1078 - "percent-encoding", 1079 - "pin-project-lite", 1080 - "rustls-pemfile", 1081 - "serde", 1082 - "serde_json", 1083 - "serde_urlencoded", 1084 - "sync_wrapper", 1085 - "system-configuration", 1086 - "tokio", 1087 - "tokio-native-tls", 1088 - "tower", 1089 - "tower-service", 1090 - "url", 1091 - "wasm-bindgen", 1092 - "wasm-bindgen-futures", 1093 - "web-sys", 1094 - "windows-registry", 1095 - ] 1096 - 1097 - [[package]] 1098 829 name = "ring" 1099 830 version = "0.17.14" 1100 831 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1102 833 dependencies = [ 1103 834 "cc", 1104 835 "cfg-if", 1105 - "getrandom 0.2.16", 836 + "getrandom", 1106 837 "libc", 1107 838 "untrusted", 1108 839 "windows-sys 0.52.0", ··· 1123 854 "bitflags", 1124 855 "errno", 1125 856 "libc", 1126 - "linux-raw-sys 0.4.15", 1127 - "windows-sys 0.59.0", 1128 - ] 1129 - 1130 - [[package]] 1131 - name = "rustix" 1132 - version = "1.0.5" 1133 - source = "registry+https://github.com/rust-lang/crates.io-index" 1134 - checksum = "d97817398dd4bb2e6da002002db259209759911da105da92bec29ccb12cf58bf" 1135 - dependencies = [ 1136 - "bitflags", 1137 - "errno", 1138 - "libc", 1139 - "linux-raw-sys 0.9.4", 857 + "linux-raw-sys", 1140 858 "windows-sys 0.59.0", 1141 859 ] 1142 860 ··· 1146 864 source = "registry+https://github.com/rust-lang/crates.io-index" 1147 865 checksum = "df51b5869f3a441595eac5e8ff14d486ff285f7b8c0df8770e49c3b56351f0f0" 1148 866 dependencies = [ 867 + "log", 1149 868 "once_cell", 869 + "ring", 1150 870 "rustls-pki-types", 1151 871 "rustls-webpki", 1152 872 "subtle", ··· 1197 917 dependencies = [ 1198 918 "chrono", 1199 919 "ratatui", 1200 - "reqwest", 1201 920 "serde", 1202 921 "sgp4", 1203 922 "tokio", 1204 923 "tracing", 1205 924 "tracing-error", 1206 925 "tracing-subscriber", 1207 - ] 1208 - 1209 - [[package]] 1210 - name = "schannel" 1211 - version = "0.1.27" 1212 - source = "registry+https://github.com/rust-lang/crates.io-index" 1213 - checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" 1214 - dependencies = [ 1215 - "windows-sys 0.59.0", 926 + "ureq", 1216 927 ] 1217 928 1218 929 [[package]] ··· 1222 933 checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 1223 934 1224 935 [[package]] 1225 - name = "security-framework" 1226 - version = "2.11.1" 1227 - source = "registry+https://github.com/rust-lang/crates.io-index" 1228 - checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" 1229 - dependencies = [ 1230 - "bitflags", 1231 - "core-foundation", 1232 - "core-foundation-sys", 1233 - "libc", 1234 - "security-framework-sys", 1235 - ] 1236 - 1237 - [[package]] 1238 - name = "security-framework-sys" 1239 - version = "2.14.0" 1240 - source = "registry+https://github.com/rust-lang/crates.io-index" 1241 - checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" 1242 - dependencies = [ 1243 - "core-foundation-sys", 1244 - "libc", 1245 - ] 1246 - 1247 - [[package]] 1248 936 name = "serde" 1249 937 version = "1.0.219" 1250 938 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1272 960 dependencies = [ 1273 961 "itoa", 1274 962 "memchr", 1275 - "ryu", 1276 - "serde", 1277 - ] 1278 - 1279 - [[package]] 1280 - name = "serde_urlencoded" 1281 - version = "0.7.1" 1282 - source = "registry+https://github.com/rust-lang/crates.io-index" 1283 - checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" 1284 - dependencies = [ 1285 - "form_urlencoded", 1286 - "itoa", 1287 963 "ryu", 1288 964 "serde", 1289 965 ] ··· 1345 1021 ] 1346 1022 1347 1023 [[package]] 1348 - name = "slab" 1349 - version = "0.4.9" 1350 - source = "registry+https://github.com/rust-lang/crates.io-index" 1351 - checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" 1352 - dependencies = [ 1353 - "autocfg", 1354 - ] 1355 - 1356 - [[package]] 1357 1024 name = "smallvec" 1358 1025 version = "1.15.0" 1359 1026 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1427 1094 ] 1428 1095 1429 1096 [[package]] 1430 - name = "sync_wrapper" 1431 - version = "1.0.2" 1432 - source = "registry+https://github.com/rust-lang/crates.io-index" 1433 - checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" 1434 - dependencies = [ 1435 - "futures-core", 1436 - ] 1437 - 1438 - [[package]] 1439 1097 name = "synstructure" 1440 1098 version = "0.13.1" 1441 1099 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1447 1105 ] 1448 1106 1449 1107 [[package]] 1450 - name = "system-configuration" 1451 - version = "0.6.1" 1108 + name = "thread_local" 1109 + version = "1.1.8" 1452 1110 source = "registry+https://github.com/rust-lang/crates.io-index" 1453 - checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" 1111 + checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" 1454 1112 dependencies = [ 1455 - "bitflags", 1456 - "core-foundation", 1457 - "system-configuration-sys", 1113 + "cfg-if", 1114 + "once_cell", 1458 1115 ] 1459 1116 1460 1117 [[package]] 1461 - name = "system-configuration-sys" 1462 - version = "0.6.0" 1118 + name = "time" 1119 + version = "0.3.41" 1463 1120 source = "registry+https://github.com/rust-lang/crates.io-index" 1464 - checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" 1121 + checksum = "8a7619e19bc266e0f9c5e6686659d394bc57973859340060a69221e57dbc0c40" 1465 1122 dependencies = [ 1466 - "core-foundation-sys", 1467 - "libc", 1123 + "deranged", 1124 + "itoa", 1125 + "num-conv", 1126 + "powerfmt", 1127 + "serde", 1128 + "time-core", 1129 + "time-macros", 1468 1130 ] 1469 1131 1470 1132 [[package]] 1471 - name = "tempfile" 1472 - version = "3.19.1" 1133 + name = "time-core" 1134 + version = "0.1.4" 1473 1135 source = "registry+https://github.com/rust-lang/crates.io-index" 1474 - checksum = "7437ac7763b9b123ccf33c338a5cc1bac6f69b45a136c19bdd8a65e3916435bf" 1475 - dependencies = [ 1476 - "fastrand", 1477 - "getrandom 0.3.2", 1478 - "once_cell", 1479 - "rustix 1.0.5", 1480 - "windows-sys 0.59.0", 1481 - ] 1136 + checksum = "c9e9a38711f559d9e3ce1cdb06dd7c5b8ea546bc90052da6d06bb76da74bb07c" 1482 1137 1483 1138 [[package]] 1484 - name = "thread_local" 1485 - version = "1.1.8" 1139 + name = "time-macros" 1140 + version = "0.2.22" 1486 1141 source = "registry+https://github.com/rust-lang/crates.io-index" 1487 - checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" 1142 + checksum = "3526739392ec93fd8b359c8e98514cb3e8e021beb4e5f597b00a0221f8ed8a49" 1488 1143 dependencies = [ 1489 - "cfg-if", 1490 - "once_cell", 1144 + "num-conv", 1145 + "time-core", 1491 1146 ] 1492 1147 1493 1148 [[package]] ··· 1530 1185 ] 1531 1186 1532 1187 [[package]] 1533 - name = "tokio-native-tls" 1534 - version = "0.3.1" 1535 - source = "registry+https://github.com/rust-lang/crates.io-index" 1536 - checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" 1537 - dependencies = [ 1538 - "native-tls", 1539 - "tokio", 1540 - ] 1541 - 1542 - [[package]] 1543 - name = "tokio-rustls" 1544 - version = "0.26.2" 1545 - source = "registry+https://github.com/rust-lang/crates.io-index" 1546 - checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b" 1547 - dependencies = [ 1548 - "rustls", 1549 - "tokio", 1550 - ] 1551 - 1552 - [[package]] 1553 - name = "tokio-util" 1554 - version = "0.7.15" 1555 - source = "registry+https://github.com/rust-lang/crates.io-index" 1556 - checksum = "66a539a9ad6d5d281510d5bd368c973d636c02dbf8a67300bfb6b950696ad7df" 1557 - dependencies = [ 1558 - "bytes", 1559 - "futures-core", 1560 - "futures-sink", 1561 - "pin-project-lite", 1562 - "tokio", 1563 - ] 1564 - 1565 - [[package]] 1566 - name = "tower" 1567 - version = "0.5.2" 1568 - source = "registry+https://github.com/rust-lang/crates.io-index" 1569 - checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" 1570 - dependencies = [ 1571 - "futures-core", 1572 - "futures-util", 1573 - "pin-project-lite", 1574 - "sync_wrapper", 1575 - "tokio", 1576 - "tower-layer", 1577 - "tower-service", 1578 - ] 1579 - 1580 - [[package]] 1581 - name = "tower-layer" 1582 - version = "0.3.3" 1583 - source = "registry+https://github.com/rust-lang/crates.io-index" 1584 - checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" 1585 - 1586 - [[package]] 1587 - name = "tower-service" 1588 - version = "0.3.3" 1589 - source = "registry+https://github.com/rust-lang/crates.io-index" 1590 - checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" 1591 - 1592 - [[package]] 1593 1188 name = "tracing" 1594 1189 version = "0.1.41" 1595 1190 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1657 1252 ] 1658 1253 1659 1254 [[package]] 1660 - name = "try-lock" 1661 - version = "0.2.5" 1662 - source = "registry+https://github.com/rust-lang/crates.io-index" 1663 - checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" 1664 - 1665 - [[package]] 1666 1255 name = "unicode-ident" 1667 1256 version = "1.0.18" 1668 1257 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1704 1293 checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" 1705 1294 1706 1295 [[package]] 1296 + name = "ureq" 1297 + version = "3.0.11" 1298 + source = "registry+https://github.com/rust-lang/crates.io-index" 1299 + checksum = "b7a3e9af6113ecd57b8c63d3cd76a385b2e3881365f1f489e54f49801d0c83ea" 1300 + dependencies = [ 1301 + "base64", 1302 + "cookie_store", 1303 + "flate2", 1304 + "log", 1305 + "percent-encoding", 1306 + "rustls", 1307 + "rustls-pemfile", 1308 + "rustls-pki-types", 1309 + "serde", 1310 + "serde_json", 1311 + "ureq-proto", 1312 + "utf-8", 1313 + "webpki-roots", 1314 + ] 1315 + 1316 + [[package]] 1317 + name = "ureq-proto" 1318 + version = "0.4.1" 1319 + source = "registry+https://github.com/rust-lang/crates.io-index" 1320 + checksum = "fadf18427d33828c311234884b7ba2afb57143e6e7e69fda7ee883b624661e36" 1321 + dependencies = [ 1322 + "base64", 1323 + "http", 1324 + "httparse", 1325 + "log", 1326 + ] 1327 + 1328 + [[package]] 1707 1329 name = "url" 1708 1330 version = "2.5.4" 1709 1331 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1715 1337 ] 1716 1338 1717 1339 [[package]] 1340 + name = "utf-8" 1341 + version = "0.7.6" 1342 + source = "registry+https://github.com/rust-lang/crates.io-index" 1343 + checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" 1344 + 1345 + [[package]] 1718 1346 name = "utf16_iter" 1719 1347 version = "1.0.5" 1720 1348 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1733 1361 checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" 1734 1362 1735 1363 [[package]] 1736 - name = "vcpkg" 1737 - version = "0.2.15" 1364 + name = "version_check" 1365 + version = "0.9.5" 1738 1366 source = "registry+https://github.com/rust-lang/crates.io-index" 1739 - checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" 1740 - 1741 - [[package]] 1742 - name = "want" 1743 - version = "0.3.1" 1744 - source = "registry+https://github.com/rust-lang/crates.io-index" 1745 - checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" 1746 - dependencies = [ 1747 - "try-lock", 1748 - ] 1367 + checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" 1749 1368 1750 1369 [[package]] 1751 1370 name = "wasi" ··· 1754 1373 checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 1755 1374 1756 1375 [[package]] 1757 - name = "wasi" 1758 - version = "0.14.2+wasi-0.2.4" 1759 - source = "registry+https://github.com/rust-lang/crates.io-index" 1760 - checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" 1761 - dependencies = [ 1762 - "wit-bindgen-rt", 1763 - ] 1764 - 1765 - [[package]] 1766 1376 name = "wasm-bindgen" 1767 1377 version = "0.2.100" 1768 1378 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1789 1399 ] 1790 1400 1791 1401 [[package]] 1792 - name = "wasm-bindgen-futures" 1793 - version = "0.4.50" 1794 - source = "registry+https://github.com/rust-lang/crates.io-index" 1795 - checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" 1796 - dependencies = [ 1797 - "cfg-if", 1798 - "js-sys", 1799 - "once_cell", 1800 - "wasm-bindgen", 1801 - "web-sys", 1802 - ] 1803 - 1804 - [[package]] 1805 1402 name = "wasm-bindgen-macro" 1806 1403 version = "0.2.100" 1807 1404 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1834 1431 ] 1835 1432 1836 1433 [[package]] 1837 - name = "web-sys" 1838 - version = "0.3.77" 1434 + name = "webpki-roots" 1435 + version = "0.26.9" 1839 1436 source = "registry+https://github.com/rust-lang/crates.io-index" 1840 - checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" 1437 + checksum = "29aad86cec885cafd03e8305fd727c418e970a521322c91688414d5b8efba16b" 1841 1438 dependencies = [ 1842 - "js-sys", 1843 - "wasm-bindgen", 1439 + "rustls-pki-types", 1844 1440 ] 1845 1441 1846 1442 [[package]] ··· 1875 1471 "windows-interface", 1876 1472 "windows-link", 1877 1473 "windows-result", 1878 - "windows-strings 0.4.0", 1474 + "windows-strings", 1879 1475 ] 1880 1476 1881 1477 [[package]] ··· 1905 1501 version = "0.1.1" 1906 1502 source = "registry+https://github.com/rust-lang/crates.io-index" 1907 1503 checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38" 1908 - 1909 - [[package]] 1910 - name = "windows-registry" 1911 - version = "0.4.0" 1912 - source = "registry+https://github.com/rust-lang/crates.io-index" 1913 - checksum = "4286ad90ddb45071efd1a66dfa43eb02dd0dfbae1545ad6cc3c51cf34d7e8ba3" 1914 - dependencies = [ 1915 - "windows-result", 1916 - "windows-strings 0.3.1", 1917 - "windows-targets 0.53.0", 1918 - ] 1919 1504 1920 1505 [[package]] 1921 1506 name = "windows-result" ··· 1928 1513 1929 1514 [[package]] 1930 1515 name = "windows-strings" 1931 - version = "0.3.1" 1932 - source = "registry+https://github.com/rust-lang/crates.io-index" 1933 - checksum = "87fa48cc5d406560701792be122a10132491cff9d0aeb23583cc2dcafc847319" 1934 - dependencies = [ 1935 - "windows-link", 1936 - ] 1937 - 1938 - [[package]] 1939 - name = "windows-strings" 1940 1516 version = "0.4.0" 1941 1517 source = "registry+https://github.com/rust-lang/crates.io-index" 1942 1518 checksum = "7a2ba9642430ee452d5a7aa78d72907ebe8cfda358e8cb7918a2050581322f97" ··· 1950 1526 source = "registry+https://github.com/rust-lang/crates.io-index" 1951 1527 checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 1952 1528 dependencies = [ 1953 - "windows-targets 0.52.6", 1529 + "windows-targets", 1954 1530 ] 1955 1531 1956 1532 [[package]] ··· 1959 1535 source = "registry+https://github.com/rust-lang/crates.io-index" 1960 1536 checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 1961 1537 dependencies = [ 1962 - "windows-targets 0.52.6", 1538 + "windows-targets", 1963 1539 ] 1964 1540 1965 1541 [[package]] ··· 1968 1544 source = "registry+https://github.com/rust-lang/crates.io-index" 1969 1545 checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 1970 1546 dependencies = [ 1971 - "windows_aarch64_gnullvm 0.52.6", 1972 - "windows_aarch64_msvc 0.52.6", 1973 - "windows_i686_gnu 0.52.6", 1974 - "windows_i686_gnullvm 0.52.6", 1975 - "windows_i686_msvc 0.52.6", 1976 - "windows_x86_64_gnu 0.52.6", 1977 - "windows_x86_64_gnullvm 0.52.6", 1978 - "windows_x86_64_msvc 0.52.6", 1979 - ] 1980 - 1981 - [[package]] 1982 - name = "windows-targets" 1983 - version = "0.53.0" 1984 - source = "registry+https://github.com/rust-lang/crates.io-index" 1985 - checksum = "b1e4c7e8ceaaf9cb7d7507c974735728ab453b67ef8f18febdd7c11fe59dca8b" 1986 - dependencies = [ 1987 - "windows_aarch64_gnullvm 0.53.0", 1988 - "windows_aarch64_msvc 0.53.0", 1989 - "windows_i686_gnu 0.53.0", 1990 - "windows_i686_gnullvm 0.53.0", 1991 - "windows_i686_msvc 0.53.0", 1992 - "windows_x86_64_gnu 0.53.0", 1993 - "windows_x86_64_gnullvm 0.53.0", 1994 - "windows_x86_64_msvc 0.53.0", 1547 + "windows_aarch64_gnullvm", 1548 + "windows_aarch64_msvc", 1549 + "windows_i686_gnu", 1550 + "windows_i686_gnullvm", 1551 + "windows_i686_msvc", 1552 + "windows_x86_64_gnu", 1553 + "windows_x86_64_gnullvm", 1554 + "windows_x86_64_msvc", 1995 1555 ] 1996 1556 1997 1557 [[package]] ··· 1999 1559 version = "0.52.6" 2000 1560 source = "registry+https://github.com/rust-lang/crates.io-index" 2001 1561 checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 2002 - 2003 - [[package]] 2004 - name = "windows_aarch64_gnullvm" 2005 - version = "0.53.0" 2006 - source = "registry+https://github.com/rust-lang/crates.io-index" 2007 - checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" 2008 1562 2009 1563 [[package]] 2010 1564 name = "windows_aarch64_msvc" ··· 2013 1567 checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 2014 1568 2015 1569 [[package]] 2016 - name = "windows_aarch64_msvc" 2017 - version = "0.53.0" 2018 - source = "registry+https://github.com/rust-lang/crates.io-index" 2019 - checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" 2020 - 2021 - [[package]] 2022 1570 name = "windows_i686_gnu" 2023 1571 version = "0.52.6" 2024 1572 source = "registry+https://github.com/rust-lang/crates.io-index" 2025 1573 checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 2026 1574 2027 1575 [[package]] 2028 - name = "windows_i686_gnu" 2029 - version = "0.53.0" 2030 - source = "registry+https://github.com/rust-lang/crates.io-index" 2031 - checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" 2032 - 2033 - [[package]] 2034 1576 name = "windows_i686_gnullvm" 2035 1577 version = "0.52.6" 2036 1578 source = "registry+https://github.com/rust-lang/crates.io-index" 2037 1579 checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 2038 1580 2039 1581 [[package]] 2040 - name = "windows_i686_gnullvm" 2041 - version = "0.53.0" 2042 - source = "registry+https://github.com/rust-lang/crates.io-index" 2043 - checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" 2044 - 2045 - [[package]] 2046 1582 name = "windows_i686_msvc" 2047 1583 version = "0.52.6" 2048 1584 source = "registry+https://github.com/rust-lang/crates.io-index" 2049 1585 checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 2050 1586 2051 1587 [[package]] 2052 - name = "windows_i686_msvc" 2053 - version = "0.53.0" 2054 - source = "registry+https://github.com/rust-lang/crates.io-index" 2055 - checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" 2056 - 2057 - [[package]] 2058 1588 name = "windows_x86_64_gnu" 2059 1589 version = "0.52.6" 2060 1590 source = "registry+https://github.com/rust-lang/crates.io-index" 2061 1591 checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 2062 1592 2063 1593 [[package]] 2064 - name = "windows_x86_64_gnu" 2065 - version = "0.53.0" 2066 - source = "registry+https://github.com/rust-lang/crates.io-index" 2067 - checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" 2068 - 2069 - [[package]] 2070 1594 name = "windows_x86_64_gnullvm" 2071 1595 version = "0.52.6" 2072 1596 source = "registry+https://github.com/rust-lang/crates.io-index" 2073 1597 checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 2074 1598 2075 1599 [[package]] 2076 - name = "windows_x86_64_gnullvm" 2077 - version = "0.53.0" 2078 - source = "registry+https://github.com/rust-lang/crates.io-index" 2079 - checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" 2080 - 2081 - [[package]] 2082 1600 name = "windows_x86_64_msvc" 2083 1601 version = "0.52.6" 2084 1602 source = "registry+https://github.com/rust-lang/crates.io-index" 2085 1603 checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 2086 - 2087 - [[package]] 2088 - name = "windows_x86_64_msvc" 2089 - version = "0.53.0" 2090 - source = "registry+https://github.com/rust-lang/crates.io-index" 2091 - checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" 2092 - 2093 - [[package]] 2094 - name = "wit-bindgen-rt" 2095 - version = "0.39.0" 2096 - source = "registry+https://github.com/rust-lang/crates.io-index" 2097 - checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" 2098 - dependencies = [ 2099 - "bitflags", 2100 - ] 2101 1604 2102 1605 [[package]] 2103 1606 name = "write16"
+1 -1
Cargo.toml
··· 6 6 [dependencies] 7 7 chrono = "0.4.40" 8 8 ratatui = "0.29.0" 9 - reqwest = { version = "0.12.15", features = ["json"] } 10 9 serde = { version = "1.0.219", features = ["derive"] } 11 10 sgp4 = "2.2.0" 12 11 tokio = { version = "1.44.2", features = ["full"] } 12 + ureq = { version = "3.0.11", features = ["json"] } 13 13 14 14 tracing = {version = "0.1.41", optional = true} 15 15 tracing-error = {version="0.2.1",optional = true}
+3 -2
src/location.rs
··· 12 12 13 13 //to be deleted dont think i need it much longer? 14 14 pub async fn get_celerak_data() -> (Option<sgp4::Constants>,Option<DateTime<Utc>>) { 15 - let resp = reqwest::get("https://celestrak.org/NORAD/elements/gp.php?GROUP=stations&FORMAT=json").await.unwrap(); 15 + let mut resp = ureq::get("https://celestrak.org/NORAD/elements/gp.php?GROUP=stations&FORMAT=json").call().unwrap(); 16 + //blocking, and thats okey. 16 17 17 - let element_vec:Vec<sgp4::Elements> = resp.json().await.unwrap(); 18 + let element_vec:Vec<sgp4::Elements> = resp.body_mut().read_json().unwrap(); 18 19 19 20 20 21 let epoch = &element_vec[0].datetime.and_utc();
+15 -11
src/main.rs
··· 24 24 #[tokio::main] 25 25 async fn main() -> Result<()> { 26 26 #[cfg(feature = "logging")] 27 - let _ = logging::initialize_logging(); 27 + let _ = { logging::initialize_logging() }; 28 28 enable_raw_mode()?; 29 29 let mut stderr = io::stderr(); // This is a special case. Normally using stdout is fine 30 30 execute!(stderr, EnterAlternateScreen, EnableMouseCapture)?; ··· 34 34 // create app and run it 35 35 36 36 let app = Arc::new(Mutex::new(App::new())); 37 - let location_shared_app = Arc::clone(&app); 38 - let location_shared_app2 = Arc::clone(&app); 37 + let constant_obtain_shared_app = Arc::clone(&app); 38 + let location_update_shared_app = Arc::clone(&app); 39 39 let mut runtime_shared_app = Arc::clone(&app); 40 40 41 41 42 42 let get_constant = tokio::task::spawn(async move { 43 - location_shared_app.lock().unwrap().getting_location = true; 43 + constant_obtain_shared_app.lock().unwrap().getting_location = true; 44 44 let constant = location::get_celerak_data().await; 45 45 if let (Some(cons),Some(epoch)) = constant { 46 - location_shared_app.lock().unwrap().iss_constant = Some(cons); 47 - location_shared_app.lock().unwrap().iss_constant_epoch = Some(epoch); 46 + constant_obtain_shared_app.lock().unwrap().iss_constant = Some(cons); 47 + constant_obtain_shared_app.lock().unwrap().iss_constant_epoch = Some(epoch); 48 48 } 49 - location_shared_app.lock().unwrap().getting_location = false; 49 + constant_obtain_shared_app.lock().unwrap().getting_location = false; 50 50 }); 51 51 52 52 let _ = get_constant; 53 53 54 54 55 55 56 + 57 + 58 + 59 + 56 60 let forever = tokio::task::spawn(async move { 57 61 let mut interval = tokio::time::interval(Duration::from_secs(2)); 58 62 59 63 loop { 60 64 interval.tick().await; 61 - if location_shared_app2.lock().unwrap().iss_constant.is_some() { 65 + if location_update_shared_app.lock().unwrap().iss_constant.is_some() { 62 66 let now = Utc::now(); 63 67 let d_since_j2000 = julian_years_since_j2000(&now.naive_utc()) * 365.25; 64 68 let rad_diff_earth_rotation = location::earth_rotation_angle(d_since_j2000); 65 - let time_diff = now - location_shared_app2.lock().unwrap().iss_constant_epoch.unwrap(); 66 - let prediction = location_shared_app2.lock().unwrap().iss_constant.as_ref().unwrap() 69 + let time_diff = now - location_update_shared_app.lock().unwrap().iss_constant_epoch.unwrap(); 70 + let prediction = location_update_shared_app.lock().unwrap().iss_constant.as_ref().unwrap() 67 71 .propagate(MinutesSinceEpoch(time_diff.num_seconds() as f64 / 60.0)).unwrap(); 68 72 69 73 let pred_spherical = location::polar_loc_transformer(prediction.position); ··· 74 78 } else { 75 79 pred_spherical[0]-(rad_diff_earth_rotation as f32)*180.0/PI 76 80 }; 77 - location_shared_app2.lock().unwrap().iss_location = Some(location::FLocation { 81 + location_update_shared_app.lock().unwrap().iss_location = Some(location::FLocation { 78 82 79 83 latitude: pred_spherical[1], 80 84 longitude: long_value