This is an automated email from the ASF dual-hosted git repository.
XiaoHongbo-Hope pushed a commit to branch release-0.1.0
in repository https://gitbox.apache.org/repos/asf/paimon-full-text.git
The following commit(s) were added to refs/heads/release-0.1.0 by this push:
new 61e5ace Align minimum supported Rust version and verify it in CI (#14)
61e5ace is described below
commit 61e5acee9937327cc091c5cbc16b7be75c8d4935
Author: jianguotian <[email protected]>
AuthorDate: Wed Jul 15 13:44:45 2026 +0800
Align minimum supported Rust version and verify it in CI (#14)
* Fix Rust MSRV declaration and CI validation
* Run MSRV validation in the Rust CI job
* Clarify minimum Rust version CI names
* Lock dependency-resolving CI commands
---------
Co-authored-by: mingfeng <[email protected]>
(cherry picked from commit 30713b27333ff0f1cf89bee708e96db20460ccfd)
---
.github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++----
Cargo.toml | 2 +-
2 files changed, 29 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 44528b9..3aec63d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -63,21 +63,45 @@ jobs:
tool: [email protected]
- name: Check dependency licenses (Apache-compatible)
- run: cargo deny check licenses
+ run: cargo deny --locked check licenses
- name: Verify Rust dependency metadata
run: |
- cargo deny list -f tsv -t 0.6 > /tmp/DEPENDENCIES.rust.tsv
+ cargo deny --locked list -f tsv -t 0.6 > /tmp/DEPENDENCIES.rust.tsv
diff -u DEPENDENCIES.rust.tsv /tmp/DEPENDENCIES.rust.tsv
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
- run: cargo clippy --all-targets --workspace -- -D warnings
+ run: cargo clippy --all-targets --workspace --locked -- -D warnings
- name: Test Rust workspace
- run: cargo test --workspace
+ run: cargo test --workspace --locked
+
+ - name: Read minimum supported Rust version
+ id: minimum_rust_version
+ run: |
+ minimum_rust_version="$(
+ cargo metadata --locked --format-version 1 --no-deps |
+ jq -er '
+ [.packages[].rust_version] | unique |
+ if length == 1 and .[0] != null then .[0]
+ else error("workspace packages must declare one common
rust-version")
+ end
+ '
+ )"
+ echo "version=${minimum_rust_version}" >> "${GITHUB_OUTPUT}"
+
+ - name: Install minimum supported Rust version
+ env:
+ MINIMUM_RUST_VERSION: ${{ steps.minimum_rust_version.outputs.version
}}
+ run: rustup toolchain install "${MINIMUM_RUST_VERSION}" --profile
minimal --no-self-update
+
+ - name: Test Rust workspace with minimum supported Rust version
+ env:
+ MINIMUM_RUST_VERSION: ${{ steps.minimum_rust_version.outputs.version
}}
+ run: rustup run "${MINIMUM_RUST_VERSION}" cargo test --workspace
--locked
java:
runs-on: ubuntu-latest
diff --git a/Cargo.toml b/Cargo.toml
index 67ad420..ccf15a3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,7 +23,7 @@ resolver = "2"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/apache/paimon-full-text"
-rust-version = "1.86"
+rust-version = "1.90"
[workspace.dependencies]
anyhow = "1"