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

yihua pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hudi-rs.git


The following commit(s) were added to refs/heads/main by this push:
     new 9f3fc1e8 build: adopt the MSRV-aware resolver and check the MSRV in CI 
(#721)
9f3fc1e8 is described below

commit 9f3fc1e8504fabfd27fe32b3c604bf2f3d044b4c
Author: Y Ethan Guo <[email protected]>
AuthorDate: Fri Sep 4 08:03:07 2026 -0700

    build: adopt the MSRV-aware resolver and check the MSRV in CI (#721)
---
 .github/workflows/ci.yml       | 25 +++++++++++++++++++++++++
 Cargo.toml                     |  2 +-
 benchmark/filegroup/Cargo.toml |  1 +
 benchmark/tpch/Cargo.toml      |  1 +
 4 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 282e7f32..25f11af2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -153,6 +153,31 @@ jobs:
             fi
           done
 
+  # Every other job builds with the rust-toolchain.toml dev pin; this job
+  # compiles with the MSRV that Cargo.toml declares (read at run time so it
+  # follows bumps), keeping the declared floor buildable once the two diverge.
+  msrv-check:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v7
+      - name: Install system dependencies
+        run: sudo apt-get update && sudo apt-get install -y protobuf-compiler 
clang libclang-dev
+      - name: Install the MSRV toolchain
+        run: |
+          msrv=$(grep -m1 '^rust-version' Cargo.toml | cut -d'"' -f2)
+          if [ -z "$msrv" ]; then
+            echo "could not read rust-version from Cargo.toml"
+            exit 1
+          fi
+          rustup toolchain install "$msrv" --profile minimal
+          echo "MSRV=$msrv" >> "$GITHUB_ENV"
+      - name: Cache dependencies
+        uses: swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # 
v2.9.2
+        with:
+          key: msrv
+      - name: Check the workspace on the MSRV
+        run: cargo +"$MSRV" check --workspace --all-targets --all-features
+
   rust-tests-windows:
     runs-on: windows-2025
     # disable until https://github.com/apache/hudi-rs/issues/445 is resolved
diff --git a/Cargo.toml b/Cargo.toml
index 8d4df409..14db738b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,7 +23,7 @@ members = [
     "benchmark/tpch",
     "benchmark/filegroup",
 ]
-resolver = "2"
+resolver = "3"
 
 [workspace.package]
 version = "0.5.0-dev"
diff --git a/benchmark/filegroup/Cargo.toml b/benchmark/filegroup/Cargo.toml
index 9331190e..cc147738 100644
--- a/benchmark/filegroup/Cargo.toml
+++ b/benchmark/filegroup/Cargo.toml
@@ -19,6 +19,7 @@
 name = "fg-bench"
 version.workspace = true
 edition.workspace = true
+rust-version.workspace = true
 
 [[bin]]
 name = "fg-bench"
diff --git a/benchmark/tpch/Cargo.toml b/benchmark/tpch/Cargo.toml
index 42cc918b..b76855bb 100644
--- a/benchmark/tpch/Cargo.toml
+++ b/benchmark/tpch/Cargo.toml
@@ -19,6 +19,7 @@
 name = "tpch"
 version.workspace = true
 edition.workspace = true
+rust-version.workspace = true
 
 [[bin]]
 name = "tpch"

Reply via email to