From 2d54ec52d1dcd77a7ebf0bdb4f56f7e62207dd9e Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 20 Mar 2026 12:14:26 +0100 Subject: [PATCH 01/11] Add automated PR check for contributing criteria Adds a new Rust binary crate at data/pr-check that runs on every PR touching data/tools/ and checks each newly added tool YAML against the contributing criteria: - More than 20 stars - More than one contributor - Repository is at least 3 months old The check posts a formatted Markdown comment on the PR summarising the results per tool, updating the existing bot comment on re-push rather than adding a new one each time. Non-GitHub sources are flagged for manual review. The CI step exits with a non-zero code when any criterion is not met, turning the check red. The workflow only triggers on PRs that touch data/tools/ and caches the cargo build to keep runs fast. --- .github/workflows/pr-check.yml | 49 + .gitignore | 3 +- data/pr-check/Cargo.lock | 1561 ++++++++++++++++++++++++++++++++ data/pr-check/Cargo.toml | 42 + data/pr-check/src/main.rs | 596 ++++++++++++ 5 files changed, 2250 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pr-check.yml create mode 100644 data/pr-check/Cargo.lock create mode 100644 data/pr-check/Cargo.toml create mode 100644 data/pr-check/src/main.rs diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml new file mode 100644 index 0000000000..c02a135c63 --- /dev/null +++ b/.github/workflows/pr-check.yml @@ -0,0 +1,49 @@ +name: PR Check + +on: + pull_request: + branches: [master] + paths: + - 'data/tools/**.yml' + +jobs: + pr-check: + runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: read + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Get changed tool files + id: changed + run: | + FILES=$(git diff --name-only --diff-filter=A origin/master...HEAD -- 'data/tools/*.yml' | tr '\n' ' ') + echo "files=$FILES" >> "$GITHUB_OUTPUT" + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Cache cargo registry + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + data/pr-check/target + key: pr-check-${{ runner.os }}-${{ hashFiles('data/pr-check/Cargo.lock') }} + restore-keys: | + pr-check-${{ runner.os }}- + + - name: Build pr-check + run: cargo build --release --manifest-path data/pr-check/Cargo.toml + + - name: Run pr-check + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ github.repository }} + PR_NUMBER: ${{ github.event.pull_request.number }} + run: | + data/pr-check/target/release/pr-check ${{ steps.changed.outputs.files }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3e81e8506a..6b0f775d83 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ logcli-linux-amd64 -logcli.zip \ No newline at end of file +logcli.zip +data/pr-check/target/ \ No newline at end of file diff --git a/data/pr-check/Cargo.lock b/data/pr-check/Cargo.lock new file mode 100644 index 0000000000..31f3a4aebd --- /dev/null +++ b/data/pr-check/Cargo.lock @@ -0,0 +1,1561 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[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 = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[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.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bitflags" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" + +[[package]] +name = "bumpalo" +version = "3.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" + +[[package]] +name = "cc" +version = "1.2.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a0dd1ca384932ff3641c8718a02769f1698e7563dc6974ffd03346116310423" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "chrono" +version = "0.4.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-link", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-core", + "futures-task", + "pin-project-lite", + "slab", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi", + "wasip2", + "wasm-bindgen", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hyper" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "pin-utils", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "tower-service", + "webpki-roots", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "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 = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" +dependencies = [ + "displaydoc", + "potential_utf", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" + +[[package]] +name = "icu_properties" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af" + +[[package]] +name = "icu_provider" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "2.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" +dependencies = [ + "equivalent", + "hashbrown", +] + +[[package]] +name = "ipnet" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" + +[[package]] +name = "iri-string" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c91338f0783edbd6195decb37bae672fd3b165faffb89bf7b9e6942f8b1a731a" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "js-sys" +version = "0.3.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b49715b7073f385ba4bc528e5747d02e66cb39c6146efb66b781f131f0fb399c" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "libc" +version = "0.2.183" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d" + +[[package]] +name = "litemap" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "lru-slab" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "mio" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pico-args" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315" + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "potential_utf" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" +dependencies = [ + "zerovec", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "pr-check" +version = "0.1.0" +dependencies = [ + "anyhow", + "chrono", + "pico-args", + "reqwest", + "serde", + "serde_json", + "serde_yaml", + "tokio", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quinn" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20" +dependencies = [ + "bytes", + "cfg_aliases", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls", + "socket2", + "thiserror", + "tokio", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-proto" +version = "0.11.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "434b42fec591c96ef50e21e886936e66d3cc3f737104fdb9b737c40ffb94c098" +dependencies = [ + "bytes", + "getrandom 0.3.4", + "lru-slab", + "rand", + "ring", + "rustc-hash", + "rustls", + "rustls-pki-types", + "slab", + "thiserror", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.60.2", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + +[[package]] +name = "reqwest" +version = "0.12.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" +dependencies = [ + "base64", + "bytes", + "futures-core", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "webpki-roots", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustc-hash" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" + +[[package]] +name = "rustls" +version = "0.23.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "758025cb5fccfd3bc2fd74708fd4682be41d99e5dff73c377c0646c6012c73a4" +dependencies = [ + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pki-types" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" +dependencies = [ + "web-time", + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[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 = "serde_yaml" +version = "0.9.34+deprecated" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" +dependencies = [ + "indexmap", + "itoa", + "ryu", + "serde", + "unsafe-libyaml", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tinystr" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.50.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27ad5e34374e03cfffefc301becb44e9dc3c17584f414349ebe29ed26661822d" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c55a2eff8b69ce66c84f85e1da1c233edc36ceb85a2058d11b0d6a3c7e7569c" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" +dependencies = [ + "bitflags", + "bytes", + "futures-util", + "http", + "http-body", + "iri-string", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", +] + +[[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.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-core", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +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 = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unsafe-libyaml" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861" + +[[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.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[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.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.2+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6532f9a5c1ece3798cb1c2cfdba640b9b3ba884f5db45973a6f442510a87d38e" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.64" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9c5522b3a28661442748e09d40924dfb9ca614b21c00d3fd135720e48b67db8" +dependencies = [ + "cfg-if", + "futures-util", + "js-sys", + "once_cell", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18a2d50fcf105fb33bb15f00e7a77b772945a2ee45dcf454961fd843e74c18e6" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03ce4caeaac547cdf713d280eda22a730824dd11e6b8c3ca9e42247b25c631e3" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75a326b8c223ee17883a4251907455a2431acc2791c98c26279376490c378c16" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "web-sys" +version = "0.3.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "854ba17bb104abfb26ba36da9729addc7ce7f06f5c0f90f3c391f8461cca21f9" +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", + "wasm-bindgen", +] + +[[package]] +name = "webpki-roots" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22cfaf3c063993ff62e73cb4311efde4db1efb31ab78a3e5c457939ad5cc0bed" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm 0.52.6", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[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_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[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_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[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_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[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_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[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_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" + +[[package]] +name = "writeable" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" + +[[package]] +name = "yoke" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.8.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "efbb2a062be311f2ba113ce66f697a4dc589f85e78a4aea276200804cea0ed87" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e8bc7269b54418e7aeeef514aa68f8690b8c0489a06b0136e5f57c4c5ccab89" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zerofrom" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" + +[[package]] +name = "zerotrie" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" diff --git a/data/pr-check/Cargo.toml b/data/pr-check/Cargo.toml new file mode 100644 index 0000000000..952e93d644 --- /dev/null +++ b/data/pr-check/Cargo.toml @@ -0,0 +1,42 @@ +[package] +name = "pr-check" +version = "0.1.0" +edition = "2024" +description = "Checks pull requests against contributing criteria" +license = "MIT" +repository = "https://github.com/analysis-tools-dev/static-analysis" + +[lints.clippy] +correctness = { level = "deny", priority = -1 } +style = { level = "warn", priority = -1 } +complexity = { level = "warn", priority = -1 } +perf = { level = "warn", priority = -1 } +suspicious = { level = "warn", priority = -1 } +cargo = { level = "warn", priority = -1 } +pedantic = { level = "warn", priority = -1 } +nursery = { level = "warn", priority = -1 } +missing_docs_in_private_items = "warn" +missing_errors_doc = "warn" +missing_panics_doc = "warn" +unwrap_used = "deny" +expect_used = "warn" +panic = "deny" +unimplemented = "deny" +unreachable = "deny" +todo = "warn" +print_stdout = "warn" +print_stderr = "warn" +dbg_macro = "warn" +module_name_repetitions = "allow" +similar_names = "allow" +too_many_lines = "allow" + +[dependencies] +anyhow = "1.0" +chrono = { version = "0.4", features = ["serde"] } +pico-args = "0.5" +reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false } +serde = { version = "1.0", features = ["derive"] } +serde_yaml = "0.9" +serde_json = "1.0" +tokio = { version = "1", features = ["rt-multi-thread", "macros"] } \ No newline at end of file diff --git a/data/pr-check/src/main.rs b/data/pr-check/src/main.rs new file mode 100644 index 0000000000..02e1b06261 --- /dev/null +++ b/data/pr-check/src/main.rs @@ -0,0 +1,596 @@ +//! PR contribution checker for analysis-tools-dev/static-analysis. +//! +//! Reads new or modified YAML files under `data/tools/` that were introduced +//! by a pull request, fetches metadata from the GitHub API for each tool's +//! source repository, and evaluates each tool against the contributing +//! criteria: +//! +//! - More than 20 stars +//! - More than one contributor +//! - Repository is at least 3 months old +//! +//! The results are posted as a single comment on the PR (updating an existing +//! bot comment if one already exists). The process exits with a non-zero status +//! code when any hard criterion is not met, causing CI to fail. +//! +//! Expected environment variables: +//! GITHUB_TOKEN - a token with `pull-requests: write` permission +//! GITHUB_REPOSITORY - owner/repo, e.g. "analysis-tools-dev/static-analysis" +//! PR_NUMBER - the pull request number + +use anyhow::{Context, Result, bail}; +use chrono::{DateTime, Duration, Utc}; +use serde::Deserialize; +use std::collections::HashMap; +use std::env; +use std::path::{Path, PathBuf}; + +// --------------------------------------------------------------------------- +// YAML tool schema (minimal subset we need) +// --------------------------------------------------------------------------- + +/// A parsed tool entry from `data/tools/.yml`. +#[derive(Debug, Deserialize)] +struct ToolEntry { + name: String, + source: Option, +} + +// --------------------------------------------------------------------------- +// GitHub REST API response types +// --------------------------------------------------------------------------- + +/// Response from `GET /repos/{owner}/{repo}`. +#[derive(Debug, Deserialize)] +struct RepoInfo { + stargazers_count: u64, + created_at: DateTime, +} + +/// One item from `GET /repos/{owner}/{repo}/contributors`. +#[derive(Debug, Deserialize)] +struct Contributor { + #[serde(rename = "type")] + account_type: String, +} + +/// One PR comment from `GET /repos/{owner}/{repo}/issues/{pr}/comments`. +#[derive(Debug, Deserialize)] +struct IssueComment { + id: u64, + body: String, + user: CommentUser, +} + +/// The author of a comment. +#[derive(Debug, Deserialize)] +struct CommentUser { + login: String, + #[serde(rename = "type")] + account_type: String, +} + +// --------------------------------------------------------------------------- +// Criteria thresholds +// --------------------------------------------------------------------------- + +const MIN_STARS: u64 = 20; +const MIN_CONTRIBUTORS: usize = 2; +const MIN_AGE_DAYS: i64 = 90; + +// Marker text embedded in every comment we post so we can find and update it. +const COMMENT_MARKER: &str = ""; + +// --------------------------------------------------------------------------- +// Check result types +// --------------------------------------------------------------------------- + +/// The outcome of one criterion check. +#[derive(Debug)] +enum CheckResult { + Pass(String), + Fail(String), + Skip(String), +} + +impl CheckResult { + fn is_fail(&self) -> bool { + matches!(self, Self::Fail(_)) + } + + fn emoji(&self) -> &'static str { + match self { + Self::Pass(_) => "✅", + Self::Fail(_) => "❌", + Self::Skip(_) => "⚪", + } + } + + fn message(&self) -> &str { + match self { + Self::Pass(m) | Self::Fail(m) | Self::Skip(m) => m, + } + } +} + +/// All checks for a single tool. +#[derive(Debug)] +struct ToolReport { + name: String, + source: Option, + stars: CheckResult, + contributors: CheckResult, + age: CheckResult, + /// Non-GitHub source repositories cannot be checked automatically. + note: Option, +} + +impl ToolReport { + fn any_fail(&self) -> bool { + self.stars.is_fail() || self.contributors.is_fail() || self.age.is_fail() + } +} + +// --------------------------------------------------------------------------- +// GitHub API client +// --------------------------------------------------------------------------- + +struct GithubClient { + client: reqwest::Client, + token: String, +} + +impl GithubClient { + /// Creates a new client. + /// + /// # Errors + /// + /// Returns an error if the `reqwest` client cannot be constructed. + fn new(token: String) -> Result { + let client = reqwest::Client::builder() + .user_agent("pr-check-bot/1.0 (analysis-tools-dev)") + .build() + .context("Failed to build HTTP client")?; + Ok(Self { client, token }) + } + + /// Sends an authenticated GET request and deserialises the JSON body. + /// + /// # Errors + /// + /// Returns an error on network failure or if the response cannot be + /// deserialised as `T`. + async fn get Deserialize<'de>>(&self, url: &str) -> Result { + let resp = self + .client + .get(url) + .header("Authorization", format!("Bearer {}", self.token)) + .header("Accept", "application/vnd.github+json") + .header("X-GitHub-Api-Version", "2022-11-28") + .send() + .await + .with_context(|| format!("GET {url} failed"))?; + + let status = resp.status(); + if !status.is_success() { + let body = resp.text().await.unwrap_or_default(); + bail!("GET {url} returned {status}: {body}"); + } + + resp.json::() + .await + .with_context(|| format!("Failed to deserialise response from {url}")) + } + + /// Fetches repository metadata. + /// + /// # Errors + /// + /// Returns an error if the API call fails. + async fn repo_info(&self, owner: &str, repo: &str) -> Result { + let url = format!("https://api.github.com/repos/{owner}/{repo}"); + self.get::(&url).await + } + + /// Fetches the contributor list (up to 100, which is enough to confirm + /// whether there is more than one human contributor). + /// + /// # Errors + /// + /// Returns an error if the API call fails. + async fn contributor_count(&self, owner: &str, repo: &str) -> Result { + let url = + format!("https://api.github.com/repos/{owner}/{repo}/contributors?per_page=100&anon=0"); + let contributors = self.get::>(&url).await?; + // Exclude bot accounts from the contributor count. + let human_count = contributors + .iter() + .filter(|c| c.account_type != "Bot") + .count(); + Ok(human_count) + } + + /// Lists all comments on a PR/issue. + /// + /// # Errors + /// + /// Returns an error if the API call fails. + async fn list_pr_comments(&self, repo: &str, pr: u64) -> Result> { + let url = + format!("https://api.github.com/repos/{repo}/issues/{pr}/comments?per_page=100"); + self.get::>(&url).await + } + + /// Creates a new PR comment. + /// + /// # Errors + /// + /// Returns an error if the API call fails. + async fn create_pr_comment(&self, repo: &str, pr: u64, body: &str) -> Result<()> { + let url = format!("https://api.github.com/repos/{repo}/issues/{pr}/comments"); + let mut payload = HashMap::new(); + payload.insert("body", body); + + let resp = self + .client + .post(&url) + .header("Authorization", format!("Bearer {}", self.token)) + .header("Accept", "application/vnd.github+json") + .header("X-GitHub-Api-Version", "2022-11-28") + .json(&payload) + .send() + .await + .with_context(|| format!("POST {url} failed"))?; + + let status = resp.status(); + if !status.is_success() { + let body = resp.text().await.unwrap_or_default(); + bail!("POST {url} returned {status}: {body}"); + } + Ok(()) + } + + /// Updates an existing PR comment. + /// + /// # Errors + /// + /// Returns an error if the API call fails. + async fn update_pr_comment(&self, repo: &str, comment_id: u64, body: &str) -> Result<()> { + let url = format!("https://api.github.com/repos/{repo}/issues/comments/{comment_id}"); + let mut payload = HashMap::new(); + payload.insert("body", body); + + let resp = self + .client + .patch(&url) + .header("Authorization", format!("Bearer {}", self.token)) + .header("Accept", "application/vnd.github+json") + .header("X-GitHub-Api-Version", "2022-11-28") + .json(&payload) + .send() + .await + .with_context(|| format!("PATCH {url} failed"))?; + + let status = resp.status(); + if !status.is_success() { + let body = resp.text().await.unwrap_or_default(); + bail!("PATCH {url} returned {status}: {body}"); + } + Ok(()) + } +} + +// --------------------------------------------------------------------------- +// Core logic +// --------------------------------------------------------------------------- + +/// Parses `owner` and `repo` out of a GitHub URL like +/// `https://github.com/owner/repo` or `https://github.com/owner/repo/`. +/// Returns `None` for non-GitHub URLs or malformed paths. +fn parse_github_repo(url: &str) -> Option<(String, String)> { + let url = url.trim_end_matches('/'); + let without_scheme = url + .strip_prefix("https://github.com/") + .or_else(|| url.strip_prefix("http://github.com/"))?; + + let parts: Vec<&str> = without_scheme.splitn(3, '/').collect(); + if parts.len() < 2 || parts[0].is_empty() || parts[1].is_empty() { + return None; + } + // Reject sub-paths inside a repo (e.g. /tree/main/…). + if parts.len() == 3 && !parts[2].is_empty() { + return None; + } + Some((parts[0].to_owned(), parts[1].to_owned())) +} + +/// Reads and deserialises a single tool YAML file. +/// +/// # Errors +/// +/// Returns an error if the file cannot be read or parsed. +fn read_tool(path: &Path) -> Result { + let f = std::fs::File::open(path).with_context(|| format!("Cannot open {}", path.display()))?; + serde_yaml::from_reader(f).with_context(|| format!("Cannot parse {}", path.display())) +} + +/// Runs all contributing-criteria checks for one tool. +/// +/// # Errors +/// +/// Returns an error only for unexpected failures (network, auth). Missing +/// criteria produce `CheckResult::Fail` values, not errors. +async fn check_tool(client: &GithubClient, tool: &ToolEntry) -> Result { + let source = tool.source.clone(); + + let gh_coords = source.as_deref().and_then(parse_github_repo); + + if let Some((owner, repo)) = gh_coords { + let repo_result = client.repo_info(&owner, &repo).await; + let contributors_result = client.contributor_count(&owner, &repo).await; + + let stars_check = match &repo_result { + Ok(info) => { + let s = info.stargazers_count; + if s >= MIN_STARS { + CheckResult::Pass(format!("{s} stars")) + } else { + CheckResult::Fail(format!( + "{s} stars (minimum is {MIN_STARS})" + )) + } + } + Err(e) => CheckResult::Fail(format!("Could not fetch repo info: {e}")), + }; + + let age_check = match &repo_result { + Ok(info) => { + let age = Utc::now().signed_duration_since(info.created_at); + let days = age.num_days(); + let months = days / 30; + if age >= Duration::days(MIN_AGE_DAYS) { + CheckResult::Pass(format!("created {days} days ago (~{months} months)")) + } else { + let remaining = MIN_AGE_DAYS - days; + CheckResult::Fail(format!( + "created {days} days ago, needs {remaining} more days to meet the 3-month minimum" + )) + } + } + Err(_) => CheckResult::Skip("Could not determine age (repo info unavailable)".into()), + }; + + let contributors_check = match contributors_result { + Ok(count) => { + if count >= MIN_CONTRIBUTORS { + CheckResult::Pass(format!("{count} contributors")) + } else { + CheckResult::Fail(format!( + "{count} contributor(s) (minimum is {MIN_CONTRIBUTORS})" + )) + } + } + Err(e) => CheckResult::Fail(format!("Could not fetch contributors: {e}")), + }; + + Ok(ToolReport { + name: tool.name.clone(), + source, + stars: stars_check, + contributors: contributors_check, + age: age_check, + note: None, + }) + } else { + // Not a GitHub repo or no source field. + let note = if source.is_none() { + "No source URL provided. Please add a `source` field pointing to the repository.".into() + } else { + "Source is not a GitHub repository. Stars, contributor count, and age cannot be checked automatically. Please verify these manually against the contributing criteria.".into() + }; + + Ok(ToolReport { + name: tool.name.clone(), + source, + stars: CheckResult::Skip("N/A (non-GitHub source)".into()), + contributors: CheckResult::Skip("N/A (non-GitHub source)".into()), + age: CheckResult::Skip("N/A (non-GitHub source)".into()), + note: Some(note), + }) + } +} + +/// Renders all tool reports into a Markdown comment body. +fn render_comment(reports: &[ToolReport]) -> String { + let any_failures = reports.iter().any(|r| r.any_fail()); + + let mut out = String::new(); + + out.push_str(COMMENT_MARKER); + out.push('\n'); + out.push_str("## Contributing criteria check\n\n"); + + if reports.is_empty() { + out.push_str("No new tool files detected in `data/tools/`. Nothing to check.\n"); + return out; + } + + for report in reports { + let status_icon = if report.any_fail() { "❌" } else { "✅" }; + out.push_str(&format!("### {} `{}`\n\n", status_icon, report.name)); + + if let Some(src) = &report.source { + out.push_str(&format!("Source: {src}\n\n")); + } + + if let Some(note) = &report.note { + out.push_str(&format!("> **Note:** {note}\n\n")); + } + + out.push_str("| Criterion | Result |\n"); + out.push_str("|---|---|\n"); + + for (label, check) in [ + ("Stars (min 20)", &report.stars), + ("Contributors (min 2)", &report.contributors), + ("Age (min 3 months)", &report.age), + ] { + out.push_str(&format!( + "| {} | {} {} |\n", + label, + check.emoji(), + check.message() + )); + } + + out.push('\n'); + } + + if any_failures { + out.push_str("---\n\n"); + out.push_str( + "One or more tools do not meet the [contributing criteria](CONTRIBUTING.md) yet. \ + We will keep this PR open. Feel free to update it once the thresholds are met.\n", + ); + } else { + out.push_str("---\n\n"); + out.push_str("All criteria passed. Thank you for your contribution.\n"); + } + + out +} + +/// Posts or updates the bot comment on the PR. +/// +/// # Errors +/// +/// Returns an error if the GitHub API calls fail. +async fn upsert_comment( + client: &GithubClient, + repo: &str, + pr: u64, + body: &str, +) -> Result<()> { + let comments = client.list_pr_comments(repo, pr).await?; + + let existing = comments.iter().find(|c| { + (c.user.account_type == "Bot" || c.user.login.ends_with("[bot]") || c.user.login == "github-actions[bot]") + && c.body.contains(COMMENT_MARKER) + }); + + match existing { + Some(c) => client.update_pr_comment(repo, c.id, body).await, + None => client.create_pr_comment(repo, pr, body).await, + } +} + +// --------------------------------------------------------------------------- +// Entry point +// --------------------------------------------------------------------------- + +/// Parses a PR number from a string. +/// +/// # Errors +/// +/// Returns an error if the string is not a valid integer. +fn parse_pr_number(s: &str) -> Result { + s.trim() + .parse::() + .with_context(|| format!("Invalid PR number: {s}")) +} + +#[tokio::main] +async fn main() -> Result<()> { + let token = env::var("GITHUB_TOKEN").context("GITHUB_TOKEN not set")?; + let gh_repo = + env::var("GITHUB_REPOSITORY").context("GITHUB_REPOSITORY not set")?; + let pr_number_str = env::var("PR_NUMBER").context("PR_NUMBER not set")?; + let pr_number = parse_pr_number(&pr_number_str)?; + + // Remaining CLI arguments are the paths to check. + // Usage: pr-check data/tools/foo.yml data/tools/bar.yml + let pico = pico_args::Arguments::from_env(); + let tool_paths: Vec = pico.finish().into_iter().map(PathBuf::from).collect(); + + let tool_paths: Vec = tool_paths + .into_iter() + .filter(|p| { + p.starts_with("data/tools") + && p.extension().and_then(|e| e.to_str()) == Some("yml") + }) + .collect(); + + let client = GithubClient::new(token)?; + + let mut reports = Vec::new(); + for path in &tool_paths { + let tool = read_tool(path) + .with_context(|| format!("Failed to read {}", path.display()))?; + eprintln!("Checking '{}'...", tool.name); + let report = check_tool(&client, &tool).await?; + reports.push(report); + } + + let comment_body = render_comment(&reports); + + upsert_comment(&client, &gh_repo, pr_number, &comment_body).await?; + + let any_failures = reports.iter().any(|r| r.any_fail()); + if any_failures { + eprintln!("One or more tools failed the contributing criteria check."); + std::process::exit(1); + } + + Ok(()) +} + +// --------------------------------------------------------------------------- +// Tests +// --------------------------------------------------------------------------- + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn parses_plain_github_url() { + let result = parse_github_repo("https://github.com/owner/repo"); + assert_eq!(result, Some(("owner".into(), "repo".into()))); + } + + #[test] + fn parses_trailing_slash() { + let result = parse_github_repo("https://github.com/owner/repo/"); + assert_eq!(result, Some(("owner".into(), "repo".into()))); + } + + #[test] + fn rejects_subpath() { + let result = parse_github_repo("https://github.com/owner/repo/tree/main/subdir"); + assert!(result.is_none()); + } + + #[test] + fn rejects_gitlab() { + let result = parse_github_repo("https://gitlab.com/owner/repo"); + assert!(result.is_none()); + } + + #[test] + fn rejects_missing_repo() { + let result = parse_github_repo("https://github.com/owner"); + assert!(result.is_none()); + } + + #[test] + fn render_comment_no_files() { + let comment = render_comment(&[]); + assert!(comment.contains("No new tool files detected")); + } + + #[test] + fn render_comment_contains_marker() { + let comment = render_comment(&[]); + assert!(comment.contains(COMMENT_MARKER)); + } +} \ No newline at end of file From 465353903bc60b24512485d774e2ddb2242247f9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 23 Mar 2026 00:01:39 +0100 Subject: [PATCH 02/11] Fix PR comment upsert to match on marker text only --- data/pr-check/src/main.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/data/pr-check/src/main.rs b/data/pr-check/src/main.rs index 02e1b06261..78b8505554 100644 --- a/data/pr-check/src/main.rs +++ b/data/pr-check/src/main.rs @@ -59,15 +59,6 @@ struct Contributor { struct IssueComment { id: u64, body: String, - user: CommentUser, -} - -/// The author of a comment. -#[derive(Debug, Deserialize)] -struct CommentUser { - login: String, - #[serde(rename = "type")] - account_type: String, } // --------------------------------------------------------------------------- @@ -473,10 +464,7 @@ async fn upsert_comment( ) -> Result<()> { let comments = client.list_pr_comments(repo, pr).await?; - let existing = comments.iter().find(|c| { - (c.user.account_type == "Bot" || c.user.login.ends_with("[bot]") || c.user.login == "github-actions[bot]") - && c.body.contains(COMMENT_MARKER) - }); + let existing = comments.iter().find(|c| c.body.contains(COMMENT_MARKER)); match existing { Some(c) => client.update_pr_comment(repo, c.id, body).await, From 0a711f4234c1fd7f3ad2a1275f51d74c055ab0f3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 23 Mar 2026 00:03:03 +0100 Subject: [PATCH 03/11] Remove section divider comments --- data/pr-check/src/main.rs | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/data/pr-check/src/main.rs b/data/pr-check/src/main.rs index 78b8505554..1584c1695a 100644 --- a/data/pr-check/src/main.rs +++ b/data/pr-check/src/main.rs @@ -25,10 +25,6 @@ use std::collections::HashMap; use std::env; use std::path::{Path, PathBuf}; -// --------------------------------------------------------------------------- -// YAML tool schema (minimal subset we need) -// --------------------------------------------------------------------------- - /// A parsed tool entry from `data/tools/.yml`. #[derive(Debug, Deserialize)] struct ToolEntry { @@ -36,10 +32,6 @@ struct ToolEntry { source: Option, } -// --------------------------------------------------------------------------- -// GitHub REST API response types -// --------------------------------------------------------------------------- - /// Response from `GET /repos/{owner}/{repo}`. #[derive(Debug, Deserialize)] struct RepoInfo { @@ -61,10 +53,6 @@ struct IssueComment { body: String, } -// --------------------------------------------------------------------------- -// Criteria thresholds -// --------------------------------------------------------------------------- - const MIN_STARS: u64 = 20; const MIN_CONTRIBUTORS: usize = 2; const MIN_AGE_DAYS: i64 = 90; @@ -72,10 +60,6 @@ const MIN_AGE_DAYS: i64 = 90; // Marker text embedded in every comment we post so we can find and update it. const COMMENT_MARKER: &str = ""; -// --------------------------------------------------------------------------- -// Check result types -// --------------------------------------------------------------------------- - /// The outcome of one criterion check. #[derive(Debug)] enum CheckResult { @@ -122,10 +106,6 @@ impl ToolReport { } } -// --------------------------------------------------------------------------- -// GitHub API client -// --------------------------------------------------------------------------- - struct GithubClient { client: reqwest::Client, token: String, @@ -271,10 +251,6 @@ impl GithubClient { } } -// --------------------------------------------------------------------------- -// Core logic -// --------------------------------------------------------------------------- - /// Parses `owner` and `repo` out of a GitHub URL like /// `https://github.com/owner/repo` or `https://github.com/owner/repo/`. /// Returns `None` for non-GitHub URLs or malformed paths. @@ -472,10 +448,6 @@ async fn upsert_comment( } } -// --------------------------------------------------------------------------- -// Entry point -// --------------------------------------------------------------------------- - /// Parses a PR number from a string. /// /// # Errors @@ -532,10 +504,6 @@ async fn main() -> Result<()> { Ok(()) } -// --------------------------------------------------------------------------- -// Tests -// --------------------------------------------------------------------------- - #[cfg(test)] mod tests { use super::*; From 1b2833417fc7405bdecd0368435aaade75d5a507 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 23 Mar 2026 00:06:37 +0100 Subject: [PATCH 04/11] Move render and pr-check into a Cargo workspace Adds data/Cargo.toml as a workspace root so both crates share a single target directory and a common set of dependency versions via [workspace.dependencies]. pr-check now depends on the render crate directly and uses render::types::ParsedEntry instead of its own ToolEntry struct, removing the duplication. The Makefile and pr-check workflow are updated to target the workspace manifest. The gitignore entry is updated from data/pr-check/target/ to data/target/. --- .github/workflows/pr-check.yml | 10 ++++---- .gitignore | 2 +- Makefile | 14 +++++------ data/Cargo.toml | 16 +++++++++++++ data/pr-check/Cargo.toml | 18 +++++++------- data/pr-check/src/main.rs | 43 ++++++++++------------------------ data/render/Cargo.toml | 17 +++++++------- 7 files changed, 61 insertions(+), 59 deletions(-) create mode 100644 data/Cargo.toml diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index c02a135c63..1d21d3184e 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -4,7 +4,7 @@ on: pull_request: branches: [master] paths: - - 'data/tools/**.yml' + - "data/tools/**.yml" jobs: pr-check: @@ -32,13 +32,13 @@ jobs: path: | ~/.cargo/registry ~/.cargo/git - data/pr-check/target - key: pr-check-${{ runner.os }}-${{ hashFiles('data/pr-check/Cargo.lock') }} + data/target + key: pr-check-${{ runner.os }}-${{ hashFiles('data/Cargo.lock') }} restore-keys: | pr-check-${{ runner.os }}- - name: Build pr-check - run: cargo build --release --manifest-path data/pr-check/Cargo.toml + run: cargo build --release --manifest-path data/Cargo.toml -p pr-check - name: Run pr-check env: @@ -46,4 +46,4 @@ jobs: GITHUB_REPOSITORY: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }} run: | - data/pr-check/target/release/pr-check ${{ steps.changed.outputs.files }} \ No newline at end of file + data/target/release/pr-check ${{ steps.changed.outputs.files }} diff --git a/.gitignore b/.gitignore index 6b0f775d83..e0b9699933 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ logcli-linux-amd64 logcli.zip -data/pr-check/target/ \ No newline at end of file +data/target/ \ No newline at end of file diff --git a/Makefile b/Makefile index 338fccd66c..0edbac80eb 100644 --- a/Makefile +++ b/Makefile @@ -16,23 +16,23 @@ help: # Main rendering targets render: - cargo run --manifest-path data/render/Cargo.toml -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api + cargo run --manifest-path data/Cargo.toml -p render -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api render-skip-deprecated: - cargo run --manifest-path data/render/Cargo.toml -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api --skip-deprecated + cargo run --manifest-path data/Cargo.toml -p render -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api --skip-deprecated # Development targets check: - cargo check --manifest-path data/render/Cargo.toml + cargo check --manifest-path data/Cargo.toml clippy: - cargo clippy --manifest-path data/render/Cargo.toml -- -D warnings + cargo clippy --manifest-path data/Cargo.toml -- -D warnings fmt: - cargo fmt --manifest-path data/render/Cargo.toml + cargo fmt --manifest-path data/Cargo.toml test: - cargo test --manifest-path data/render/Cargo.toml + cargo test --manifest-path data/Cargo.toml clean: - cargo clean --manifest-path data/render/Cargo.toml \ No newline at end of file + cargo clean --manifest-path data/Cargo.toml \ No newline at end of file diff --git a/data/Cargo.toml b/data/Cargo.toml new file mode 100644 index 0000000000..660a08662e --- /dev/null +++ b/data/Cargo.toml @@ -0,0 +1,16 @@ +[workspace] +members = [ + "render", + "pr-check", +] +resolver = "2" + +[workspace.dependencies] +anyhow = "1.0" +chrono = { version = "0.4", features = ["serde"] } +pico-args = "0.5" +serde = { version = "1.0", features = ["derive"] } +serde_derive = "1.0" +serde_json = "1.0" +serde_yaml = "0.9" +tokio = { version = "1", features = ["rt-multi-thread", "macros"] } \ No newline at end of file diff --git a/data/pr-check/Cargo.toml b/data/pr-check/Cargo.toml index 952e93d644..796a8a1cb1 100644 --- a/data/pr-check/Cargo.toml +++ b/data/pr-check/Cargo.toml @@ -5,6 +5,7 @@ edition = "2024" description = "Checks pull requests against contributing criteria" license = "MIT" repository = "https://github.com/analysis-tools-dev/static-analysis" +publish = false [lints.clippy] correctness = { level = "deny", priority = -1 } @@ -32,11 +33,12 @@ similar_names = "allow" too_many_lines = "allow" [dependencies] -anyhow = "1.0" -chrono = { version = "0.4", features = ["serde"] } -pico-args = "0.5" -reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false } -serde = { version = "1.0", features = ["derive"] } -serde_yaml = "0.9" -serde_json = "1.0" -tokio = { version = "1", features = ["rt-multi-thread", "macros"] } \ No newline at end of file +render = { path = "../render" } +anyhow = { workspace = true } +chrono = { workspace = true } +pico-args = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +serde_yaml = { workspace = true } +tokio = { workspace = true } +reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false } \ No newline at end of file diff --git a/data/pr-check/src/main.rs b/data/pr-check/src/main.rs index 1584c1695a..58912ca7f2 100644 --- a/data/pr-check/src/main.rs +++ b/data/pr-check/src/main.rs @@ -20,18 +20,12 @@ use anyhow::{Context, Result, bail}; use chrono::{DateTime, Duration, Utc}; +use render::types::ParsedEntry; use serde::Deserialize; use std::collections::HashMap; use std::env; use std::path::{Path, PathBuf}; -/// A parsed tool entry from `data/tools/.yml`. -#[derive(Debug, Deserialize)] -struct ToolEntry { - name: String, - source: Option, -} - /// Response from `GET /repos/{owner}/{repo}`. #[derive(Debug, Deserialize)] struct RepoInfo { @@ -187,8 +181,7 @@ impl GithubClient { /// /// Returns an error if the API call fails. async fn list_pr_comments(&self, repo: &str, pr: u64) -> Result> { - let url = - format!("https://api.github.com/repos/{repo}/issues/{pr}/comments?per_page=100"); + let url = format!("https://api.github.com/repos/{repo}/issues/{pr}/comments?per_page=100"); self.get::>(&url).await } @@ -276,7 +269,7 @@ fn parse_github_repo(url: &str) -> Option<(String, String)> { /// # Errors /// /// Returns an error if the file cannot be read or parsed. -fn read_tool(path: &Path) -> Result { +fn read_tool(path: &Path) -> Result { let f = std::fs::File::open(path).with_context(|| format!("Cannot open {}", path.display()))?; serde_yaml::from_reader(f).with_context(|| format!("Cannot parse {}", path.display())) } @@ -287,7 +280,7 @@ fn read_tool(path: &Path) -> Result { /// /// Returns an error only for unexpected failures (network, auth). Missing /// criteria produce `CheckResult::Fail` values, not errors. -async fn check_tool(client: &GithubClient, tool: &ToolEntry) -> Result { +async fn check_tool(client: &GithubClient, tool: &ParsedEntry) -> Result { let source = tool.source.clone(); let gh_coords = source.as_deref().and_then(parse_github_repo); @@ -302,9 +295,7 @@ async fn check_tool(client: &GithubClient, tool: &ToolEntry) -> Result= MIN_STARS { CheckResult::Pass(format!("{s} stars")) } else { - CheckResult::Fail(format!( - "{s} stars (minimum is {MIN_STARS})" - )) + CheckResult::Fail(format!("{s} stars (minimum is {MIN_STARS})")) } } Err(e) => CheckResult::Fail(format!("Could not fetch repo info: {e}")), @@ -341,7 +332,7 @@ async fn check_tool(client: &GithubClient, tool: &ToolEntry) -> Result Result String { /// # Errors /// /// Returns an error if the GitHub API calls fail. -async fn upsert_comment( - client: &GithubClient, - repo: &str, - pr: u64, - body: &str, -) -> Result<()> { +async fn upsert_comment(client: &GithubClient, repo: &str, pr: u64, body: &str) -> Result<()> { let comments = client.list_pr_comments(repo, pr).await?; let existing = comments.iter().find(|c| c.body.contains(COMMENT_MARKER)); @@ -462,8 +448,7 @@ fn parse_pr_number(s: &str) -> Result { #[tokio::main] async fn main() -> Result<()> { let token = env::var("GITHUB_TOKEN").context("GITHUB_TOKEN not set")?; - let gh_repo = - env::var("GITHUB_REPOSITORY").context("GITHUB_REPOSITORY not set")?; + let gh_repo = env::var("GITHUB_REPOSITORY").context("GITHUB_REPOSITORY not set")?; let pr_number_str = env::var("PR_NUMBER").context("PR_NUMBER not set")?; let pr_number = parse_pr_number(&pr_number_str)?; @@ -475,8 +460,7 @@ async fn main() -> Result<()> { let tool_paths: Vec = tool_paths .into_iter() .filter(|p| { - p.starts_with("data/tools") - && p.extension().and_then(|e| e.to_str()) == Some("yml") + p.starts_with("data/tools") && p.extension().and_then(|e| e.to_str()) == Some("yml") }) .collect(); @@ -484,9 +468,8 @@ async fn main() -> Result<()> { let mut reports = Vec::new(); for path in &tool_paths { - let tool = read_tool(path) - .with_context(|| format!("Failed to read {}", path.display()))?; - eprintln!("Checking '{}'...", tool.name); + let tool = read_tool(path).with_context(|| format!("Failed to read {}", path.display()))?; + eprintln!("Checking '{}'...", &tool.name); let report = check_tool(&client, &tool).await?; reports.push(report); } @@ -549,4 +532,4 @@ mod tests { let comment = render_comment(&[]); assert!(comment.contains(COMMENT_MARKER)); } -} \ No newline at end of file +} diff --git a/data/render/Cargo.toml b/data/render/Cargo.toml index c2e347fbe9..a81afa3555 100644 --- a/data/render/Cargo.toml +++ b/data/render/Cargo.toml @@ -8,6 +8,7 @@ license = "MIT" repository = "https://github.com/analysis-tools-dev/static-analysis" keywords = ["static-analysis", "linting", "tools", "catalog"] categories = ["development-tools"] +publish = false [lints.clippy] # Correctness lints (enabled by default, but being explicit) @@ -44,16 +45,16 @@ similar_names = "allow" too_many_lines = "allow" # We'll use the clippy.toml threshold instead [dependencies] -serde = "1.0.228" -serde_derive = "1.0.136" -serde_yaml = "0.9.34" +anyhow = { workspace = true } +chrono = { workspace = true } +pico-args = { workspace = true } +serde = { workspace = true } +serde_derive = { workspace = true } +serde_json = { workspace = true } +serde_yaml = { workspace = true } +tokio = { workspace = true } askama = "0.12.1" # Switch back to crates as soon as a new release with tokio 1.x support is # released. See https://github.com/softprops/hubcaps/pull/285 hubcaps = { git="https://github.com/softprops/hubcaps" } -tokio = { version = "1.43.4", features = ["rt-multi-thread", "macros"] } -chrono = "0.4.44" -anyhow = "1.0.102" -pico-args = "0.5.0" -serde_json = "1.0.149" slug = "0.1.6" From f641d72e5585d90ecc9bc8e56d20929736da593d Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 23 Mar 2026 00:08:14 +0100 Subject: [PATCH 05/11] Ignore data/pr-check/target, commit workspace Cargo.lock --- .gitignore | 3 +- data/Cargo.lock | 2208 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 2210 insertions(+), 1 deletion(-) create mode 100644 data/Cargo.lock diff --git a/.gitignore b/.gitignore index e0b9699933..a867ca31df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ logcli-linux-amd64 logcli.zip -data/target/ \ No newline at end of file +data/target/ +data/pr-check/target/ \ No newline at end of file diff --git a/data/Cargo.lock b/data/Cargo.lock new file mode 100644 index 0000000000..4b4530170a --- /dev/null +++ b/data/Cargo.lock @@ -0,0 +1,2208 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "addr2line" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5d307320b3181d6d7954e663bd7c774a838b8220fe0593c86d9fb09f498b4b" +dependencies = [ + "gimli", +] + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[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 = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "askama" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b79091df18a97caea757e28cd2d5fda49c6cd4bd01ddffd7ff01ace0c0ad2c28" +dependencies = [ + "askama_derive", + "askama_escape", + "humansize", + "num-traits", + "percent-encoding", +] + +[[package]] +name = "askama_derive" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19fe8d6cb13c4714962c072ea496f3392015f0989b1a2847bb4b2d9effd71d83" +dependencies = [ + "askama_parser", + "basic-toml", + "mime", + "mime_guess", + "proc-macro2", + "quote", + "serde", + "syn", +] + +[[package]] +name = "askama_escape" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "619743e34b5ba4e9703bba34deac3427c72507c7159f5fd030aea8cac0cfe341" + +[[package]] +name = "askama_parser" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "acb1161c6b64d1c3d83108213c2a2533a342ac225aabd0bda218278c2ddb00c0" +dependencies = [ + "nom", +] + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[package]] +name = "backtrace" +version = "0.3.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb531853791a215d7c62a30daf0dde835f381ab5de4589cfe7c649d2cbe92bd6" +dependencies = [ + "addr2line", + "cfg-if", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", + "windows-link", +] + +[[package]] +name = "base64" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" + +[[package]] +name = "base64" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" + +[[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-toml" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba62675e8242a4c4e806d12f11d136e626e6c8361d6b829310732241652a178a" +dependencies = [ + "serde", +] + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" + +[[package]] +name = "bumpalo" +version = "3.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + +[[package]] +name = "bytes" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8" + +[[package]] +name = "cc" +version = "1.2.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a0dd1ca384932ff3641c8718a02769f1698e7563dc6974ffd03346116310423" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "chrono" +version = "0.4.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-link", +] + +[[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.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +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 = "data-encoding" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea" + +[[package]] +name = "deunicode" +version = "1.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abd57806937c9cc163efc8ea3910e00a62e2aeb0b8119f1793a978088f8f6b04" + +[[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 = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "fastrand" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[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.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" +dependencies = [ + "matches", + "percent-encoding", +] + +[[package]] +name = "futures" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-io" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + +[[package]] +name = "futures-sink" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-core", + "futures-sink", + "futures-task", + "pin-project-lite", + "slab", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "wasip2", + "wasip3", +] + +[[package]] +name = "gimli" +version = "0.32.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7" + +[[package]] +name = "h2" +version = "0.3.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0beca50380b1fc32983fc1cb4587bfa4bb9e78fc259aad4a0032d2080309222d" +dependencies = [ + "bytes", + "fnv", + "futures-core", + "futures-sink", + "futures-util", + "http 0.2.12", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[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.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "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.4.0", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http 1.4.0", + "http-body 1.0.1", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "hubcaps" +version = "0.6.2" +source = "git+https://github.com/softprops/hubcaps#d60d157b6638760fc725b2e4e4f329a4ec6b901e" +dependencies = [ + "base64 0.13.1", + "data-encoding", + "futures", + "http 0.2.12", + "hyperx", + "jsonwebtoken", + "log", + "mime", + "percent-encoding", + "reqwest 0.11.27", + "serde", + "serde_derive", + "serde_json", + "url", +] + +[[package]] +name = "humansize" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6cb51c9a029ddc91b07a787f1d86b53ccfa49b0e86688c946ebe8d3555685dd7" +dependencies = [ + "libm", +] + +[[package]] +name = "hyper" +version = "0.14.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7" +dependencies = [ + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "h2", + "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.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "186548d73ac615b32a73aafe38fb4f56c0d340e110e5a200bcadbaf2e199263a" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "http 1.4.0", + "http-body 1.0.1", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0bea761b46ae2b24eb4aef630d8d1c398157b6fc29e6350ecf090a0b70c952c" +dependencies = [ + "futures-util", + "http 1.4.0", + "hyper 1.2.0", + "hyper-util", + "rustls", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "tower-service", +] + +[[package]] +name = "hyper-tls" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" +dependencies = [ + "bytes", + "hyper 0.14.32", + "native-tls", + "tokio", + "tokio-native-tls", +] + +[[package]] +name = "hyper-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca38ef113da30126bbff9cd1705f9273e15d45498615d138b0c20279ac7a76aa" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "http 1.4.0", + "http-body 1.0.1", + "hyper 1.2.0", + "pin-project-lite", + "socket2", + "tokio", + "tower", + "tower-service", + "tracing", +] + +[[package]] +name = "hyperx" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5617e92fc2f2501c3e2bc6ce547cad841adba2bae5b921c7e52510beca6d084c" +dependencies = [ + "base64 0.13.1", + "bytes", + "http 0.2.12", + "httpdate", + "language-tags", + "mime", + "percent-encoding", + "unicase", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "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 = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + +[[package]] +name = "idna" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" +dependencies = [ + "matches", + "unicode-bidi", + "unicode-normalization", +] + +[[package]] +name = "indexmap" +version = "2.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" +dependencies = [ + "equivalent", + "hashbrown 0.16.1", + "serde", + "serde_core", +] + +[[package]] +name = "ipnet" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "js-sys" +version = "0.3.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b49715b7073f385ba4bc528e5747d02e66cb39c6146efb66b781f131f0fb399c" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "jsonwebtoken" +version = "7.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "afabcc15e437a6484fc4f12d0fd63068fe457bf93f1c148d3d9649c60b103f32" +dependencies = [ + "base64 0.12.3", + "pem", + "ring 0.16.20", + "serde", + "serde_json", + "simple_asn1", +] + +[[package]] +name = "language-tags" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4345964bb142484797b161f473a503a434de77149dd8c7427788c6e13379388" + +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + +[[package]] +name = "libc" +version = "0.2.183" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d" + +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "matches" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", +] + +[[package]] +name = "mio" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "native-tls" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + +[[package]] +name = "num-bigint" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[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 = "object" +version = "0.37.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe" +dependencies = [ + "memchr", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "openssl" +version = "0.10.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "951c002c75e16ea2c65b8c7e4d3d51d5530d8dfa7d060b4776828c88cfb18ecf" +dependencies = [ + "bitflags 2.11.0", + "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", +] + +[[package]] +name = "openssl-probe" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" + +[[package]] +name = "openssl-sys" +version = "0.9.112" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57d55af3b3e226502be1526dfdba67ab0e9c96fc293004e79576b2b9edb0dbdb" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "pem" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd56cbd21fea48d0c440b41cd69c589faacade08c992d9a54e471b79d0fd13eb" +dependencies = [ + "base64 0.13.1", + "once_cell", + "regex", +] + +[[package]] +name = "percent-encoding" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" + +[[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.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1749c7ed4bcaf4c3d0a3efc28538844fb29bcdd7d2b67b2be7e20ba861ff517" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b20ed30f105399776b9c883e68e536ef602a16ae6f596d2c473591d6ad64c6" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pkg-config" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" + +[[package]] +name = "pr-check" +version = "0.1.0" +dependencies = [ + "anyhow", + "chrono", + "pico-args", + "render", + "reqwest 0.12.4", + "serde", + "serde_json", + "serde_yaml", + "tokio", +] + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "regex" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + +[[package]] +name = "render" +version = "0.2.0" +dependencies = [ + "anyhow", + "askama", + "chrono", + "hubcaps", + "pico-args", + "serde", + "serde_derive", + "serde_json", + "serde_yaml", + "slug", + "tokio", +] + +[[package]] +name = "reqwest" +version = "0.11.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" +dependencies = [ + "base64 0.21.7", + "bytes", + "encoding_rs", + "futures-core", + "futures-util", + "h2", + "http 0.2.12", + "http-body 0.4.6", + "hyper 0.14.32", + "hyper-tls", + "ipnet", + "js-sys", + "log", + "mime", + "native-tls", + "once_cell", + "percent-encoding", + "pin-project-lite", + "rustls-pemfile 1.0.4", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "system-configuration", + "tokio", + "tokio-native-tls", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "winreg 0.50.0", +] + +[[package]] +name = "reqwest" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "566cafdd92868e0939d3fb961bd0dc25fcfaaed179291093b3d43e6b3150ea10" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-core", + "futures-util", + "http 1.4.0", + "http-body 1.0.1", + "http-body-util", + "hyper 1.2.0", + "hyper-rustls", + "hyper-util", + "ipnet", + "js-sys", + "log", + "mime", + "once_cell", + "percent-encoding", + "pin-project-lite", + "rustls", + "rustls-pemfile 2.2.0", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "webpki-roots 0.26.11", + "winreg 0.52.0", +] + +[[package]] +name = "ring" +version = "0.16.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" +dependencies = [ + "cc", + "libc", + "once_cell", + "spin", + "untrusted 0.7.1", + "web-sys", + "winapi", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted 0.9.0", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustc-demangle" +version = "0.1.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b50b8869d9fc858ce7266cce0194bd74df58b9d0e3f6df3a9fc8eb470d95c09d" + +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags 2.11.0", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf4ef73721ac7bcd79b2b315da7779d8fc09718c6b3d2d1b2d94850eb8c18432" +dependencies = [ + "log", + "ring 0.17.14", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pemfile" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" +dependencies = [ + "base64 0.21.7", +] + +[[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.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" +dependencies = [ + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.102.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" +dependencies = [ + "ring 0.17.14", + "rustls-pki-types", + "untrusted 0.9.0", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "schannel" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags 2.11.0", + "core-foundation 0.10.1", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "semver" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[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 = "serde_yaml" +version = "0.9.34+deprecated" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" +dependencies = [ + "indexmap", + "itoa", + "ryu", + "serde", + "unsafe-libyaml", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "simple_asn1" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "692ca13de57ce0613a363c8c2f1de925adebc81b04c923ac60c5488bb44abe4b" +dependencies = [ + "chrono", + "num-bigint", + "num-traits", +] + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "slug" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "882a80f72ee45de3cc9a5afeb2da0331d58df69e4e7d8eeb5d3c7784ae67e724" +dependencies = [ + "deunicode", + "wasm-bindgen", +] + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.5.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "spin" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" + +[[package]] +name = "system-configuration" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" +dependencies = [ + "bitflags 1.3.2", + "core-foundation 0.9.4", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.2", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "tinyvec" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.43.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "333f1ce734dbc263af1106964dba1f8c993a91d1857910fb542d45179c3d3da5" +dependencies = [ + "backtrace", + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "tokio-macros", + "windows-sys 0.52.0", +] + +[[package]] +name = "tokio-macros" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[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.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "775e0c0f0adb3a2f22a00c4745d728b479985fc15ee7ca6a2608388c5569860f" +dependencies = [ + "rustls", + "rustls-pki-types", + "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 = "tower" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" +dependencies = [ + "futures-core", + "futures-util", + "pin-project", + "pin-project-lite", + "tokio", + "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.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "log", + "pin-project-lite", + "tracing-core", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +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 = "unicase" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" +dependencies = [ + "version_check", +] + +[[package]] +name = "unicode-bidi" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-normalization" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fd4f6878c9cb28d874b009da9e8d183b5abc80117c40bbd187a1fde336be6e8" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "unsafe-libyaml" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861" + +[[package]] +name = "untrusted" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "url" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22fe195a4f217c25b25cb5058ced57059824a678474874038dc88d211bf508d3" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", +] + +[[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 = "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.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.2+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6532f9a5c1ece3798cb1c2cfdba640b9b3ba884f5db45973a6f442510a87d38e" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.64" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9c5522b3a28661442748e09d40924dfb9ca614b21c00d3fd135720e48b67db8" +dependencies = [ + "cfg-if", + "futures-util", + "js-sys", + "once_cell", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18a2d50fcf105fb33bb15f00e7a77b772945a2ee45dcf454961fd843e74c18e6" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03ce4caeaac547cdf713d280eda22a730824dd11e6b8c3ca9e42247b25c631e3" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75a326b8c223ee17883a4251907455a2431acc2791c98c26279376490c378c16" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags 2.11.0", + "hashbrown 0.15.5", + "indexmap", + "semver", +] + +[[package]] +name = "web-sys" +version = "0.3.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "854ba17bb104abfb26ba36da9729addc7ce7f06f5c0f90f3c391f8461cca21f9" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webpki-roots" +version = "0.26.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9" +dependencies = [ + "webpki-roots 1.0.6", +] + +[[package]] +name = "webpki-roots" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22cfaf3c063993ff62e73cb4311efde4db1efb31ab78a3e5c457939ad5cc0bed" +dependencies = [ + "rustls-pki-types", +] + +[[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-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.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winreg" +version = "0.50.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" +dependencies = [ + "cfg-if", + "windows-sys 0.48.0", +] + +[[package]] +name = "winreg" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5" +dependencies = [ + "cfg-if", + "windows-sys 0.48.0", +] + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck", + "indexmap", + "prettyplease", + "syn", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags 2.11.0", + "indexmap", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + +[[package]] +name = "zeroize" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" From 7219b0659f3cb6d06b78861c567a6ec163eba2dd Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 23 Mar 2026 00:12:46 +0100 Subject: [PATCH 06/11] Move Rust workspace from data/ to ci/ The data/ folder now only contains source files (tools/, tags.yml, api/). The Rust code (render and pr-check crates) lives in ci/ alongside the workspace Cargo.toml and Cargo.lock. Updated references in Makefile, .github/workflows/pr-check.yml, .gitignore, data/README.md, and the stale comment at the top of README.md. --- .github/workflows/pr-check.yml | 9 +++++---- .gitignore | 4 ++-- Makefile | 14 +++++++------- README.md | 2 +- {data => ci}/Cargo.lock | 0 {data => ci}/Cargo.toml | 0 {data => ci}/pr-check/Cargo.lock | 0 {data => ci}/pr-check/Cargo.toml | 0 {data => ci}/pr-check/src/main.rs | 0 {data => ci}/render/.gitignore | 0 {data => ci}/render/Cargo.lock | 0 {data => ci}/render/Cargo.toml | 0 {data => ci}/render/clippy.toml | 0 {data => ci}/render/src/bin/main.rs | 0 {data => ci}/render/src/lib.rs | 0 {data => ci}/render/src/lints.rs | 0 {data => ci}/render/src/stats.rs | 0 {data => ci}/render/src/types.rs | 0 {data => ci}/render/templates/README.md | 0 data/README.md | 13 +++++++++---- 20 files changed, 24 insertions(+), 18 deletions(-) rename {data => ci}/Cargo.lock (100%) rename {data => ci}/Cargo.toml (100%) rename {data => ci}/pr-check/Cargo.lock (100%) rename {data => ci}/pr-check/Cargo.toml (100%) rename {data => ci}/pr-check/src/main.rs (100%) rename {data => ci}/render/.gitignore (100%) rename {data => ci}/render/Cargo.lock (100%) rename {data => ci}/render/Cargo.toml (100%) rename {data => ci}/render/clippy.toml (100%) rename {data => ci}/render/src/bin/main.rs (100%) rename {data => ci}/render/src/lib.rs (100%) rename {data => ci}/render/src/lints.rs (100%) rename {data => ci}/render/src/stats.rs (100%) rename {data => ci}/render/src/types.rs (100%) rename {data => ci}/render/templates/README.md (100%) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 1d21d3184e..2a03b1de82 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -5,6 +5,7 @@ on: branches: [master] paths: - "data/tools/**.yml" + - "ci/**" jobs: pr-check: @@ -32,13 +33,13 @@ jobs: path: | ~/.cargo/registry ~/.cargo/git - data/target - key: pr-check-${{ runner.os }}-${{ hashFiles('data/Cargo.lock') }} + ci/target + key: pr-check-${{ runner.os }}-${{ hashFiles('ci/Cargo.lock') }} restore-keys: | pr-check-${{ runner.os }}- - name: Build pr-check - run: cargo build --release --manifest-path data/Cargo.toml -p pr-check + run: cargo build --release --manifest-path ci/Cargo.toml -p pr-check - name: Run pr-check env: @@ -46,4 +47,4 @@ jobs: GITHUB_REPOSITORY: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }} run: | - data/target/release/pr-check ${{ steps.changed.outputs.files }} + ci/target/release/pr-check ${{ steps.changed.outputs.files }} diff --git a/.gitignore b/.gitignore index a867ca31df..c11bed6903 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ logcli-linux-amd64 logcli.zip -data/target/ -data/pr-check/target/ \ No newline at end of file +ci/target/ +ci/pr-check/target/ \ No newline at end of file diff --git a/Makefile b/Makefile index 0edbac80eb..90b065ab47 100644 --- a/Makefile +++ b/Makefile @@ -16,23 +16,23 @@ help: # Main rendering targets render: - cargo run --manifest-path data/Cargo.toml -p render -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api + cargo run --manifest-path ci/Cargo.toml -p render -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api render-skip-deprecated: - cargo run --manifest-path data/Cargo.toml -p render -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api --skip-deprecated + cargo run --manifest-path ci/Cargo.toml -p render -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api --skip-deprecated # Development targets check: - cargo check --manifest-path data/Cargo.toml + cargo check --manifest-path ci/Cargo.toml clippy: - cargo clippy --manifest-path data/Cargo.toml -- -D warnings + cargo clippy --manifest-path ci/Cargo.toml -- -D warnings fmt: - cargo fmt --manifest-path data/Cargo.toml + cargo fmt --manifest-path ci/Cargo.toml test: - cargo test --manifest-path data/Cargo.toml + cargo test --manifest-path ci/Cargo.toml clean: - cargo clean --manifest-path data/Cargo.toml \ No newline at end of file + cargo clean --manifest-path ci/Cargo.toml \ No newline at end of file diff --git a/README.md b/README.md index fae434edb8..be99e9dc51 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - + Analysis Tools Website diff --git a/data/Cargo.lock b/ci/Cargo.lock similarity index 100% rename from data/Cargo.lock rename to ci/Cargo.lock diff --git a/data/Cargo.toml b/ci/Cargo.toml similarity index 100% rename from data/Cargo.toml rename to ci/Cargo.toml diff --git a/data/pr-check/Cargo.lock b/ci/pr-check/Cargo.lock similarity index 100% rename from data/pr-check/Cargo.lock rename to ci/pr-check/Cargo.lock diff --git a/data/pr-check/Cargo.toml b/ci/pr-check/Cargo.toml similarity index 100% rename from data/pr-check/Cargo.toml rename to ci/pr-check/Cargo.toml diff --git a/data/pr-check/src/main.rs b/ci/pr-check/src/main.rs similarity index 100% rename from data/pr-check/src/main.rs rename to ci/pr-check/src/main.rs diff --git a/data/render/.gitignore b/ci/render/.gitignore similarity index 100% rename from data/render/.gitignore rename to ci/render/.gitignore diff --git a/data/render/Cargo.lock b/ci/render/Cargo.lock similarity index 100% rename from data/render/Cargo.lock rename to ci/render/Cargo.lock diff --git a/data/render/Cargo.toml b/ci/render/Cargo.toml similarity index 100% rename from data/render/Cargo.toml rename to ci/render/Cargo.toml diff --git a/data/render/clippy.toml b/ci/render/clippy.toml similarity index 100% rename from data/render/clippy.toml rename to ci/render/clippy.toml diff --git a/data/render/src/bin/main.rs b/ci/render/src/bin/main.rs similarity index 100% rename from data/render/src/bin/main.rs rename to ci/render/src/bin/main.rs diff --git a/data/render/src/lib.rs b/ci/render/src/lib.rs similarity index 100% rename from data/render/src/lib.rs rename to ci/render/src/lib.rs diff --git a/data/render/src/lints.rs b/ci/render/src/lints.rs similarity index 100% rename from data/render/src/lints.rs rename to ci/render/src/lints.rs diff --git a/data/render/src/stats.rs b/ci/render/src/stats.rs similarity index 100% rename from data/render/src/stats.rs rename to ci/render/src/stats.rs diff --git a/data/render/src/types.rs b/ci/render/src/types.rs similarity index 100% rename from data/render/src/types.rs rename to ci/render/src/types.rs diff --git a/data/render/templates/README.md b/ci/render/templates/README.md similarity index 100% rename from data/render/templates/README.md rename to ci/render/templates/README.md diff --git a/data/README.md b/data/README.md index 2b15b0148c..b8a318ab61 100644 --- a/data/README.md +++ b/data/README.md @@ -1,4 +1,9 @@ -This is the project's CI environment. -Read more about the tooling [here](https://endler.dev/2017/obsolete/). -Want to add an entry to the list? -Here's how to [contribute](https://github.com/analysis-tools-dev/static-analysis/blob/master/CONTRIBUTING.md). +This folder contains the source data for the list. + +- `tools/` - one YAML file per tool +- `tags.yml` - all valid tags that can be used in tool entries +- `api/` - generated JSON output (do not edit manually) + +To add a tool, create a file in `tools/` following the format described in [CONTRIBUTING.md](../CONTRIBUTING.md). + +The Rust code that renders the list lives in [`ci/`](../ci/). \ No newline at end of file From 665debecbf49f44163dfdd9782b8633857776dac Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 23 Mar 2026 00:16:17 +0100 Subject: [PATCH 07/11] Treat missing or non-GitHub source as a neutral skip --- ci/pr-check/src/main.rs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/ci/pr-check/src/main.rs b/ci/pr-check/src/main.rs index 58912ca7f2..d3f3e1eb78 100644 --- a/ci/pr-check/src/main.rs +++ b/ci/pr-check/src/main.rs @@ -340,20 +340,18 @@ async fn check_tool(client: &GithubClient, tool: &ParsedEntry) -> Result Date: Mon, 23 Mar 2026 00:16:50 +0100 Subject: [PATCH 08/11] Remove emoji from PR check report, use plain text --- ci/pr-check/src/main.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ci/pr-check/src/main.rs b/ci/pr-check/src/main.rs index d3f3e1eb78..05d4418961 100644 --- a/ci/pr-check/src/main.rs +++ b/ci/pr-check/src/main.rs @@ -67,11 +67,11 @@ impl CheckResult { matches!(self, Self::Fail(_)) } - fn emoji(&self) -> &'static str { + fn symbol(&self) -> &'static str { match self { - Self::Pass(_) => "✅", - Self::Fail(_) => "❌", - Self::Skip(_) => "⚪", + Self::Pass(_) => "pass", + Self::Fail(_) => "fail", + Self::Skip(_) => "skip", } } @@ -372,8 +372,8 @@ fn render_comment(reports: &[ToolReport]) -> String { } for report in reports { - let status_icon = if report.any_fail() { "❌" } else { "✅" }; - out.push_str(&format!("### {} `{}`\n\n", status_icon, report.name)); + let status = if report.any_fail() { "FAIL" } else { "PASS" }; + out.push_str(&format!("### [{}] `{}`\n\n", status, report.name)); if let Some(src) = &report.source { out.push_str(&format!("Source: {src}\n\n")); @@ -394,7 +394,7 @@ fn render_comment(reports: &[ToolReport]) -> String { out.push_str(&format!( "| {} | {} {} |\n", label, - check.emoji(), + check.symbol(), check.message() )); } From dda767ac953ee4d1d7546a2128a652b73de539b5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 23 Mar 2026 00:19:20 +0100 Subject: [PATCH 09/11] Use askama template for PR check comment rendering --- ci/Cargo.lock | 1 + ci/Cargo.toml | 1 + ci/pr-check/Cargo.toml | 1 + ci/pr-check/src/main.rs | 85 ++++++++++---------------------- ci/pr-check/templates/comment.md | 32 ++++++++++++ ci/render/Cargo.toml | 2 +- 6 files changed, 63 insertions(+), 59 deletions(-) create mode 100644 ci/pr-check/templates/comment.md diff --git a/ci/Cargo.lock b/ci/Cargo.lock index 4b4530170a..5a20868a29 100644 --- a/ci/Cargo.lock +++ b/ci/Cargo.lock @@ -996,6 +996,7 @@ name = "pr-check" version = "0.1.0" dependencies = [ "anyhow", + "askama", "chrono", "pico-args", "render", diff --git a/ci/Cargo.toml b/ci/Cargo.toml index 660a08662e..260c094a6d 100644 --- a/ci/Cargo.toml +++ b/ci/Cargo.toml @@ -7,6 +7,7 @@ resolver = "2" [workspace.dependencies] anyhow = "1.0" +askama = "0.12" chrono = { version = "0.4", features = ["serde"] } pico-args = "0.5" serde = { version = "1.0", features = ["derive"] } diff --git a/ci/pr-check/Cargo.toml b/ci/pr-check/Cargo.toml index 796a8a1cb1..08144b7a35 100644 --- a/ci/pr-check/Cargo.toml +++ b/ci/pr-check/Cargo.toml @@ -35,6 +35,7 @@ too_many_lines = "allow" [dependencies] render = { path = "../render" } anyhow = { workspace = true } +askama = { workspace = true } chrono = { workspace = true } pico-args = { workspace = true } serde = { workspace = true } diff --git a/ci/pr-check/src/main.rs b/ci/pr-check/src/main.rs index 05d4418961..c8f536de9a 100644 --- a/ci/pr-check/src/main.rs +++ b/ci/pr-check/src/main.rs @@ -19,6 +19,7 @@ //! PR_NUMBER - the pull request number use anyhow::{Context, Result, bail}; +use askama::Template; use chrono::{DateTime, Duration, Utc}; use render::types::ParsedEntry; use serde::Deserialize; @@ -98,6 +99,18 @@ impl ToolReport { fn any_fail(&self) -> bool { self.stars.is_fail() || self.contributors.is_fail() || self.age.is_fail() } + + fn status(&self) -> &'static str { + if self.any_fail() { "FAIL" } else { "PASS" } + } +} + +#[derive(Template)] +#[template(path = "comment.md")] +struct CommentTemplate<'a> { + marker: &'a str, + reports: &'a [ToolReport], + any_failures: bool, } struct GithubClient { @@ -357,63 +370,19 @@ async fn check_tool(client: &GithubClient, tool: &ParsedEntry) -> Result String { +/// +/// # Errors +/// +/// Returns an error if the template fails to render. +fn render_comment(reports: &[ToolReport]) -> Result { let any_failures = reports.iter().any(|r| r.any_fail()); - - let mut out = String::new(); - - out.push_str(COMMENT_MARKER); - out.push('\n'); - out.push_str("## Contributing criteria check\n\n"); - - if reports.is_empty() { - out.push_str("No new tool files detected in `data/tools/`. Nothing to check.\n"); - return out; - } - - for report in reports { - let status = if report.any_fail() { "FAIL" } else { "PASS" }; - out.push_str(&format!("### [{}] `{}`\n\n", status, report.name)); - - if let Some(src) = &report.source { - out.push_str(&format!("Source: {src}\n\n")); - } - - if let Some(note) = &report.note { - out.push_str(&format!("> **Note:** {note}\n\n")); - } - - out.push_str("| Criterion | Result |\n"); - out.push_str("|---|---|\n"); - - for (label, check) in [ - ("Stars (min 20)", &report.stars), - ("Contributors (min 2)", &report.contributors), - ("Age (min 3 months)", &report.age), - ] { - out.push_str(&format!( - "| {} | {} {} |\n", - label, - check.symbol(), - check.message() - )); - } - - out.push('\n'); - } - - if any_failures { - out.push_str("---\n\n"); - out.push_str( - "One or more tools do not meet the [contributing criteria](CONTRIBUTING.md) yet. \ - We will keep this PR open. Feel free to update it once the thresholds are met.\n", - ); - } else { - out.push_str("---\n\n"); - out.push_str("All criteria passed. Thank you for your contribution.\n"); + CommentTemplate { + marker: COMMENT_MARKER, + reports, + any_failures, } - - out + .render() + .context("Failed to render comment template") } /// Posts or updates the bot comment on the PR. @@ -472,7 +441,7 @@ async fn main() -> Result<()> { reports.push(report); } - let comment_body = render_comment(&reports); + let comment_body = render_comment(&reports)?; upsert_comment(&client, &gh_repo, pr_number, &comment_body).await?; @@ -521,13 +490,13 @@ mod tests { #[test] fn render_comment_no_files() { - let comment = render_comment(&[]); + let comment = render_comment(&[]).unwrap(); assert!(comment.contains("No new tool files detected")); } #[test] fn render_comment_contains_marker() { - let comment = render_comment(&[]); + let comment = render_comment(&[]).unwrap(); assert!(comment.contains(COMMENT_MARKER)); } } diff --git a/ci/pr-check/templates/comment.md b/ci/pr-check/templates/comment.md new file mode 100644 index 0000000000..19c19802c1 --- /dev/null +++ b/ci/pr-check/templates/comment.md @@ -0,0 +1,32 @@ +{{ marker }} +## Contributing criteria check + +{% if reports.is_empty() %} +No new tool files detected in `data/tools/`. Nothing to check. +{% else %} +{% for report in reports %} +### [{{ report.status() }}] `{{ report.name }}` + +{% if let Some(src) = report.source.as_ref() %} +Source: {{ src }} + +{% endif %} +{% if let Some(note) = report.note.as_ref() %} +> **Note:** {{ note }} + +{% endif %} +| Criterion | Result | +|---|---| +| Stars (min 20) | {{ report.stars.symbol() }} {{ report.stars.message() }} | +| Contributors (min 2) | {{ report.contributors.symbol() }} {{ report.contributors.message() }} | +| Age (min 3 months) | {{ report.age.symbol() }} {{ report.age.message() }} | + +{% endfor %} +--- + +{% if any_failures %} +One or more tools do not meet the [contributing criteria](CONTRIBUTING.md) yet. We will keep this PR open. Feel free to update it once the thresholds are met. +{% else %} +All criteria passed. Thank you for your contribution. +{% endif %} +{% endif %} \ No newline at end of file diff --git a/ci/render/Cargo.toml b/ci/render/Cargo.toml index a81afa3555..453479b42d 100644 --- a/ci/render/Cargo.toml +++ b/ci/render/Cargo.toml @@ -53,7 +53,7 @@ serde_derive = { workspace = true } serde_json = { workspace = true } serde_yaml = { workspace = true } tokio = { workspace = true } -askama = "0.12.1" +askama = { workspace = true } # Switch back to crates as soon as a new release with tokio 1.x support is # released. See https://github.com/softprops/hubcaps/pull/285 hubcaps = { git="https://github.com/softprops/hubcaps" } From f147b8287f9b76805910fd751feed016414b6c49 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 23 Mar 2026 00:21:11 +0100 Subject: [PATCH 10/11] Pin checkout to v4 and add explicit Rust toolchain step in ci and render workflows --- .github/workflows/ci.yml | 5 ++++- .github/workflows/render.yml | 11 +++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd74114a26..7f36139da1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable - name: Prevent file change uses: xalvarez/prevent-file-change-action@v1 diff --git a/.github/workflows/render.yml b/.github/workflows/render.yml index 53fd9c816d..83df9f2108 100644 --- a/.github/workflows/render.yml +++ b/.github/workflows/render.yml @@ -7,20 +7,23 @@ on: jobs: build: runs-on: ubuntu-latest - + permissions: # Give the default GITHUB_TOKEN write permission to commit and push the # added or changed files to the repository. contents: write steps: - - uses: actions/checkout@v3 - + - uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + - name: Render list run: make render env: GITHUB_TOKEN: ${{ github.token }} - + - uses: stefanzweifel/git-auto-commit-action@v4.1.2 with: commit_message: Commit list From c1afc8ff5c616226a4d635bad97de399694aed8d Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 23 Mar 2026 00:25:08 +0100 Subject: [PATCH 11/11] Add workflow_dispatch trigger to pr-check for manual runs --- .github/workflows/pr-check.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 2a03b1de82..c2f90caa12 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -6,6 +6,14 @@ on: paths: - "data/tools/**.yml" - "ci/**" + workflow_dispatch: + inputs: + pr_number: + description: "PR number to check" + required: true + tool_files: + description: "Space-separated list of tool YAML files to check (e.g. data/tools/foo.yml)" + required: true jobs: pr-check: @@ -21,7 +29,11 @@ jobs: - name: Get changed tool files id: changed run: | - FILES=$(git diff --name-only --diff-filter=A origin/master...HEAD -- 'data/tools/*.yml' | tr '\n' ' ') + if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then + FILES="${{ inputs.tool_files }}" + else + FILES=$(git diff --name-only --diff-filter=A origin/master...HEAD -- 'data/tools/*.yml' | tr '\n' ' ') + fi echo "files=$FILES" >> "$GITHUB_OUTPUT" - name: Install Rust toolchain @@ -45,6 +57,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_REPOSITORY: ${{ github.repository }} - PR_NUMBER: ${{ github.event.pull_request.number }} + PR_NUMBER: ${{ github.event_name == 'workflow_dispatch' && inputs.pr_number || github.event.pull_request.number }} run: | ci/target/release/pr-check ${{ steps.changed.outputs.files }}