diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..1c9909f --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +target/ +test_resources/ diff --git a/Cargo.lock b/Cargo.lock index 97021b6..f6cc6f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,3192 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "addr2line" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" +dependencies = [ + "gimli", +] + +[[package]] +name = "adler2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" + +[[package]] +name = "aho-corasick" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" +dependencies = [ + "memchr", +] + +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anstream" +version = "0.6.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" + +[[package]] +name = "anstyle-parse" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" +dependencies = [ + "windows-sys 0.59.0", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125" +dependencies = [ + "anstyle", + "windows-sys 0.59.0", +] + +[[package]] +name = "anyhow" +version = "1.0.94" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1fd03a028ef38ba2276dce7e33fcd6369c158a1bca17946c4b1b701891c1ff7" + +[[package]] +name = "arc-swap" +version = "1.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69f7f8c3906b62b754cd5326047894316021dcfe5a194c8ea52bdd94934a3457" + +[[package]] +name = "ascii-canvas" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8824ecca2e851cec16968d54a01dd372ef8f95b244fb84b84e70128be347c3c6" +dependencies = [ + "term", +] + +[[package]] +name = "assert-json-diff" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47e4f2b81832e72834d7518d8487a0396a28cc408186a2e8854c0f98011faf12" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "async-attributes" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3203e79f4dd9bdda415ed03cf14dae5a2bf775c683a00f94e9cd1faf0f596e5" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "async-channel" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35" +dependencies = [ + "concurrent-queue", + "event-listener 2.5.3", + "futures-core", +] + +[[package]] +name = "async-channel" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89b47800b0be77592da0afd425cc03468052844aff33b84e33cc696f64e77b6a" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30ca9a001c1e8ba5149f91a74362376cc6bc5b919d92d988668657bd570bdcec" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "slab", +] + +[[package]] +name = "async-global-executor" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05b1b633a2115cd122d73b955eadd9916c18c8f510ec9cd1686404c60ad1c29c" +dependencies = [ + "async-channel 2.3.1", + "async-executor", + "async-io", + "async-lock", + "blocking", + "futures-lite", + "once_cell", +] + +[[package]] +name = "async-io" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a2b323ccce0a1d90b449fd71f2a06ca7faa7c54c2751f06c9bd851fc061059" +dependencies = [ + "async-lock", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix", + "slab", + "tracing", + "windows-sys 0.59.0", +] + +[[package]] +name = "async-lock" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18" +dependencies = [ + "event-listener 5.3.1", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-object-pool" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "333c456b97c3f2d50604e8b2624253b7f787208cb72eb75e64b0ad11b221652c" +dependencies = [ + "async-std", +] + +[[package]] +name = "async-process" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63255f1dc2381611000436537bbedfe83183faa303a5a0edaf191edef06526bb" +dependencies = [ + "async-channel 2.3.1", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener 5.3.1", + "futures-lite", + "rustix", + "tracing", +] + +[[package]] +name = "async-signal" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "637e00349800c0bdf8bfc21ebbc0b6524abea702b0da4168ac00d070d0c0b9f3" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix", + "signal-hook-registry", + "slab", + "windows-sys 0.59.0", +] + +[[package]] +name = "async-std" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c634475f29802fde2b8f0b505b1bd00dfe4df7d4a000f0b36f7671197d5c3615" +dependencies = [ + "async-attributes", + "async-channel 1.9.0", + "async-global-executor", + "async-io", + "async-lock", + "async-process", + "crossbeam-utils", + "futures-channel", + "futures-core", + "futures-io", + "futures-lite", + "gloo-timers", + "kv-log-macro", + "log", + "memchr", + "once_cell", + "pin-project-lite", + "pin-utils", + "slab", + "wasm-bindgen-futures", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.83" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" + +[[package]] +name = "backtrace" +version = "0.3.74" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" +dependencies = [ + "addr2line", + "cfg-if", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", + "windows-targets", +] + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "basic-cookies" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67bd8fd42c16bdb08688243dc5f0cc117a3ca9efeeaba3a345a18a6159ad96f7" +dependencies = [ + "lalrpop", + "lalrpop-util", + "regex", +] + +[[package]] +name = "bit-set" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" + +[[package]] +name = "bitflags" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "blocking" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "703f41c54fc768e63e091340b424302bb1c29ef4aa0c7f10fe849dfb114d29ea" +dependencies = [ + "async-channel 2.3.1", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "bumpalo" +version = "3.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" + +[[package]] +name = "cc" +version = "1.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9157bbaa6b165880c27a4293a474c91cdcf265cc68cc829bf10be0964a391caf" +dependencies = [ + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "chrono" +version = "0.4.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" +dependencies = [ + "android-tzdata", + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-targets", +] + +[[package]] +name = "colorchoice" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b55271e5c8c478ad3f38ad24ef34923091e0548492a266d19b3c0b4d82574c63" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "cpufeatures" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16b80225097f2e5ae4e7179dd2266824648f3e2f49d9134d584b76389d31c4c3" +dependencies = [ + "libc", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" + +[[package]] +name = "crunchy" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" + +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "deranged" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" +dependencies = [ + "powerfmt", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", + "subtle", +] + +[[package]] +name = "dirs-next" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" +dependencies = [ + "cfg-if", + "dirs-sys-next", +] + +[[package]] +name = "dirs-sys-next" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" +dependencies = [ + "libc", + "redox_users", + "winapi", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "either" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" + +[[package]] +name = "ena" +version = "0.14.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d248bdd43ce613d87415282f69b9bb99d947d290b10962dd6c56233312c2ad5" +dependencies = [ + "log", +] + +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "env_filter" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f2c92ceda6ceec50f43169f9ee8424fe2db276791afde7b2cd8bc084cb376ab" +dependencies = [ + "log", + "regex", +] + +[[package]] +name = "env_logger" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580" +dependencies = [ + "humantime", + "is-terminal", + "log", + "regex", + "termcolor", +] + +[[package]] +name = "env_logger" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13fa619b91fb2381732789fc5de83b45675e882f66623b7d8cb4f643017018d" +dependencies = [ + "anstream", + "anstyle", + "env_filter", + "humantime", + "log", +] + +[[package]] +name = "envy" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f47e0157f2cb54f5ae1bd371b30a2ae4311e1c028f575cd4e81de7353215965" +dependencies = [ + "serde", +] + +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + +[[package]] +name = "errno" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" +dependencies = [ + "libc", + "windows-sys 0.59.0", +] + +[[package]] +name = "event-listener" +version = "2.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" + +[[package]] +name = "event-listener" +version = "5.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c3e4e0dd3673c1139bf041f3008816d9cf2946bbfac2945c09e523b8d7b05b2" +dependencies = [ + "event-listener 5.3.1", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" + +[[package]] +name = "fixedbitset" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" + +[[package]] +name = "fmt-cmp" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51f58afb8e10a573cb30dc65381cc266892c84215b17f6d29af59e11d70f383f" + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "form_urlencoded" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" + +[[package]] +name = "futures-executor" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" + +[[package]] +name = "futures-lite" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cef40d21ae2c515b51041df9ed313ed21e572df340ea58a922a0aefe7e8891a1" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "futures-sink" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" + +[[package]] +name = "futures-task" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" + +[[package]] +name = "futures-util" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "slab", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi", + "wasm-bindgen", +] + +[[package]] +name = "gimli" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" + +[[package]] +name = "gloo-timers" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbb143cf96099802033e0d4f4963b19fd2e0b728bcf076cd9cf7f6634f092994" +dependencies = [ + "futures-channel", + "futures-core", + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "h2" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http 1.2.0", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "hashbrown" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hermit-abi" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc" + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest", +] + +[[package]] +name = "http" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "http" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "http-body" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" +dependencies = [ + "bytes", + "http 0.2.12", + "pin-project-lite", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http 1.2.0", +] + +[[package]] +name = "http-body-util" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" +dependencies = [ + "bytes", + "futures-util", + "http 1.2.0", + "http-body 1.0.1", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "httpmock" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08ec9586ee0910472dec1a1f0f8acf52f0fdde93aea74d70d4a3107b4be0fd5b" +dependencies = [ + "assert-json-diff", + "async-object-pool", + "async-std", + "async-trait", + "base64 0.21.7", + "basic-cookies", + "crossbeam-utils", + "env_logger 0.10.2", + "form_urlencoded", + "futures-util", + "hyper 0.14.31", + "lazy_static", + "levenshtein", + "log", + "regex", + "serde", + "serde_json", + "serde_regex", + "similar", + "tokio", + "url", +] + +[[package]] +name = "humantime" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" + +[[package]] +name = "hyper" +version = "0.14.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c08302e8fa335b151b788c775ff56e7a03ae64ff85c548ee820fecb70356e85" +dependencies = [ + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "http 0.2.12", + "http-body 0.4.6", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", + "want", +] + +[[package]] +name = "hyper" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97818827ef4f364230e16705d4706e2897df2bb60617d6ca15d598025a3c481f" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "h2", + "http 1.2.0", + "http-body 1.0.1", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08afdbb5c31130e3034af566421053ab03787c640246a446327f550d11bcb333" +dependencies = [ + "futures-util", + "http 1.2.0", + "hyper 1.5.1", + "hyper-util", + "log", + "rustls", + "rustls-native-certs", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "tower-service", +] + +[[package]] +name = "hyper-timeout" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0" +dependencies = [ + "hyper 1.5.1", + "hyper-util", + "pin-project-lite", + "tokio", + "tower-service", +] + +[[package]] +name = "hyper-tls" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" +dependencies = [ + "bytes", + "http-body-util", + "hyper 1.5.1", + "hyper-util", + "native-tls", + "tokio", + "tokio-native-tls", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "http 1.2.0", + "http-body 1.0.1", + "hyper 1.5.1", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.61" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "icu_collections" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locid" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locid_transform" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locid_transform_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" + +[[package]] +name = "icu_normalizer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "idna" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" +dependencies = [ + "equivalent", + "hashbrown", +] + +[[package]] +name = "indoc" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" + +[[package]] +name = "ipnet" +version = "2.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" + +[[package]] +name = "iri-string" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc0f0a572e8ffe56e2ff4f769f32ffe919282c3916799f8b68688b6030063bea" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "is-terminal" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "261f68e344040fbd0edea105bef17c66edf46f984ddb1115b775ce31be948f4b" +dependencies = [ + "hermit-abi", + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" + +[[package]] +name = "itertools" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" + +[[package]] +name = "js-sys" +version = "0.3.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "jsonwebtoken" +version = "9.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9ae10193d25051e74945f1ea2d0b42e03cc3b890f7e4cc5faa44997d808193f" +dependencies = [ + "base64 0.21.7", + "js-sys", + "pem", + "ring", + "serde", + "serde_json", + "simple_asn1", +] + +[[package]] +name = "kv-log-macro" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f" +dependencies = [ + "log", +] + +[[package]] +name = "lalrpop" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55cb077ad656299f160924eb2912aa147d7339ea7d69e1b5517326fdcec3c1ca" +dependencies = [ + "ascii-canvas", + "bit-set", + "ena", + "itertools", + "lalrpop-util", + "petgraph", + "pico-args", + "regex", + "regex-syntax", + "string_cache", + "term", + "tiny-keccak", + "unicode-xid", + "walkdir", +] + +[[package]] +name = "lalrpop-util" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "507460a910eb7b32ee961886ff48539633b788a36b65692b95f225b844c82553" +dependencies = [ + "regex-automata", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "levenshtein" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db13adb97ab515a3691f56e4dbab09283d0b86cb45abd991d8634a9d6f501760" + +[[package]] +name = "libc" +version = "0.2.168" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aaeb2981e0606ca11d79718f8bb01164f1d6ed75080182d3abf017e6d244b6d" + +[[package]] +name = "libredox" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" +dependencies = [ + "bitflags", + "libc", +] + +[[package]] +name = "linux-raw-sys" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" + +[[package]] +name = "litemap" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" + +[[package]] +name = "lock_api" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" +dependencies = [ + "autocfg", + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" +dependencies = [ + "value-bag", +] + +[[package]] +name = "memchr" +version = "2.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "miniz_oxide" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1" +dependencies = [ + "adler2", +] + +[[package]] +name = "mio" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.52.0", +] + +[[package]] +name = "native-tls" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8614eb2c83d59d1c8cc974dd3f920198647674a0a035e1af1fa58707e317466" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework 2.11.1", + "security-framework-sys", + "tempfile", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-conv" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "oauth-credentials" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d6f9dee4cc95bd06fe0c1225a2b5680e0611627e1643ce78eb76daddd8dbccc" + +[[package]] +name = "oauth1-request" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "498447ee9c67221e1a558d5d49f63594c6ccaa2cdd437abec55c92e8c61887bc" +dependencies = [ + "base64 0.22.1", + "cfg-if", + "digest", + "fmt-cmp", + "hmac", + "oauth-credentials", + "oauth1-request-derive", + "percent-encoding", + "rand", + "sha1", +] + +[[package]] +name = "oauth1-request-derive" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7dfe4c99deecc1a12b90d134256879897827028925bce89cea2f51469599dd91" +dependencies = [ + "proc-macro-crate", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "object" +version = "0.36.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" +dependencies = [ + "memchr", +] + +[[package]] +name = "octocrab" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b97f949a7cb04608441c2ddb28e15a377e8b5142c2d1835ad2686d434de8558" +dependencies = [ + "arc-swap", + "async-trait", + "base64 0.22.1", + "bytes", + "cfg-if", + "chrono", + "either", + "futures", + "futures-util", + "http 1.2.0", + "http-body 1.0.1", + "http-body-util", + "hyper 1.5.1", + "hyper-rustls", + "hyper-timeout", + "hyper-util", + "jsonwebtoken", + "once_cell", + "percent-encoding", + "pin-project", + "secrecy", + "serde", + "serde_json", + "serde_path_to_error", + "serde_urlencoded", + "snafu", + "tokio", + "tower", + "tower-http", + "tracing", + "url", + "web-time", +] + +[[package]] +name = "once_cell" +version = "1.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" + +[[package]] +name = "openssl" +version = "0.10.68" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6174bc48f102d208783c2c84bf931bb75927a617866870de8a4ea85597f871f5" +dependencies = [ + "bitflags", + "cfg-if", + "foreign-types", + "libc", + "once_cell", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "openssl-probe" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" + +[[package]] +name = "openssl-sys" +version = "0.9.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45abf306cbf99debc8195b66b7346498d7b10c210de50418b5ccd7ceba08c741" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-targets", +] + +[[package]] +name = "pem" +version = "3.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e459365e590736a54c3fa561947c84837534b8e9af6fc5bf781307e82658fae" +dependencies = [ + "base64 0.22.1", + "serde", +] + +[[package]] +name = "percent-encoding" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" + +[[package]] +name = "petgraph" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" +dependencies = [ + "fixedbitset", + "indexmap", +] + +[[package]] +name = "phf_shared" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pico-args" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315" + +[[package]] +name = "pin-project" +version = "1.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be57f64e946e500c8ee36ef6331845d40a93055567ec57e8fae13efd33759b95" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c0f5fad0874fc7abcd4d750e76917eaebbecaa2c20bde22e1dbeeba8beb758c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "piper" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c8c490f422ef9a4efd2cb5b42b76c8613d7e7dfc1caf667b8a3350a5acc066" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkg-config" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" + +[[package]] +name = "polling" +version = "3.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a604568c3202727d1507653cb121dbd627a58684eb09a820fd746bee38b4442f" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix", + "tracing", + "windows-sys 0.59.0", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "proc-macro-crate" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b" +dependencies = [ + "toml_edit", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom", +] + +[[package]] +name = "redox_syscall" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" +dependencies = [ + "bitflags", +] + +[[package]] +name = "redox_users" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" +dependencies = [ + "getrandom", + "libredox", + "thiserror", +] + +[[package]] +name = "regex" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" + +[[package]] +name = "reqwest" +version = "0.12.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a77c62af46e79de0a562e1a9849205ffcb7fc1238876e9bd743357570e04046f" +dependencies = [ + "base64 0.22.1", + "bytes", + "encoding_rs", + "futures-core", + "futures-util", + "h2", + "http 1.2.0", + "http-body 1.0.1", + "http-body-util", + "hyper 1.5.1", + "hyper-rustls", + "hyper-tls", + "hyper-util", + "ipnet", + "js-sys", + "log", + "mime", + "native-tls", + "once_cell", + "percent-encoding", + "pin-project-lite", + "rustls-pemfile", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "system-configuration", + "tokio", + "tokio-native-tls", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "windows-registry", +] + +[[package]] +name = "ring" +version = "0.17.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" +dependencies = [ + "cc", + "cfg-if", + "getrandom", + "libc", + "spin", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustc-demangle" +version = "0.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" + +[[package]] +name = "rustix" +version = "0.38.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f93dc38ecbab2eb790ff964bb77fa94faf256fd3e73285fd7ba0903b76bedb85" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.59.0", +] + +[[package]] +name = "rustls" +version = "0.23.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5065c3f250cbd332cd894be57c40fa52387247659b14a2d6041d121547903b1b" +dependencies = [ + "log", + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-native-certs" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fcff2dd52b58a8d98a70243663a0d234c4e2b79235637849d15913394a247d3" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework 3.0.1", +] + +[[package]] +name = "rustls-pemfile" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "rustls-pki-types" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2bf47e6ff922db3825eb750c4e2ff784c6ff8fb9e13046ef6a1d1c5401b0b37" + +[[package]] +name = "rustls-webpki" +version = "0.102.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e819f2bc632f285be6d7cd36e25940d45b2391dd6d9b939e79de557f7014248" + +[[package]] +name = "ryu" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" +dependencies = [ + "windows-sys 0.59.0", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "secrecy" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e891af845473308773346dc847b2c23ee78fe442e0472ac50e22a18a93d3ae5a" +dependencies = [ + "zeroize", +] + +[[package]] +name = "security-framework" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" +dependencies = [ + "bitflags", + "core-foundation 0.9.4", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1415a607e92bec364ea2cf9264646dcce0f91e6d65281bd6f2819cca3bf39c8" +dependencies = [ + "bitflags", + "core-foundation 0.10.0", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa39c7303dc58b5543c94d22c1766b0d31f2ee58306363ea622b10bbc075eaa2" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "serde" +version = "1.0.216" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.216" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "serde_json" +version = "1.0.133" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" +dependencies = [ + "itoa", + "memchr", + "ryu", + "serde", +] + +[[package]] +name = "serde_path_to_error" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af99884400da37c88f5e9146b7f1fd0fbcae8f6eec4e9da38b67d05486f814a6" +dependencies = [ + "itoa", + "serde", +] + +[[package]] +name = "serde_regex" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8136f1a4ea815d7eac4101cfd0b16dc0cb5e1fe1b8609dfd728058656b7badf" +dependencies = [ + "regex", + "serde", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "sha1" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signal-hook-registry" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" +dependencies = [ + "libc", +] + +[[package]] +name = "similar" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1de1d4f81173b03af4c0cbed3c898f6bff5b870e4a7f5d6f4057d62a7a4b686e" + +[[package]] +name = "simple_asn1" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adc4e5204eb1910f40f9cfa375f6f05b68c3abac4b6fd879c8ff5e7ae8a0a085" +dependencies = [ + "num-bigint", + "num-traits", + "thiserror", + "time", +] + +[[package]] +name = "siphasher" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" + +[[package]] +name = "slab" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" +dependencies = [ + "autocfg", +] + +[[package]] +name = "smallvec" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" + +[[package]] +name = "snafu" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "223891c85e2a29c3fe8fb900c1fae5e69c2e42415e3177752e8718475efa5019" +dependencies = [ + "snafu-derive", +] + +[[package]] +name = "snafu-derive" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03c3c6b7927ffe7ecaa769ee0e3994da3b8cafc8f444578982c83ecb161af917" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "socket2" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "spin" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" + +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + +[[package]] +name = "string_cache" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f91138e76242f575eb1d3b38b4f1362f10d3a43f47d182a5b359af488a02293b" +dependencies = [ + "new_debug_unreachable", + "once_cell", + "parking_lot", + "phf_shared", + "precomputed-hash", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.90" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "system-configuration" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" +dependencies = [ + "bitflags", + "core-foundation 0.9.4", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "tempfile" +version = "3.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28cce251fcbc87fac86a866eeb0d6c2d536fc16d06f184bb61aeae11aa4cee0c" +dependencies = [ + "cfg-if", + "fastrand", + "once_cell", + "rustix", + "windows-sys 0.59.0", +] + +[[package]] +name = "term" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c59df8ac95d96ff9bede18eb7300b0fda5e5d8d90960e76f8e14ae765eedbf1f" +dependencies = [ + "dirs-next", + "rustversion", + "winapi", +] + +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "time" +version = "0.3.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35e7868883861bd0e56d9ac6efcaaca0d6d5d82a2a7ec8209ff492c07cf37b21" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" + +[[package]] +name = "time-macros" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2834e6017e3e5e4b9834939793b282bc03b37a3336245fa820e35e233e2a85de" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tiny-keccak" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" +dependencies = [ + "crunchy", +] + +[[package]] +name = "tinystr" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tokio" +version = "1.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cec9b21b0450273377fc97bd4c33a8acffc8c996c987a7c5b319a0083707551" +dependencies = [ + "backtrace", + "bytes", + "libc", + "mio", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys 0.52.0", +] + +[[package]] +name = "tokio-macros" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "tokio-native-tls" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" +dependencies = [ + "native-tls", + "tokio", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f6d0975eaace0cf0fcadee4e4aaa5da15b5c079146f2cffb67c113be122bf37" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-util" +version = "0.7.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7fcaa8d55a2bdd6b83ace262b016eca0d79ee02818c5c1bcdf0305114081078" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml_datetime" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" + +[[package]] +name = "toml_edit" +version = "0.22.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" +dependencies = [ + "indexmap", + "toml_datetime", + "winnow", +] + +[[package]] +name = "tower" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tokio-util", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-http" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "403fa3b783d4b626a8ad51d766ab03cb6d2dbfc46b1c5d4448395e6628dc9697" +dependencies = [ + "bitflags", + "bytes", + "futures-util", + "http 1.2.0", + "http-body 1.0.1", + "iri-string", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.41" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "tracing-core" +version = "0.1.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" +dependencies = [ + "once_cell", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "typenum" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" + +[[package]] +name = "unicode-ident" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "url" +version = "2.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "value-bag" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ef4c4aa54d5d05a279399bfa921ec387b7aba77caf7a682ae8d86785b8fdad2" + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + +[[package]] +name = "wasm-bindgen" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396" +dependencies = [ + "cfg-if", + "once_cell", + "wasm-bindgen-macro", +] + +[[package]] +name = "wasm-bindgen-backend" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79" +dependencies = [ + "bumpalo", + "log", + "proc-macro2", + "quote", + "syn 2.0.90", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.49" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38176d9b44ea84e9184eff0bc34cc167ed044f816accfe5922e54d84cf48eca2" +dependencies = [ + "cfg-if", + "js-sys", + "once_cell", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" + +[[package]] +name = "web-sys" +version = "0.3.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04dd7223427d52553d3702c004d3b2fe07c148165faa56313cb00211e31c12bc" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "serde", + "wasm-bindgen", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" +dependencies = [ + "windows-sys 0.59.0", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows-core" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-registry" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0" +dependencies = [ + "windows-result", + "windows-strings", + "windows-targets", +] + +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result", + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.6.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b" +dependencies = [ + "memchr", +] + +[[package]] +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" + [[package]] name = "x-bot" version = "0.1.0" +dependencies = [ + "anyhow", + "chrono", + "env_logger 0.11.5", + "envy", + "httpmock", + "indoc", + "log", + "oauth1-request", + "octocrab", + "reqwest", + "serde", + "serde_json", + "tokio", +] + +[[package]] +name = "yoke" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" +dependencies = [ + "byteorder", + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "zerofrom" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" + +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] diff --git a/Cargo.toml b/Cargo.toml index 1c96eb7..9d021e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,18 @@ version = "0.1.0" edition = "2021" [dependencies] +anyhow = "1.0.94" +chrono = "0.4.39" +env_logger = "0.11.5" +envy = "0.4.2" +indoc = "2.0.5" +log = "0.4.22" +oauth1 = { version = "0.6.1", package = "oauth1-request" } +octocrab = "0.42.1" +reqwest = { version = "0.12.9", features = ["json"] } +serde = { version = "1.0.216", features = ["derive"] } +serde_json = "1.0.133" +tokio = { version = "1.42.0", features = ["rt", "macros"] } + +[dev-dependencies] +httpmock = { version = "0.7.0", features = ["env_logger"] } diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b6dbcee --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM rust:alpine as chef +ARG ARCH +ENV SYSROOT /dummy + +WORKDIR /build +RUN apk add musl-dev +RUN cargo install cargo-chef --locked +RUN rustup toolchain install 1.83.0-${ARCH}-unknown-linux-musl + +FROM chef as planner +COPY . . +RUN cargo chef prepare --recipe-path recipe.json + +FROM chef as builder +COPY --from=planner /build/recipe.json recipe.json +RUN apk add libressl-dev musl-dev +RUN cargo chef cook --release --target=${ARCH}-unknown-linux-musl --recipe-path recipe.json +COPY . . +RUN cargo build --release --target=${ARCH}-unknown-linux-musl +RUN mv /build/target/${ARCH}-unknown-linux-musl/release/x-bot . + +FROM scratch +WORKDIR /app +COPY --from=builder /build/x-bot . diff --git a/README.md b/README.md index b863fb8..bf52bc0 100644 --- a/README.md +++ b/README.md @@ -1,43 +1,54 @@ -# Delta š• Bot +# X-Bot # -The official š• bot for Delta. +This service polls the github API to fetch contributor and release related information in order to publish them on X. -## What needs to be done +## Configuration ## -We need an X bot that posts updates to `@deltaml_org` with information from GitHub API. +The tool can be configured by the following environmental variables: -**You will use the GitHub API to:** +| Variable name | Description | Default | Required | +|--------------------------------|----------------------------------------------|-----------|----------| +| GITHUB_BEARER_TOKEN | Authentication for github | | No | +| GITHUB_BASE_URL | Github api base url used in tests | | No | +| GITHUB_BRANCH | Branch to watch for git push events | master | No | +| GITHUB_CONNECT_TIMEOUT | Connection timeout for the github http client| | No | +| GITHUB_EXIT_ON_POLL_ERROR | Exit on http erros, used in tests | | No | +| GITHUB_FETCH_PAGES_PER_REQUEST | Number of pages to fetch in one request | 100 | No | +| GITHUB_MAX_RETRIES | Number of retries on fetch failure | 3 | No | +| GITHUB_OWNER | The owner of the github repository | delta-rs | No | +| GITHUB_POLL_FREQUENCY | Duration between fetching events | 5 minunes | No | +| GITHUB_READ_TIMEOUT | Http read timeout | | No | +| GITHUB_REPOSITORY | The name of the repository to watch | delta | No | +| X_CLIENT_IDENTIFIER | X application Oauth1 identifier | | Yes | +| X_CLIENT_SECRET | X application Oauth1 identifier | | Yes | +| X_TOKEN | X user Oauth1 identifier | | Yes | +| X_TOKEN_SECRET | X user Oauth1 identifier | | Yes | +| X_BASE_URL | X api base url, used in tests | | No | +| X_HTTP_CLIENT_MAX_IDLE | Max idle connections per host | 1 | No | +| X_HTTP_CLIENT_TIMEOUT | Global timeout for http communication | 5 seconds | No | +| X_MAX_RETRIES | Attempts to retry a failed tweet | 3 | No | +| RUST_LOG | Log level | ERROR | No | +| RUST_BACKTRACE | Pring backtrace to stdout | | | -- Detect when a new contributor makes their first commit to the `master` branch of the delta repository. -- Detect when a new release of the delta repository is published. +## Tests and developemnt ## -**You will use the X API to:** +To run tests from CI issue: +`cargo test` -- Post a message to `@deltaml_org` whenever a new contributor makes their first commit to the `master` branch of the delta repository. -- Post a message to `@deltaml_org` whenever a new release of the delta repository is published. +To run tests during development: +`export RUST_LOG=DEBUG; cargo test -- --nocapture` -### We need (for now) two types of posts: +## Deploy ## -#### 1. For new contributors: -``` -Delta got a new contributor [Contributor Name]! +To build the application on mac silicon: +`docker compose build --build-arg ARCH=aarch64` -Details: [Commit message] +To run it: +`docker compose up` -Link: [Commit link] -``` +X-Bot requires no ports to expose, or volumes. -#### 2. For new releases: - -``` -New release ([Version Number]) of Delta out! šŸŽ‰ - -Link to release notes: [Release link] -``` - -Implement these features in the bot, ensuring the messages are posted automatically whenever these events occur. - -If anything is unclear, reach out in the [Github Discussions](https://github.com/orgs/delta-rs/discussions/categories/general) here on GitHub. + Note that the docker build will ensure that everything is statically linked ## Contributors diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..93dc057 --- /dev/null +++ b/compose.yml @@ -0,0 +1,9 @@ +version: '3.8' + +services: + xbot: + build: . + command: /app/x-bot + environment: + - RUST_BACKTRACE=1 + - RUST_LOG=trace diff --git a/src/bot.rs b/src/bot.rs new file mode 100644 index 0000000..50f3e62 --- /dev/null +++ b/src/bot.rs @@ -0,0 +1,83 @@ +use std::collections::HashSet; + +use octocrab::models::events::payload::{EventPayload, ReleaseEventAction, WrappedEventPayload}; +use octocrab::models::repos::CommitAuthor; + +use super::{github, x, Announcement, Configuration, NewContributor, NewRelease}; + +pub async fn start(config: Configuration) -> anyhow::Result<()> { + let github_client = github::Client::new(config.github, config.auth.clone())?; + let x_client = x::Client::new(config.x, config.auth)?; + + let mut announced_contributors = github_client.gather_announced_contributors().await?; + let mut receiver = github_client.start_poll_events().await?; + + while let Some(event) = receiver.recv().await { + if let Some(announcement) = filter_github_event(&mut announced_contributors, event).await { + tweet_announcement(&x_client, announcement).await?; + } + } + + Ok(()) +} + +async fn filter_github_event( + announced_contributors: &mut HashSet, + event: WrappedEventPayload, +) -> Option { + match event.specific { + Some(EventPayload::PushEvent(payload)) => Some(Announcement::Contributor( + payload + .commits + .into_iter() + .filter(|commit| commit.distinct) + .filter(|commit| is_first_contribution(announced_contributors, &commit.author)) + .map(|commit| NewContributor { + name: commit.author.name, + commit_message: commit.message, + url: commit.url.to_string(), + }) + .collect(), + )), + Some(EventPayload::ReleaseEvent(payload)) + if payload.action == ReleaseEventAction::Published => + { + Some(Announcement::Release(NewRelease { + version: payload.release.name.unwrap_or(payload.release.tag_name), + url: payload.release.html_url.to_string(), + })) + } + _ => None, + } +} + +async fn tweet_announcement( + x_client: &x::Client, + announcement: Announcement, +) -> anyhow::Result<()> { + match announcement { + Announcement::Contributor(new_contributors) => { + for new_contributor in new_contributors.into_iter() { + x_client.post_tweet(new_contributor.into()).await + } + } + Announcement::Release(new_release) => x_client.post_tweet(new_release.into()).await, + } + + Ok(()) +} + +pub fn is_first_contribution( + announced_contributors: &mut HashSet, + author: &CommitAuthor, +) -> bool { + if announced_contributors.insert(author.email.clone()) { + log::info!( + "Number of announced contributors: {:?}", + announced_contributors.len() + ); + true + } else { + false + } +} diff --git a/src/github.rs b/src/github.rs new file mode 100644 index 0000000..b30123c --- /dev/null +++ b/src/github.rs @@ -0,0 +1,163 @@ +use octocrab::etag::{EntityTag, Etagged}; +use octocrab::models::events::Event; +use octocrab::models::repos::RepoCommit; +use octocrab::service::middleware::retry::RetryConfig; +use octocrab::Page; +use octocrab::{ + models::events::payload::WrappedEventPayload, + Octocrab, +}; +use std::collections::HashSet; +use tokio::{ + sync::mpsc, + time::{sleep, Duration}, +}; + +use crate::{AuthConfiguration, GithubConfiguration}; + +pub struct Client { + branch: String, + exit_on_poll_error: bool, + octocrab: Octocrab, + owner: String, + per_page: u8, + poll_frequency: Duration, + repository: String, +} + +impl Client { + pub fn new(config: GithubConfiguration, auth: AuthConfiguration) -> anyhow::Result { + let mut client_builder = Octocrab::builder() + .set_connect_timeout(config.connect_timeout) + .set_read_timeout(config.read_timeout); + + if let Some(retries) = config.max_retries { + client_builder = client_builder.add_retry_config(RetryConfig::Simple(retries)) + } + + if let Some(token) = auth.github_bearer_token { + client_builder = client_builder.personal_token(token); + } + + if let Some(url) = config.base_url { + client_builder = client_builder.base_uri(url)?; + } + + let octocrab = client_builder.build()?; + + Ok(Self { + branch: config.branch, + exit_on_poll_error: config.exit_on_poll_error, + octocrab, + owner: config.owner, + per_page: config.fetch_pages_per_request, + poll_frequency: config.poll_frequency, + repository: config.repository, + }) + } + + pub async fn gather_announced_contributors(&self) -> anyhow::Result> { + let mut page_index: u32 = 0; + let mut has_next_page = true; + let mut announced_contributors = HashSet::new(); + while has_next_page { + let page = self.fetch_commit_page(page_index).await?; + + has_next_page = page.next.is_some(); + page_index += self.per_page as u32; + + page.into_iter() + .filter_map(|commit| commit.commit.author) + .for_each(|author| { + announced_contributors.insert(author.email); + }); + } + + log::debug!( + "Number of gathered previous contributors: {:?}", + announced_contributors.len() + ); + + Ok(announced_contributors) + } + + pub async fn start_poll_events(self) -> anyhow::Result> { + let (sender, receiver) = mpsc::channel(1); + let mut etag = None; + tokio::spawn(async move { + loop { + log::debug!( + "Poll github events in {:?}/{:?} with etag {:?}", + self.owner, + self.repository, + etag + ); + + match self.fetch_event_page(etag.clone()).await { + Ok(events) => { + let payload_iter = etag + .and(events.value) + .into_iter() + .flat_map(|value| value.into_iter()) + .filter_map(|event| event.payload); + + for payload in payload_iter { + if sender.send(payload).await.is_err() { + break; + } + } + etag = events.etag; + } + Err(error) => { + log::error!( + "Failed to poll events from {:?}/{:?} due to {:?}", + self.owner, + self.repository, + error + ); + if self.exit_on_poll_error { + break; + } + } + } + + sleep(self.poll_frequency).await; + } + }); + + Ok(receiver) + } + + async fn fetch_commit_page( + &self, + page_index: u32, + ) -> Result, octocrab::Error> { + log::debug!( + "Fetch commits from {:?}/{:?} page {:?}", + self.owner, + self.repository, + page_index + ); + self.octocrab + .repos(&self.owner, &self.repository) + .list_commits() + .branch(&self.branch) + .per_page(self.per_page) + .page(page_index) + .send() + .await + } + + async fn fetch_event_page( + &self, + etag: Option, + ) -> Result>, octocrab::Error> { + self.octocrab + .repos(&self.owner, &self.repository) + .events() + .etag(etag) + .per_page(self.per_page) + .send() + .await + } +} diff --git a/src/main.rs b/src/main.rs index e7a11a9..4eed2fa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,115 @@ -fn main() { - println!("Hello, world!"); +use serde::Deserialize; +use std::time::Duration; + +mod bot; +mod github; +mod x; + +#[derive(Deserialize, Debug, Clone)] +struct AuthConfiguration { + github_bearer_token: Option, + x_client_identifier: String, + x_client_secret: String, + x_token: String, + x_token_secret: String, } + +#[derive(Deserialize, Debug)] +#[serde(default)] +struct XConfiguration { + base_url: Option, + http_client_max_idle: usize, + http_client_timeout: Duration, + max_retries: Option, +} + +impl Default for XConfiguration { + fn default() -> Self { + Self { + base_url: None, + http_client_max_idle: 1, + http_client_timeout: Duration::from_secs(5), + max_retries: Some(3), + } + } +} + +#[derive(Deserialize, Debug)] +#[serde(default)] +struct GithubConfiguration { + base_url: Option, + branch: String, + connect_timeout: Option, + exit_on_poll_error: bool, + fetch_pages_per_request: u8, + max_retries: Option, + owner: String, + poll_frequency: Duration, + read_timeout: Option, + repository: String, +} + +impl Default for GithubConfiguration { + fn default() -> Self { + Self { + base_url: None, + branch: "master".to_string(), + connect_timeout: None, + exit_on_poll_error: false, + fetch_pages_per_request: 100, + max_retries: Some(3), + owner: "delta-rs".to_string(), + poll_frequency: Duration::from_secs(300), + read_timeout: None, + repository: "delta".to_string(), + } + } +} + +#[derive(Debug)] +struct Configuration { + auth: AuthConfiguration, + github: GithubConfiguration, + x: XConfiguration, +} + +impl Configuration { + fn from_env() -> anyhow::Result { + let x = envy::prefixed("X_").from_env()?; + let github = envy::prefixed("GITHUB_").from_env()?; + let auth = envy::from_env()?; + + log::info!("Running with config: {:#?} {:#?}", github, x); + + Ok(Self { github, x, auth }) + } +} + +struct NewContributor { + commit_message: String, + name: String, + url: String, +} + +struct NewRelease { + url: String, + version: String, +} + +enum Announcement { + Contributor(Vec), + Release(NewRelease), +} + +#[tokio::main(flavor = "current_thread")] +async fn main() -> anyhow::Result<()> { + env_logger::init(); + + let config = Configuration::from_env()?; + bot::start(config).await?; + + Ok(()) +} + +#[cfg(test)] +mod test; diff --git a/src/test/mocks.rs b/src/test/mocks.rs new file mode 100644 index 0000000..efa44c1 --- /dev/null +++ b/src/test/mocks.rs @@ -0,0 +1,168 @@ +use std::sync::atomic::AtomicUsize; +use std::sync::atomic::Ordering::Relaxed; + +use httpmock::{prelude::*, Method, Mock, Then, When}; + +fn etag_header_not_exists(request: &HttpMockRequest) -> bool { + request + .headers + .iter() + .flat_map(|h| h.iter()) + .filter(|(k, _)| k == "if-none-match") + .count() + == 0 +} + +static ETAG_SEQ: AtomicUsize = AtomicUsize::new(0); + +fn next_etag(then: Then) -> Then { + then.header("etag", format!("W/\"{:?}\"", ETAG_SEQ.load(Relaxed))) +} + +fn match_etag(when: When) -> When { + when.header( + "if-none-match", + format!("W/\"{:?}\"", ETAG_SEQ.fetch_add(1, Relaxed)), + ) +} + +pub fn first_commits_page(mock_server: &MockServer) -> Mock<'_> { + mock_server + .mock(|when, then| { + when.path("/repos/delta-rs/delta/commits") + .query_param("sha", "master") + .query_param("per_page", "2") + .query_param("page", "0") + .method(Method::GET); + + then.status(200) + .body_from_file("test_resources/mock_first_commits_page.json") + .header( + "link", + " Mock<'_> { + mock_server + .mock(|when, then| { + when.path("/repos/delta-rs/delta/commits") + .query_param("sha", "master") + .query_param("per_page", "2") + .query_param("page", "2") + .method(Method::GET); + then.status(200) + .body_from_file("test_resources/mock_second_commits_page.json"); + }) +} + +pub fn events_to_skip(mock_server: &MockServer) -> Mock<'_> { + mock_server + .mock(|when, then| { + when.path("/repos/delta-rs/delta/events") + .matches(etag_header_not_exists) + .query_param("per_page", "2") + .method(Method::GET); + then.status(200) + .and(next_etag) + .body_from_file("test_resources/mock_release_event.json"); + }) +} + +pub fn push_event_with_announced_contributor(mock_server: &MockServer) -> Mock<'_> { + mock_server + .mock(|when, then| { + when.path("/repos/delta-rs/delta/events") + .and(match_etag) + .query_param("per_page", "2") + .method(Method::GET); + then.status(200) + .and(next_etag) + .body_from_file("test_resources/mock_push_event_with_announced_contributor.json"); + }) +} + +pub fn push_event_with_new_contributor(mock_server: &MockServer) -> Mock<'_> { + mock_server + .mock(|when, then| { + when.path("/repos/delta-rs/delta/events") + .and(match_etag) + .query_param("per_page", "2") + .method(Method::GET); + then.status(200) + .and(next_etag) + .body_from_file("test_resources/mock_push_event_with_new_contributor.json"); + }) +} + +pub fn push_event_with_contributor_just_announced(mock_server: &MockServer) -> Mock<'_> { + mock_server + .mock(|when, then| { + when.path("/repos/delta-rs/delta/events") + .and(match_etag) + .query_param("per_page", "2") + .method(Method::GET); + then.status(200) + .and(next_etag) + .body_from_file("test_resources/mock_push_event_with_new_contributor.json"); + }) +} + +pub fn event_of_different_type(mock_server: &MockServer) -> Mock<'_> { + mock_server + .mock(|when, then| { + when.path("/repos/delta-rs/delta/events") + .and(match_etag) + .query_param("per_page", "2") + .method(Method::GET); + then.status(200) + .and(next_etag) + .body_from_file("test_resources/mock_delete_event.json"); + }) +} + +pub fn no_new_events(mock_server: &MockServer) -> Mock<'_> { + mock_server + .mock(|when, then| { + when.path("/repos/delta-rs/delta/events") + .and(match_etag) + .query_param("per_page", "2") + .method(Method::GET); + then.status(304).and(next_etag); + }) +} + +pub fn release_event(mock_server: &MockServer) -> Mock<'_> { + mock_server + .mock(|when, then| { + when.path("/repos/delta-rs/delta/events") + .and(match_etag) + .query_param("per_page", "2") + .method(Method::GET); + then.status(200) + .and(next_etag) + .body_from_file("test_resources/mock_release_event.json"); + }) +} + +pub fn verify_contributor_announced(mock_server: &MockServer) -> Mock<'_> { + mock_server + .mock(|when, then| { + when.path("/2/tweets") + .method(Method::POST) + .body_contains("NEW CONTRIBUTOR"); + then.status(200); + }) +} + +pub fn verify_release_announced(mock_server: &MockServer) -> Mock<'_> { + mock_server + .mock(|when, then| { + when.path("/2/tweets") + .method(Method::POST) + .body_contains("RELEASE VERSION"); + then.status(200); + }) +} + diff --git a/src/test/mod.rs b/src/test/mod.rs new file mode 100644 index 0000000..2fe4e8c --- /dev/null +++ b/src/test/mod.rs @@ -0,0 +1,54 @@ +use std::time::Duration; + +use httpmock::MockServer; + +use super::{bot, AuthConfiguration, Configuration, GithubConfiguration, XConfiguration}; + +mod mocks; + +#[tokio::test] +async fn test_x_bot() { + env_logger::init(); + let mock_server = MockServer::start(); + + let mocks = [ + mocks::first_commits_page(&mock_server), + mocks::second_commits_page(&mock_server), + mocks::events_to_skip(&mock_server), + mocks::event_of_different_type(&mock_server), + mocks::no_new_events(&mock_server), + mocks::push_event_with_announced_contributor(&mock_server), + mocks::push_event_with_new_contributor(&mock_server), + mocks::push_event_with_contributor_just_announced(&mock_server), + mocks::release_event(&mock_server), + mocks::verify_release_announced(&mock_server), + mocks::verify_contributor_announced(&mock_server), + ]; + + let uri = format!("http://{:?}", mock_server.address()); + + let test_config = Configuration { + github: GithubConfiguration { + base_url: Some(uri.clone()), + exit_on_poll_error: true, + poll_frequency: Duration::from_secs(0), + fetch_pages_per_request: 2, + ..Default::default() + }, + x: XConfiguration { + base_url: Some(uri.clone()), + ..Default::default() + }, + auth: AuthConfiguration { + x_client_identifier: "client_identifier".to_string(), + x_client_secret: "client_secret".to_string(), + x_token: "token".to_string(), + x_token_secret: "token_secret".to_string(), + github_bearer_token: Some("github_token".to_string()), + }, + }; + + bot::start(test_config).await.unwrap(); + + mocks.into_iter().for_each(|mock| mock.assert()); +} diff --git a/src/x.rs b/src/x.rs new file mode 100644 index 0000000..b0042ce --- /dev/null +++ b/src/x.rs @@ -0,0 +1,143 @@ +use indoc::formatdoc; +use oauth1::ParameterList; +use reqwest::{Response, Url}; +use serde::Serialize; +use std::{borrow::Cow, time::Duration}; +use tokio::time::sleep; + +use super::{AuthConfiguration, NewContributor, NewRelease, XConfiguration}; + +#[derive(Debug, Serialize, oauth1::Request)] +pub struct PostTweetRequest { + text: String, +} + +impl PostTweetRequest { + pub fn announce_commiter(name: String, commit_message: String, commit_link: String) -> Self { + let text = formatdoc! {" + Delta got a new contributor {name}! + + Details: {commit_message} + + Link: {commit_link} + "}; + + Self { text } + } + + pub fn announce_release(version: String, release_notes_link: String) -> Self { + let text = formatdoc! {" + New release ({version}) of Delta out! šŸŽ‰ + + Link to release notes: {release_notes_link} + "}; + + Self { text } + } +} + +impl From for PostTweetRequest { + fn from(new_committer: NewContributor) -> Self { + Self::announce_commiter( + new_committer.name, + new_committer.commit_message, + new_committer.url, + ) + } +} + +impl From for PostTweetRequest { + fn from(new_release: NewRelease) -> Self { + Self::announce_release(new_release.version, new_release.url) + } +} + +pub struct Client { + oauth_token: oauth1::Token, + http_client: reqwest::Client, + base_url: Url, + max_attempts: u64, +} + +impl Client { + pub fn new(config: XConfiguration, auth: AuthConfiguration) -> anyhow::Result { + let http_client = reqwest::Client::builder() + .pool_max_idle_per_host(config.http_client_max_idle) + .timeout(config.http_client_timeout) + .connection_verbose(true) + .build()?; + + let base_url = config + .base_url + .map(|url| url.parse()) + .unwrap_or("https://api.x.com/".parse()) + .map(|url: Url| { + let mut url = url.clone(); + url.set_path("/2/tweets"); + url + })?; + + let oauth_token = oauth1::Token::from_parts( + auth.x_client_identifier, + auth.x_client_secret, + auth.x_token, + auth.x_token_secret, + ); + + Ok(Self { + http_client, + oauth_token, + base_url, + max_attempts: config.max_retries.map(|r| r + 1).unwrap_or(1), + }) + } + + pub async fn post_tweet(&self, tweet: PostTweetRequest) { + log::info!("Attempt to tweet: {:?}", tweet); + for attempts in 1..=self.max_attempts { + match self.send_post(&tweet).await { + Ok(response) => { + log::debug!("Tweeted successfully. X's response: {:?}", response); + return; + } + Err(error) => { + log::error!("Retry tweet. (attempt {:?}) (error: {:?})", attempts, error); + if error + .status() + .filter(|status| status.is_client_error()) + .is_some() + { + break; + } + } + } + + sleep(Duration::from_secs(3 * attempts)).await + } + + log::error!("Gave up trying to tweet"); + } + + async fn send_post(&self, tweet: &PostTweetRequest) -> Result { + let authorization = self.authorize(); + self.http_client + .post(self.base_url.clone()) + .header("authorization", authorization) + .json(tweet) + .send() + .await + .and_then(|res| res.error_for_status()) + } + + fn authorize(&self) -> String { + let query_list: ParameterList, Cow<'_, _>> = + ParameterList::from_iter(self.base_url.query_pairs()); + oauth1::authorize( + "POST", + &self.base_url, + &query_list, + &self.oauth_token, + oauth1::HMAC_SHA1, + ) + } +} diff --git a/test_resources/mock_delete_event.json b/test_resources/mock_delete_event.json new file mode 100644 index 0000000..0f0ab66 --- /dev/null +++ b/test_resources/mock_delete_event.json @@ -0,0 +1,33 @@ +[ + { + "id": "44758231577", + "type": "DeleteEvent", + "actor": { + "id": 33717111, + "login": "mjovanc", + "display_login": "mjovanc", + "gravatar_id": "", + "url": "https://api.github.com/users/mjovanc", + "avatar_url": "https://avatars.githubusercontent.com/u/33717111?" + }, + "repo": { + "id": 893916892, + "name": "delta-rs/delta", + "url": "https://api.github.com/repos/delta-rs/delta" + }, + "payload": { + "ref": "fixes", + "ref_type": "branch", + "pusher_type": "user" + }, + "public": true, + "created_at": "2024-12-13T09:23:35Z", + "org": { + "id": 189621827, + "login": "delta-rs", + "gravatar_id": "", + "url": "https://api.github.com/orgs/delta-rs", + "avatar_url": "https://avatars.githubusercontent.com/u/189621827?" + } + } +] diff --git a/test_resources/mock_first_commits_page.json b/test_resources/mock_first_commits_page.json new file mode 100644 index 0000000..10a5a45 --- /dev/null +++ b/test_resources/mock_first_commits_page.json @@ -0,0 +1,171 @@ +[ + { + "sha": "58b39df43a09d54fb14bfc022447175e428c52cb", + "node_id": "C_kwDONUgW3NoAKDU4YjM5ZGY0M2EwOWQ1NGZiMTRiZmMwMjI0NDcxNzVlNDI4YzUyY2I", + "commit": { + "author": { + "name": "Chase Willden", + "email": "chase.willden@gmail.com", + "date": "2024-12-13T22:37:40Z" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com", + "date": "2024-12-13T22:37:40Z" + }, + "message": "Merge pull request #137 from delta-rs/136-metal-floating-point-math-is-off\n\nresolve #136 fixes the floating point math for metal", + "tree": { + "sha": "6e86d20d723b89c85e3193e34875dcdd87c8680e", + "url": "https://api.github.com/repos/delta-rs/delta/git/trees/6e86d20d723b89c85e3193e34875dcdd87c8680e" + }, + "url": "https://api.github.com/repos/delta-rs/delta/git/commits/58b39df43a09d54fb14bfc022447175e428c52cb", + "comment_count": 0, + "verification": { + "verified": true, + "reason": "valid", + "signature": "-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJnXLc0CRC1aQ7uu5UhlAAAef8QABiOfTjdxBTkY3S1bsxINBx/\n/Vm+m/RBaSRFQVOp/6OQ3OpPqXA2D30Zi6dBQHaFhuuXHEi+MG9nikUJDDj+PRZb\nNosGmMjiPZsIniOWPYpod0qsXXuej5EtWirDypM3HEBq6qDB48fC1+d5i/ORiWZw\nKjITan9RO+Z0P8w/eg/X2Juqq6Lu3nqRnDXubJBq5koybSQIoRdmFNq7u1YPMZQX\nWatSD6RM1M1nQh6EUQxEKjRpKuC2HeWtK0YCPRVt/8oJhxo+0N2KtLlOPiE/wznI\n55G8GmPzbNKigRdHgkwq80YLuIm8FpnLLmnVfaH+RLEeGX/8aZWjRhGRB+zIAaCh\nFBWQRH1k4gBLPvzd5NKLIFM1E3a8V0VFXre7EhXokuZydLMz5mmfcBcz2sJP4F1X\no9pSrBFq/xm+TwH53sinw9534GIKG6ES8S2JejLxn0nh0D4ItNcLsgE8+ufknJWh\nFcsLGHH9q3Uppe/8Q5g+EuPZxHqcjDjARhukIMcG9lIvvEhYMpo8Wec0jSJLqLrJ\naYcCOrER1FEZoGSpQQiQNI2NPhwviAMkicmlMK+Qjyo9qacPAkkw3SA7/PsccheG\nOFkf2weBmvwF408nef4+/DVJTarw9QTohPZyGxc/9w7ttAYCtPiM3wiAMF4npL1S\nlpbcu6NSG6R0KZS7PASd\n=T7Ld\n-----END PGP SIGNATURE-----\n", + "payload": "tree 6e86d20d723b89c85e3193e34875dcdd87c8680e\nparent d996eb17862f53c0800580d96ac9f8b8082d2ac6\nparent c40055e305bcb94fd7d6eeaa77d043dbf53c86ce\nauthor Chase Willden 1734129460 -0700\ncommitter GitHub 1734129460 -0700\n\nMerge pull request #137 from delta-rs/136-metal-floating-point-math-is-off\n\nresolve #136 fixes the floating point math for metal", + "verified_at": "2024-12-13T22:42:42Z" + } + }, + "url": "https://api.github.com/repos/delta-rs/delta/commits/58b39df43a09d54fb14bfc022447175e428c52cb", + "html_url": "https://github.com/delta-rs/delta/commit/58b39df43a09d54fb14bfc022447175e428c52cb", + "comments_url": "https://api.github.com/repos/delta-rs/delta/commits/58b39df43a09d54fb14bfc022447175e428c52cb/comments", + "author": { + "login": "chaseWillden", + "id": 3342754, + "node_id": "MDQ6VXNlcjMzNDI3NTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/3342754?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/chaseWillden", + "html_url": "https://github.com/chaseWillden", + "followers_url": "https://api.github.com/users/chaseWillden/followers", + "following_url": "https://api.github.com/users/chaseWillden/following{/other_user}", + "gists_url": "https://api.github.com/users/chaseWillden/gists{/gist_id}", + "starred_url": "https://api.github.com/users/chaseWillden/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/chaseWillden/subscriptions", + "organizations_url": "https://api.github.com/users/chaseWillden/orgs", + "repos_url": "https://api.github.com/users/chaseWillden/repos", + "events_url": "https://api.github.com/users/chaseWillden/events{/privacy}", + "received_events_url": "https://api.github.com/users/chaseWillden/received_events", + "type": "User", + "user_view_type": "public", + "site_admin": false + }, + "committer": { + "login": "web-flow", + "id": 19864447, + "node_id": "MDQ6VXNlcjE5ODY0NDQ3", + "avatar_url": "https://avatars.githubusercontent.com/u/19864447?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/web-flow", + "html_url": "https://github.com/web-flow", + "followers_url": "https://api.github.com/users/web-flow/followers", + "following_url": "https://api.github.com/users/web-flow/following{/other_user}", + "gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}", + "starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/web-flow/subscriptions", + "organizations_url": "https://api.github.com/users/web-flow/orgs", + "repos_url": "https://api.github.com/users/web-flow/repos", + "events_url": "https://api.github.com/users/web-flow/events{/privacy}", + "received_events_url": "https://api.github.com/users/web-flow/received_events", + "type": "User", + "user_view_type": "public", + "site_admin": false + }, + "parents": [ + { + "sha": "d996eb17862f53c0800580d96ac9f8b8082d2ac6", + "url": "https://api.github.com/repos/delta-rs/delta/commits/d996eb17862f53c0800580d96ac9f8b8082d2ac6", + "html_url": "https://github.com/delta-rs/delta/commit/d996eb17862f53c0800580d96ac9f8b8082d2ac6" + }, + { + "sha": "c40055e305bcb94fd7d6eeaa77d043dbf53c86ce", + "url": "https://api.github.com/repos/delta-rs/delta/commits/c40055e305bcb94fd7d6eeaa77d043dbf53c86ce", + "html_url": "https://github.com/delta-rs/delta/commit/c40055e305bcb94fd7d6eeaa77d043dbf53c86ce" + } + ] + }, + { + "sha": "c40055e305bcb94fd7d6eeaa77d043dbf53c86ce", + "node_id": "C_kwDONUgW3NoAKGM0MDA1NWUzMDViY2I5NGZkN2Q2ZWVhYTc3ZDA0M2RiZjUzYzg2Y2U", + "commit": { + "author": { + "name": "Chase Willden", + "email": "chase.willden@gmail.com", + "date": "2024-12-13T22:15:16Z" + }, + "committer": { + "name": "Chase Willden", + "email": "chase.willden@gmail.com", + "date": "2024-12-13T22:15:16Z" + }, + "message": "resolve #136 fixes the floating point math for metal", + "tree": { + "sha": "6e86d20d723b89c85e3193e34875dcdd87c8680e", + "url": "https://api.github.com/repos/delta-rs/delta/git/trees/6e86d20d723b89c85e3193e34875dcdd87c8680e" + }, + "url": "https://api.github.com/repos/delta-rs/delta/git/commits/c40055e305bcb94fd7d6eeaa77d043dbf53c86ce", + "comment_count": 0, + "verification": { + "verified": true, + "reason": "valid", + "signature": "-----BEGIN PGP SIGNATURE-----\n\niQGzBAABCAAdFiEE4oTCfcDkM0opjBtwt0KT4IICy7oFAmdcsfcACgkQt0KT4IIC\ny7pbVQwArg1lGzKgUnEoDC7szssvdUW5kyagM9pT3cZ2BcaX7i8eUQFbR+54xUxN\nrp8B3FeDnugv1R9+FzA8apq9+TgitacdnBhtBXKfH/AzzXa576d7qzNYoZpytFDv\n+JMjEd2kmJ1XO97oEed4Kgvq4Jl7QMMwOwqsH4qyxVpOL0B0lC+vISZujQGYD/st\nJCzvp2JpeO3EMP/UfjyfwJ5eEcLfHbYFS7r4Wg2e1upAzX9K+mB6HcF/p++44Swc\nfTV4owHb5E25Xjc35ep8rCgMxUWWaPVSfDyOOctMJl5RsrMewlHr/7QzyQ4T5A6/\nY1KvoMZcSgbb9PYTchV9amOyjNcL93Hhu8wn3rz6m+iPu3XGjMmMu0N+URJp+o/w\nQ8FHWUL7ApNAMdu29GOHAlg4ZsGPSBo9JjWeBj+q2yNphp//GQChKL4ksPoWq8tS\nLRg7oTFIEyKMLTgr+lUzxRun6zc2hhTKT/kF1fNMsWoMkSuElEKTA+/Ud3l0vBAH\n3DxLmers\n=aHk+\n-----END PGP SIGNATURE-----", + "payload": "tree 6e86d20d723b89c85e3193e34875dcdd87c8680e\nparent d996eb17862f53c0800580d96ac9f8b8082d2ac6\nauthor Chase Willden 1734128116 -0700\ncommitter Chase Willden 1734128116 -0700\n\nresolve #136 fixes the floating point math for metal\n", + "verified_at": "2024-12-13T22:15:28Z" + } + }, + "url": "https://api.github.com/repos/delta-rs/delta/commits/c40055e305bcb94fd7d6eeaa77d043dbf53c86ce", + "html_url": "https://github.com/delta-rs/delta/commit/c40055e305bcb94fd7d6eeaa77d043dbf53c86ce", + "comments_url": "https://api.github.com/repos/delta-rs/delta/commits/c40055e305bcb94fd7d6eeaa77d043dbf53c86ce/comments", + "author": { + "login": "chaseWillden", + "id": 3342754, + "node_id": "MDQ6VXNlcjMzNDI3NTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/3342754?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/chaseWillden", + "html_url": "https://github.com/chaseWillden", + "followers_url": "https://api.github.com/users/chaseWillden/followers", + "following_url": "https://api.github.com/users/chaseWillden/following{/other_user}", + "gists_url": "https://api.github.com/users/chaseWillden/gists{/gist_id}", + "starred_url": "https://api.github.com/users/chaseWillden/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/chaseWillden/subscriptions", + "organizations_url": "https://api.github.com/users/chaseWillden/orgs", + "repos_url": "https://api.github.com/users/chaseWillden/repos", + "events_url": "https://api.github.com/users/chaseWillden/events{/privacy}", + "received_events_url": "https://api.github.com/users/chaseWillden/received_events", + "type": "User", + "user_view_type": "public", + "site_admin": false + }, + "committer": { + "login": "chaseWillden", + "id": 3342754, + "node_id": "MDQ6VXNlcjMzNDI3NTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/3342754?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/chaseWillden", + "html_url": "https://github.com/chaseWillden", + "followers_url": "https://api.github.com/users/chaseWillden/followers", + "following_url": "https://api.github.com/users/chaseWillden/following{/other_user}", + "gists_url": "https://api.github.com/users/chaseWillden/gists{/gist_id}", + "starred_url": "https://api.github.com/users/chaseWillden/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/chaseWillden/subscriptions", + "organizations_url": "https://api.github.com/users/chaseWillden/orgs", + "repos_url": "https://api.github.com/users/chaseWillden/repos", + "events_url": "https://api.github.com/users/chaseWillden/events{/privacy}", + "received_events_url": "https://api.github.com/users/chaseWillden/received_events", + "type": "User", + "user_view_type": "public", + "site_admin": false + }, + "parents": [ + { + "sha": "d996eb17862f53c0800580d96ac9f8b8082d2ac6", + "url": "https://api.github.com/repos/delta-rs/delta/commits/d996eb17862f53c0800580d96ac9f8b8082d2ac6", + "html_url": "https://github.com/delta-rs/delta/commit/d996eb17862f53c0800580d96ac9f8b8082d2ac6" + } + ] + } +] diff --git a/test_resources/mock_push_event_with_announced_contributor.json b/test_resources/mock_push_event_with_announced_contributor.json new file mode 100644 index 0000000..ddd85f6 --- /dev/null +++ b/test_resources/mock_push_event_with_announced_contributor.json @@ -0,0 +1,59 @@ +[ + { + "id": "44780518361", + "type": "PushEvent", + "actor": { + "id": 3342754, + "login": "chaseWillden", + "display_login": "chaseWillden", + "gravatar_id": "", + "url": "https://api.github.com/users/chaseWillden", + "avatar_url": "https://avatars.githubusercontent.com/u/3342754?" + }, + "repo": { + "id": 893916892, + "name": "delta-rs/delta", + "url": "https://api.github.com/repos/delta-rs/delta" + }, + "payload": { + "repository_id": 893916892, + "push_id": 21701672271, + "size": 2, + "distinct_size": 1, + "ref": "refs/heads/master", + "head": "58b39df43a09d54fb14bfc022447175e428c52cb", + "before": "d996eb17862f53c0800580d96ac9f8b8082d2ac6", + "commits": [ + { + "sha": "c40055e305bcb94fd7d6eeaa77d043dbf53c86ce", + "author": { + "email": "chase.willden@gmail.com", + "name": "Chase Willden" + }, + "message": "resolve #136 fixes the floating point math for metal", + "distinct": false, + "url": "https://api.github.com/repos/delta-rs/delta/commits/c40055e305bcb94fd7d6eeaa77d043dbf53c86ce" + }, + { + "sha": "58b39df43a09d54fb14bfc022447175e428c52cb", + "author": { + "email": "chase.willden@gmail.com", + "name": "Chase Willden" + }, + "message": "Merge pull request #137 from delta-rs/136-metal-floating-point-math-is-off\n\nresolve #136 fixes the floating point math for metal", + "distinct": true, + "url": "https://api.github.com/repos/delta-rs/delta/commits/58b39df43a09d54fb14bfc022447175e428c52cb" + } + ] + }, + "public": true, + "created_at": "2024-12-13T22:37:42Z", + "org": { + "id": 189621827, + "login": "delta-rs", + "gravatar_id": "", + "url": "https://api.github.com/orgs/delta-rs", + "avatar_url": "https://avatars.githubusercontent.com/u/189621827?" + } + } +] diff --git a/test_resources/mock_push_event_with_new_contributor.json b/test_resources/mock_push_event_with_new_contributor.json new file mode 100644 index 0000000..9e7e933 --- /dev/null +++ b/test_resources/mock_push_event_with_new_contributor.json @@ -0,0 +1,59 @@ +[ + { + "id": "44780518361", + "type": "PushEvent", + "actor": { + "id": 3342754, + "login": "chaseWillden", + "display_login": "chaseWillden", + "gravatar_id": "", + "url": "https://api.github.com/users/chaseWillden", + "avatar_url": "https://avatars.githubusercontent.com/u/3342754?" + }, + "repo": { + "id": 893916892, + "name": "delta-rs/delta", + "url": "https://api.github.com/repos/delta-rs/delta" + }, + "payload": { + "repository_id": 893916892, + "push_id": 21701672271, + "size": 2, + "distinct_size": 1, + "ref": "refs/heads/master", + "head": "58b39df43a09d54fb14bfc022447175e428c52cb", + "before": "d996eb17862f53c0800580d96ac9f8b8082d2ac6", + "commits": [ + { + "sha": "c40055e305bcb94fd7d6eeaa77d043dbf53c86ce", + "author": { + "email": "new_contributor@gmail.com", + "name": "NEW CONTRIBUTOR" + }, + "message": "resolve #136 fixes the floating point math for metal", + "distinct": false, + "url": "https://api.github.com/repos/delta-rs/delta/commits/c40055e305bcb94fd7d6eeaa77d043dbf53c86ce" + }, + { + "sha": "58b39df43a09d54fb14bfc022447175e428c52cb", + "author": { + "email": "new_contributor@gmail.com", + "name": "NEW CONTRIBUTOR" + }, + "message": "NEW CONTRIBUTOR COMMIT MESSAGE", + "distinct": true, + "url": "https://api.github.com/repos/delta-rs/delta/commits/58b39df43a09d54fb14bfc022447175e428c52cb" + } + ] + }, + "public": true, + "created_at": "2024-12-13T22:37:42Z", + "org": { + "id": 189621827, + "login": "delta-rs", + "gravatar_id": "", + "url": "https://api.github.com/orgs/delta-rs", + "avatar_url": "https://avatars.githubusercontent.com/u/189621827?" + } + } +] diff --git a/test_resources/mock_release_event.json b/test_resources/mock_release_event.json new file mode 100644 index 0000000..5280a2c --- /dev/null +++ b/test_resources/mock_release_event.json @@ -0,0 +1,99 @@ +[ + { + "id": "44699605664", + "type": "ReleaseEvent", + "actor": { + "id": 33717111, + "login": "mjovanc", + "display_login": "mjovanc", + "gravatar_id": "", + "url": "https://api.github.com/users/mjovanc", + "avatar_url": "https://avatars.githubusercontent.com/u/33717111?" + }, + "repo": { + "id": 893916892, + "name": "delta-rs/delta", + "url": "https://api.github.com/repos/delta-rs/delta" + }, + "payload": { + "action": "published", + "release": { + "url": "https://api.github.com/repos/delta-rs/delta/releases/190149962", + "assets_url": "https://api.github.com/repos/delta-rs/delta/releases/190149962/assets", + "upload_url": "https://uploads.github.com/repos/delta-rs/delta/releases/190149962/assets{?name,label}", + "html_url": "https://github.com/delta-rs/delta/releases/tag/v0.1.0", + "id": 190149962, + "author": { + "login": "mjovanc", + "id": 33717111, + "node_id": "MDQ6VXNlcjMzNzE3MTEx", + "avatar_url": "https://avatars.githubusercontent.com/u/33717111?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/mjovanc", + "html_url": "https://github.com/mjovanc", + "followers_url": "https://api.github.com/users/mjovanc/followers", + "following_url": "https://api.github.com/users/mjovanc/following{/other_user}", + "gists_url": "https://api.github.com/users/mjovanc/gists{/gist_id}", + "starred_url": "https://api.github.com/users/mjovanc/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mjovanc/subscriptions", + "organizations_url": "https://api.github.com/users/mjovanc/orgs", + "repos_url": "https://api.github.com/users/mjovanc/repos", + "events_url": "https://api.github.com/users/mjovanc/events{/privacy}", + "received_events_url": "https://api.github.com/users/mjovanc/received_events", + "type": "User", + "user_view_type": "public", + "site_admin": false + }, + "node_id": "RE_kwDONUgW3M4LVXVK", + "tag_name": "v0.1.0", + "target_commitish": "master", + "name": "RELEASE VERSION", + "draft": false, + "prerelease": true, + "created_at": "2024-12-11T18:40:23Z", + "published_at": "2024-12-11T18:41:03Z", + "assets": [ + + ], + "tarball_url": "https://api.github.com/repos/delta-rs/delta/tarball/v0.1.0", + "zipball_url": "https://api.github.com/repos/delta-rs/delta/zipball/v0.1.0", + "body": "## What's Changed\r\n\r\n* Add code to download mnist by @chaseWillden in https://github.com/delta-rs/delta/pull/4\r\n* Implement tensor random and zeros functions. Add size to shape by @chaseWillden in https://github.com/delta-rs/delta/pull/5\r\n* Fit model by @chaseWillden in https://github.com/delta-rs/delta/pull/6\r\n* Adding new dataset CIFAR-10 and example project by @mjovanc in https://github.com/delta-rs/delta/pull/24\r\n* Mnist Example with Adam Optimizer by @chaseWillden in https://github.com/delta-rs/delta/pull/25\r\n* Add cross entropy loss by @chaseWillden in https://github.com/delta-rs/delta/pull/27\r\n* Split out layers models by @mjovanc in https://github.com/delta-rs/delta/pull/33\r\n* Loss decrease by @chaseWillden in https://github.com/delta-rs/delta/pull/39\r\n* Adding optimization for performance and cleanup by @mjovanc in https://github.com/delta-rs/delta/pull/40\r\n* Improving sequential model output while training by @mjovanc in https://github.com/delta-rs/delta/pull/43\r\n* Save model by @chaseWillden in https://github.com/delta-rs/delta/pull/46\r\n* Adding logging library by @chaseWillden in https://github.com/delta-rs/delta/pull/50\r\n* Add imagenet_v2 by @chaseWillden in https://github.com/delta-rs/delta/pull/51\r\n* Helper function adam by @mjovanc in https://github.com/delta-rs/delta/pull/52\r\n* Adding println to fit function by @mjovanc in https://github.com/delta-rs/delta/pull/53\r\n* Fix unit test, test_adam_optimizer_incompatible_shapes in adam.rs by @mjovanc in https://github.com/delta-rs/delta/pull/68\r\n* Refactoring and cleanup by @mjovanc in https://github.com/delta-rs/delta/pull/70\r\n* Impl validate func sequential model by @mjovanc in https://github.com/delta-rs/delta/pull/73\r\n* Fix split_at to allow dynamic shapes by @chaseWillden in https://github.com/delta-rs/delta/pull/75\r\n* Implement Xavier or He initialization of random weights by @chaseWillden in https://github.com/delta-rs/delta/pull/77\r\n* Implement leaky relu by @chaseWillden in https://github.com/delta-rs/delta/pull/83\r\n* Implements prelu by @chaseWillden in https://github.com/delta-rs/delta/pull/85\r\n* Implement gelu by @chaseWillden in https://github.com/delta-rs/delta/pull/87\r\n* Implement ada delta optimizer by @chaseWillden in https://github.com/delta-rs/delta/pull/92\r\n* Implement the other optimizers by @chaseWillden in https://github.com/delta-rs/delta/pull/94\r\n* Implements huber and mean aboslute error by @chaseWillden in https://github.com/delta-rs/delta/pull/96\r\n\r\n## New Contributors\r\n* @chaseWillden made their first contribution in https://github.com/delta-rs/delta/pull/4\r\n* @mjovanc made their first contribution in https://github.com/delta-rs/delta/pull/24\r\n* @dependabot made their first contribution in https://github.com/delta-rs/delta/pull/65\r\n\r\n**Full Changelog**: https://github.com/delta-rs/delta/commits/v0.1.0", + "mentions_count": 3, + "mentions": [ + { + "avatar_url": "https://avatars.githubusercontent.com/u/3342754?v=4", + "login": "chaseWillden", + "profile_name": "Chase Willden", + "profile_url": "https://github.com/chaseWillden", + "avatar_user_actor": true + }, + { + "avatar_url": "https://avatars.githubusercontent.com/u/27347476?v=4", + "login": "dependabot", + "profile_name": "Dependabot", + "profile_url": "https://github.com/dependabot", + "avatar_user_actor": false + }, + { + "avatar_url": "https://avatars.githubusercontent.com/u/33717111?v=4", + "login": "mjovanc", + "profile_name": "Marcus Cvjeticanin", + "profile_url": "https://github.com/mjovanc", + "avatar_user_actor": true + } + ], + "short_description_html": "

What's Changed

\n", + "is_short_description_html_truncated": true + } + }, + "public": true, + "created_at": "2024-12-11T18:41:04Z", + "org": { + "id": 189621827, + "login": "delta-rs", + "gravatar_id": "", + "url": "https://api.github.com/orgs/delta-rs", + "avatar_url": "https://avatars.githubusercontent.com/u/189621827?" + } + } +] diff --git a/test_resources/mock_second_commits_page.json b/test_resources/mock_second_commits_page.json new file mode 100644 index 0000000..64ee8e4 --- /dev/null +++ b/test_resources/mock_second_commits_page.json @@ -0,0 +1,171 @@ +[ + { + "sha": "d996eb17862f53c0800580d96ac9f8b8082d2ac6", + "node_id": "C_kwDONUgW3NoAKGQ5OTZlYjE3ODYyZjUzYzA4MDA1ODBkOTZhYzlmOGI4MDgyZDJhYzY", + "commit": { + "author": { + "name": "Marcus Cvjeticanin", + "email": "mjovanc@icloud.com", + "date": "2024-12-13T13:37:51Z" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com", + "date": "2024-12-13T13:37:51Z" + }, + "message": "Merge pull request #135 from delta-rs/mjovanc-patch-1\n\nUpdate README.md", + "tree": { + "sha": "78e2d4ef3efcac8fc527d963881d5b1012f979c3", + "url": "https://api.github.com/repos/delta-rs/delta/git/trees/78e2d4ef3efcac8fc527d963881d5b1012f979c3" + }, + "url": "https://api.github.com/repos/delta-rs/delta/git/commits/d996eb17862f53c0800580d96ac9f8b8082d2ac6", + "comment_count": 0, + "verification": { + "verified": true, + "reason": "valid", + "signature": "-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJnXDivCRC1aQ7uu5UhlAAA+dUQABwJGX9t/lca4NoQsGje0YzG\nBy/n0lAo6kL3a5pY9HBC/rICryU3bWmmqA0k3jwKCy0XRsvvlnfTZsyBHrl9SJui\n/qldwVMHk45Ff6RW+J4kxW65tEEuLNZfJZhn/1r3s7aiuGf9B7YbV9VplFCnWOAl\nJfxDbE3aFZtGjQRaRh0aRWAdUUViYmktAiQ4hcji82EDemS8qbrVqXp41OQHWifU\nZlg7DW21nY+WqQwxzZI9bFfQENzZqeJCRvk+dDDLfEaQctKGcjgeGINskGNtBJSJ\nd3z+xTW1sdw15kSRhxGhP2tb1AAH81F4vUyFs+JUYKbWHGudBeQ1q6hqUuLV9HWX\nDtl4CcA0XOJwh4kByFJSc4V4DW3I0DtY0NbOsdFLw/eC4MQ0EjqAGeI4tjjHuJyC\n0J+Ty3PK+cOJMiUn2eQugzGKr4vwRan5/7pUYCXSPbTjIR7jvnM8JSiqAp3V0gZC\ncmw8Q8xG2VsipgTIsP5tjSgXAjDYAg9/E5PrpC0ZBIK6RDfdJBbB5SK+msuxCH5S\n05Vmye7OUBlTCiBVzRLdFUEFxzGgbklIkMDyj+6J6f3v91yCZU2hlqSGxHwW4ruU\nVsR78vigYfgDykZ4FqbllfdqJg++DLe0iD0Dzr5e+qwiiuN7gbsKLSRqGv8pueMy\n9r3ixKgBAkLlKHFrQAsE\n=8QmI\n-----END PGP SIGNATURE-----\n", + "payload": "tree 78e2d4ef3efcac8fc527d963881d5b1012f979c3\nparent b2468247c213e546bcb02d42bc6a20b1c75cb74b\nparent 2aac6d45f14acac581cc64423b7c21c4ef08d8c9\nauthor Marcus Cvjeticanin 1734097071 +0100\ncommitter GitHub 1734097071 +0100\n\nMerge pull request #135 from delta-rs/mjovanc-patch-1\n\nUpdate README.md", + "verified_at": "2024-12-13T13:41:31Z" + } + }, + "url": "https://api.github.com/repos/delta-rs/delta/commits/d996eb17862f53c0800580d96ac9f8b8082d2ac6", + "html_url": "https://github.com/delta-rs/delta/commit/d996eb17862f53c0800580d96ac9f8b8082d2ac6", + "comments_url": "https://api.github.com/repos/delta-rs/delta/commits/d996eb17862f53c0800580d96ac9f8b8082d2ac6/comments", + "author": { + "login": "mjovanc", + "id": 33717111, + "node_id": "MDQ6VXNlcjMzNzE3MTEx", + "avatar_url": "https://avatars.githubusercontent.com/u/33717111?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/mjovanc", + "html_url": "https://github.com/mjovanc", + "followers_url": "https://api.github.com/users/mjovanc/followers", + "following_url": "https://api.github.com/users/mjovanc/following{/other_user}", + "gists_url": "https://api.github.com/users/mjovanc/gists{/gist_id}", + "starred_url": "https://api.github.com/users/mjovanc/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mjovanc/subscriptions", + "organizations_url": "https://api.github.com/users/mjovanc/orgs", + "repos_url": "https://api.github.com/users/mjovanc/repos", + "events_url": "https://api.github.com/users/mjovanc/events{/privacy}", + "received_events_url": "https://api.github.com/users/mjovanc/received_events", + "type": "User", + "user_view_type": "public", + "site_admin": false + }, + "committer": { + "login": "web-flow", + "id": 19864447, + "node_id": "MDQ6VXNlcjE5ODY0NDQ3", + "avatar_url": "https://avatars.githubusercontent.com/u/19864447?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/web-flow", + "html_url": "https://github.com/web-flow", + "followers_url": "https://api.github.com/users/web-flow/followers", + "following_url": "https://api.github.com/users/web-flow/following{/other_user}", + "gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}", + "starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/web-flow/subscriptions", + "organizations_url": "https://api.github.com/users/web-flow/orgs", + "repos_url": "https://api.github.com/users/web-flow/repos", + "events_url": "https://api.github.com/users/web-flow/events{/privacy}", + "received_events_url": "https://api.github.com/users/web-flow/received_events", + "type": "User", + "user_view_type": "public", + "site_admin": false + }, + "parents": [ + { + "sha": "b2468247c213e546bcb02d42bc6a20b1c75cb74b", + "url": "https://api.github.com/repos/delta-rs/delta/commits/b2468247c213e546bcb02d42bc6a20b1c75cb74b", + "html_url": "https://github.com/delta-rs/delta/commit/b2468247c213e546bcb02d42bc6a20b1c75cb74b" + }, + { + "sha": "2aac6d45f14acac581cc64423b7c21c4ef08d8c9", + "url": "https://api.github.com/repos/delta-rs/delta/commits/2aac6d45f14acac581cc64423b7c21c4ef08d8c9", + "html_url": "https://github.com/delta-rs/delta/commit/2aac6d45f14acac581cc64423b7c21c4ef08d8c9" + } + ] + }, + { + "sha": "2aac6d45f14acac581cc64423b7c21c4ef08d8c9", + "node_id": "C_kwDONUgW3NoAKDJhYWM2ZDQ1ZjE0YWNhYzU4MWNjNjQ0MjNiN2MyMWM0ZWYwOGQ4Yzk", + "commit": { + "author": { + "name": "Marcus Cvjeticanin", + "email": "mjovanc@icloud.com", + "date": "2024-12-13T13:36:28Z" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com", + "date": "2024-12-13T13:36:28Z" + }, + "message": "Update README.md", + "tree": { + "sha": "78e2d4ef3efcac8fc527d963881d5b1012f979c3", + "url": "https://api.github.com/repos/delta-rs/delta/git/trees/78e2d4ef3efcac8fc527d963881d5b1012f979c3" + }, + "url": "https://api.github.com/repos/delta-rs/delta/git/commits/2aac6d45f14acac581cc64423b7c21c4ef08d8c9", + "comment_count": 0, + "verification": { + "verified": true, + "reason": "valid", + "signature": "-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJnXDhdCRC1aQ7uu5UhlAAA6vEQAK6fdwsIGdeeY/l8aUGetB5u\nsoDJZ59drgTVYSDqr76/A9T2SGMrweOYmzb3spSNyYEt4c6A7Jpoe0OrUDpvWuZ6\ngrgaYLUne6KU9PI7qkeu8BXXLEfKsENG0QBNhdEDuxxCaV2t+eVa9i2SSTaO9obG\ncED8TfCccs7kuP4LZLxlXU00wyqK3shNuqP5PmhMaPgZrMK1g3/P4f7eDb1XYUDf\nTGIChLPCUNSSn8VfxFAmeKBe5XbW3pZW7ZAmeBerVoO8PFbowNDF7LB2qLyd7mAM\nPSlmshsyl+RwwscXPbeSZzWw4WsEEG8tiHzjN9FQBYCXpmMfph1r7aYTvxT5CpnX\n5nySRsQ4ZPAl4tqva41Aokn5KGUROJF6BQnePI3qlGh35C4eGnJbwrMMyD9STVZX\n0bZVXh0Xi7Unf2njhdkPMNtR9z7ExKDQhvabAarzoKZKErNQ4x1dXdy9jxkDbZVQ\nXblHLfCzeCEBNWO+Mvr8HGKj0AfTnshNnpGtsoe1r5O2swJAkmHnfgEduDuqUAtd\n051+q9CP671WpbXmn7emDcyabeMytLR6r7euW/ZPZMxn09G3BTLxFoGmF3Erx9F1\nCQTetUQJ5ngqveSsk5HrCvQwqIKN2CKRUdbWVpJFRuJHzsPgQBN+Bu9j1evEoJ02\nXhqJCR0iABP8ZgLOvYxO\n=9zqn\n-----END PGP SIGNATURE-----\n", + "payload": "tree 78e2d4ef3efcac8fc527d963881d5b1012f979c3\nparent b2468247c213e546bcb02d42bc6a20b1c75cb74b\nauthor Marcus Cvjeticanin 1734096988 +0100\ncommitter GitHub 1734096988 +0100\n\nUpdate README.md", + "verified_at": "2024-12-13T13:36:30Z" + } + }, + "url": "https://api.github.com/repos/delta-rs/delta/commits/2aac6d45f14acac581cc64423b7c21c4ef08d8c9", + "html_url": "https://github.com/delta-rs/delta/commit/2aac6d45f14acac581cc64423b7c21c4ef08d8c9", + "comments_url": "https://api.github.com/repos/delta-rs/delta/commits/2aac6d45f14acac581cc64423b7c21c4ef08d8c9/comments", + "author": { + "login": "mjovanc", + "id": 33717111, + "node_id": "MDQ6VXNlcjMzNzE3MTEx", + "avatar_url": "https://avatars.githubusercontent.com/u/33717111?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/mjovanc", + "html_url": "https://github.com/mjovanc", + "followers_url": "https://api.github.com/users/mjovanc/followers", + "following_url": "https://api.github.com/users/mjovanc/following{/other_user}", + "gists_url": "https://api.github.com/users/mjovanc/gists{/gist_id}", + "starred_url": "https://api.github.com/users/mjovanc/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mjovanc/subscriptions", + "organizations_url": "https://api.github.com/users/mjovanc/orgs", + "repos_url": "https://api.github.com/users/mjovanc/repos", + "events_url": "https://api.github.com/users/mjovanc/events{/privacy}", + "received_events_url": "https://api.github.com/users/mjovanc/received_events", + "type": "User", + "user_view_type": "public", + "site_admin": false + }, + "committer": { + "login": "web-flow", + "id": 19864447, + "node_id": "MDQ6VXNlcjE5ODY0NDQ3", + "avatar_url": "https://avatars.githubusercontent.com/u/19864447?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/web-flow", + "html_url": "https://github.com/web-flow", + "followers_url": "https://api.github.com/users/web-flow/followers", + "following_url": "https://api.github.com/users/web-flow/following{/other_user}", + "gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}", + "starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/web-flow/subscriptions", + "organizations_url": "https://api.github.com/users/web-flow/orgs", + "repos_url": "https://api.github.com/users/web-flow/repos", + "events_url": "https://api.github.com/users/web-flow/events{/privacy}", + "received_events_url": "https://api.github.com/users/web-flow/received_events", + "type": "User", + "user_view_type": "public", + "site_admin": false + }, + "parents": [ + { + "sha": "b2468247c213e546bcb02d42bc6a20b1c75cb74b", + "url": "https://api.github.com/repos/delta-rs/delta/commits/b2468247c213e546bcb02d42bc6a20b1c75cb74b", + "html_url": "https://github.com/delta-rs/delta/commit/b2468247c213e546bcb02d42bc6a20b1c75cb74b" + } + ] + } +]