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

HyukjinKwon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark-connect-rust.git


The following commit(s) were added to refs/heads/master by this push:
     new ef88cd55 [SPARK-61236][CONNECT][INFRA] Declare the minimum supported 
Rust of the published crates as 1.88, which their dependencies need, and check 
it in CI
ef88cd55 is described below

commit ef88cd55ec2eaad1bb5919839c63f93bdb88f6e5
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Mon Nov 9 20:40:09 2026 +0900

    [SPARK-61236][CONNECT][INFRA] Declare the minimum supported Rust of the 
published crates as 1.88, which their dependencies need, and check it in CI
    
    ### What changes were proposed in this pull request?
    
    [SPARK-61236](https://issues.apache.org/jira/browse/SPARK-61236): declare 
the minimum supported Rust of the published crates as 1.88, which their 
dependencies need, and check it in CI.
    
    - The workspace `rust-version` is now 1.88, and the published crates 
(`apache-spark-connect`, `-core`, `-proto`, `-macros`, `-build`) take it with 
`rust-version.workspace = true`; none of them inherited the old value. 
`pyspark-rs` takes it too instead of its own 1.85.
    - `docs/installation.md` says Rust 1.88 or later instead of 1.70.
    - A new `msrv` job in the Rust CI installs Rust 1.88 with rustup (as the 
other jobs install stable) and runs `cargo +1.88 check --locked` of the 
published crates, with the `wasm-udf` feature.
    
    ### Why are the changes needed?
    
    The docs claimed Rust 1.70 and the workspace 1.82, but tonic, tonic-prost 
and tonic-build 0.14.6 declare `rust-version = "1.88"` (as does DataFusion 53 
of the `datafusion` feature), so the crates do not build with anything older, 
and CI only builds with stable. With the declared version, cargo reports an old 
toolchain up front, and the new job keeps the claim true.
    
    ### Does this PR introduce _any_ user-facing change?
    
    The crates on crates.io declare `rust-version = "1.88"`, and the docs say 
so. No code changes.
    
    ### How was this patch tested?
    
    - `cargo metadata` gives `rust_version` 1.88 for every workspace crate; the 
workflow parses. The new `msrv` CI job checks the crates with Rust 1.88 on this 
PR.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Opus 5.5
    
    This pull request and its description were written by Isaac.
    
    Closes #414 from HyukjinKwon/SPARK-61236-msrv.
    
    Authored-by: Hyukjin Kwon <[email protected]>
    Signed-off-by: Hyukjin Kwon <[email protected]>
---
 .github/workflows/rust.yml             | 25 +++++++++++++++++++++++++
 Cargo.toml                             |  4 +++-
 crates/pyspark-rs/Cargo.toml           |  3 +--
 crates/spark-connect-build/Cargo.toml  |  1 +
 crates/spark-connect-core/Cargo.toml   |  1 +
 crates/spark-connect-macros/Cargo.toml |  1 +
 crates/spark-connect-proto/Cargo.toml  |  1 +
 crates/spark-connect/Cargo.toml        |  1 +
 docs/installation.md                   |  2 +-
 9 files changed, 35 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 3248e349..3494da60 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -176,3 +176,28 @@ jobs:
 
       - name: WASM UDF runners (pyarrow batches, no server)
         run: cargo test --manifest-path tests/wasm-udf/Cargo.toml -- --ignored
+
+  msrv:
+    name: Minimum supported Rust
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+
+      - name: Install the minimum supported Rust toolchain
+        # The `rust-version` of the published crates (the workspace 
Cargo.toml). rustup is
+        # preinstalled on the runner; use it directly, as the other jobs do.
+        run: rustup toolchain install 1.88 --profile minimal
+
+      - name: Install system dependencies
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y protobuf-compiler
+
+      - name: Cargo check the published crates with it
+        # Warnings of an older compiler are not errors here; this checks that 
the crates build.
+        env:
+          RUSTFLAGS: ""
+        run: |
+          cargo +1.88 check --locked -p apache-spark-connect -p 
apache-spark-connect-core \
+            -p apache-spark-connect-proto -p apache-spark-connect-macros -p 
apache-spark-connect-build \
+            --features apache-spark-connect/wasm-udf
diff --git a/Cargo.toml b/Cargo.toml
index 8595732f..c382d9e0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -53,7 +53,9 @@ default-members = [
 [workspace.package]
 version = "4.3.0"
 edition = "2021"
-rust-version = "1.82"
+# The minimum Rust that the dependencies of the published crates need: tonic, 
tonic-prost and
+# tonic-build 0.14 (and DataFusion 53 of the `datafusion` feature) declare 
1.88. CI checks it.
+rust-version = "1.88"
 license = "Apache-2.0"
 repository = "https://github.com/apache/spark-connect-rust";
 homepage = "https://spark.apache.org/";
diff --git a/crates/pyspark-rs/Cargo.toml b/crates/pyspark-rs/Cargo.toml
index 8a0bb26d..3b9192cf 100644
--- a/crates/pyspark-rs/Cargo.toml
+++ b/crates/pyspark-rs/Cargo.toml
@@ -2,8 +2,7 @@
 name = "pyspark-rs"
 version.workspace = true
 edition.workspace = true
-# Arrow 58.3.0, including arrow-pyarrow, requires Rust 1.85.
-rust-version = "1.85"
+rust-version.workspace = true
 license.workspace = true
 description = "PyO3 bindings exposing the Rust Spark Connect client as a 
drop-in pyspark package"
 # The Python extension (cdylib) is distributed as a PyPI wheel, not on 
crates.io.
diff --git a/crates/spark-connect-build/Cargo.toml 
b/crates/spark-connect-build/Cargo.toml
index 28622895..d1826698 100644
--- a/crates/spark-connect-build/Cargo.toml
+++ b/crates/spark-connect-build/Cargo.toml
@@ -19,6 +19,7 @@
 name = "apache-spark-connect-build"
 version.workspace = true
 edition.workspace = true
+rust-version.workspace = true
 license.workspace = true
 description = "build.rs helper that compiles Rust WASM UDFs for the Spark 
Connect client"
 
diff --git a/crates/spark-connect-core/Cargo.toml 
b/crates/spark-connect-core/Cargo.toml
index 063a6794..e7266250 100644
--- a/crates/spark-connect-core/Cargo.toml
+++ b/crates/spark-connect-core/Cargo.toml
@@ -2,6 +2,7 @@
 name = "apache-spark-connect-core"
 version.workspace = true
 edition.workspace = true
+rust-version.workspace = true
 license.workspace = true
 repository.workspace = true
 homepage.workspace = true
diff --git a/crates/spark-connect-macros/Cargo.toml 
b/crates/spark-connect-macros/Cargo.toml
index 6908843f..1f694ca0 100644
--- a/crates/spark-connect-macros/Cargo.toml
+++ b/crates/spark-connect-macros/Cargo.toml
@@ -19,6 +19,7 @@
 name = "apache-spark-connect-macros"
 version.workspace = true
 edition.workspace = true
+rust-version.workspace = true
 license.workspace = true
 description = "Procedural macros for the Rust Spark Connect client (e.g. 
#[spark_wasm_udf])"
 
diff --git a/crates/spark-connect-proto/Cargo.toml 
b/crates/spark-connect-proto/Cargo.toml
index 604ff898..21281e7b 100644
--- a/crates/spark-connect-proto/Cargo.toml
+++ b/crates/spark-connect-proto/Cargo.toml
@@ -2,6 +2,7 @@
 name = "apache-spark-connect-proto"
 version.workspace = true
 edition.workspace = true
+rust-version.workspace = true
 license.workspace = true
 repository.workspace = true
 homepage.workspace = true
diff --git a/crates/spark-connect/Cargo.toml b/crates/spark-connect/Cargo.toml
index a3f263b5..d73b2b75 100644
--- a/crates/spark-connect/Cargo.toml
+++ b/crates/spark-connect/Cargo.toml
@@ -2,6 +2,7 @@
 name = "apache-spark-connect"
 version.workspace = true
 edition.workspace = true
+rust-version.workspace = true
 license.workspace = true
 repository.workspace = true
 homepage.workspace = true
diff --git a/docs/installation.md b/docs/installation.md
index b7aaf9a0..06ce2b71 100644
--- a/docs/installation.md
+++ b/docs/installation.md
@@ -21,7 +21,7 @@ apache-spark-connect = { version = "4.3", features = 
["datafusion", "polars"] }
 ```
 
 **Requirements:**
-- Rust 1.70 or later
+- Rust 1.88 or later
 - `protobuf-compiler` (e.g., `brew install protobuf` on macOS, `apt-get 
install protobuf-compiler` on Linux)
 - A running Spark Connect server (see [Configuration and 
Connection](configuration.md))
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to