This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new de79fa936 ci(rust): verify MSRV of each package (#2996)
de79fa936 is described below

commit de79fa93666679fced5f280145f72d2db28e46db
Author: eitsupi <[email protected]>
AuthorDate: Fri Jun 20 00:03:58 2025 +0900

    ci(rust): verify MSRV of each package (#2996)
    
    Related to #2739
    
    Verify on CI that the MSRV specification for each package is correct
    using the command based on the cargo-msrv (copied from the arrow-rs
    repo).
---
 .github/workflows/rust.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 89ada9b87..3c8d4f78a 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -143,3 +143,23 @@ jobs:
           pushd rust
           cargo doc --workspace --all-features
           popd
+      - name: Verify MSRV (Minimum Supported Rust Version)
+        if: matrix.os == 'ubuntu-latest'
+        working-directory: rust
+        run: |
+          # Install cargo-msrv
+          cargo_msrv_version="v0.18.4"
+          
cargo_msrv_hash="367a48e4ad014b119bf728a9e95e863575e02fdf6cf95ae24f44ca73b445ee14"
+          cargo_msrv_archive="cargo-msrv.tgz"
+
+          curl -L 
"https://github.com/foresterre/cargo-msrv/releases/download/${cargo_msrv_version}/cargo-msrv-x86_64-unknown-linux-gnu-${cargo_msrv_version}.tgz";
 -o "${cargo_msrv_archive}"
+          echo "${cargo_msrv_hash}  ${cargo_msrv_archive}" | sha256sum -c -
+          tar xz -f "${cargo_msrv_archive}" --wildcards --strip-components=1 
-C "$HOME/.local/bin" "*/cargo-msrv"
+          rm "${cargo_msrv_archive}"
+
+          # Verify MSRV for each package
+          find . -mindepth 2 -name Cargo.toml | while read -r dir
+          do
+            echo "Checking package '$dir'"
+            cargo msrv verify --manifest-path "$dir" || exit 1
+          done

Reply via email to