Skip to content

Commit d5fbf30

Browse files
authored
Upgrade Rust toolchain to 1.94.1 (spiceai#10353)
* Upgrade Rust toolchain to 1.94.1 Bump workspace rust-version, rust-toolchain.toml channel, Dockerfiles, and workflow rustup installs from 1.93.1 to 1.94.1. Updates the agent/copilot instructions baseline accordingly. * Add #[expect(clippy::result_large_err)] annotations to multiple TryFrom implementations and update println! to use saturating_sub
1 parent f670edf commit d5fbf30

18 files changed

Lines changed: 22 additions & 17 deletions

File tree

.github/copilot-instructions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ cargo run -p testoperator -- run bench -p ./test/spicepods/tpch/sf1/federated/du
5353

5454
### Rust Version Baseline
5555

56-
- **Workspace Rust version is 1.93.1**: Treat Rust 1.93.1 as the minimum supported compiler version for workspace code unless a specific crate or integration explicitly documents a different constraint.
57-
- **Use stable Rust features through 1.93.1**: Prefer stable language, standard library, and Cargo features available in Rust 1.93.1 when they improve correctness, clarity, ergonomics, or maintainability.
58-
- **Do not code to an older Rust subset by default**: Avoid workarounds for pre-1.93 compilers unless there is a concrete compatibility requirement.
56+
- **Workspace Rust version is 1.94.1**: Treat Rust 1.94.1 as the minimum supported compiler version for workspace code unless a specific crate or integration explicitly documents a different constraint.
57+
- **Use stable Rust features through 1.94.1**: Prefer stable language, standard library, and Cargo features available in Rust 1.94.1 when they improve correctness, clarity, ergonomics, or maintainability.
58+
- **Do not code to an older Rust subset by default**: Avoid workarounds for pre-1.94 compilers unless there is a concrete compatibility requirement.
5959
- **Prefer modern std APIs over manual patterns**: When a newer stable standard-library API expresses the intent more clearly or avoids extra allocation or unsafe code, use it.
6060

6161
### Error Handling (CRITICAL)
@@ -498,7 +498,7 @@ export PATH="$PATH:$HOME/.spice/bin"
498498
3. Spicepod is YAML config format
499499
4. Integration tests need credentials (`spice login` or `.env`)
500500
5. testoperator is the test harness
501-
6. Workspace uses Rust edition 2024 and rust-version 1.93.1; use stable Rust features available through 1.93.1 by default
501+
6. Workspace uses Rust edition 2024 and rust-version 1.94.1; use stable Rust features available through 1.94.1 by default
502502
7. New files should include copyright header. The current year is 2026. Required file types: `.rs`, `.go`
503503
8. **Spice runtime (Rust) is 64-bit minimum**: The runtime requires at least 64-bit pointer size. Do not add 32-bit compatibility code. Code should assume `usize` is at least 64 bits but not assume it's exactly 64 bits (future 128-bit support).
504504

.github/workflows/generate-openapi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
env:
3939
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4040

41-
- name: Install Rust 1.93.1
41+
- name: Install Rust 1.94.1
4242
if: steps.check_pr.outputs.skip != 'true'
43-
run: rustup toolchain install 1.93.1 --profile minimal
43+
run: rustup toolchain install 1.94.1 --profile minimal
4444

4545
- name: Set up make
4646
if: runner.os != 'macOS' && steps.check_pr.outputs.skip != 'true'

.github/workflows/generate_acknowledgements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
1616

17-
- run: rustup toolchain install 1.93.1 --profile minimal
17+
- run: rustup toolchain install 1.94.1 --profile minimal
1818

1919
- name: Set up make
2020
if: runner.os != 'macOS'

.github/workflows/generate_json_schema.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
steps:
3232
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
3333

34-
- run: rustup toolchain install 1.93.1 --profile minimal
34+
- run: rustup toolchain install 1.94.1 --profile minimal
3535

3636
- name: Set up make
3737
if: runner.os != 'macOS' && (github.event_name != 'workflow_dispatch' || inputs.run_build)

.github/workflows/types_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set REL_VERSION from version.txt
2222
run: python3 ./.github/scripts/get_release_version.py
2323

24-
- run: rustup toolchain install 1.93.1 --profile minimal
24+
- run: rustup toolchain install 1.94.1 --profile minimal
2525

2626
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2
2727
with:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ exclude = [".github/"]
8484
homepage = "https://spice.ai"
8585
license = "Apache-2.0"
8686
repository = "https://github.com/spiceai/spiceai"
87-
rust-version = "1.93.1"
87+
rust-version = "1.94.1"
8888
version = "2.0.0-unstable"
8989

9090
[workspace.dependencies]

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#syntax=docker/dockerfile:1.2
2-
ARG RUST_VERSION=1.93.1
2+
ARG RUST_VERSION=1.94.1
33
FROM rust:${RUST_VERSION}-slim-bookworm as build
44

55
# cache mounts below may already exist and owned by root

Dockerfile-cuda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#syntax=docker/dockerfile:1.2
2-
ARG RUST_VERSION=1.93.1
2+
ARG RUST_VERSION=1.94.1
33

44
FROM nvidia/cuda:12.2.2-cudnn8-devel-ubuntu22.04 AS build
55

crates/data-connectors/connector-nfs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name = "connector-nfs"
55
edition = "2024"
66
version = "1.11.0-unstable"
7-
rust-version = "1.93.1"
7+
rust-version = "1.94.1"
88
license = "Apache-2.0"
99
description = "NFS data connector for Spice.ai runtime"
1010

crates/datafusion-flightsql/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "datafusion-flightsql"
33
version = "0.1.0"
44
edition.workspace = true
5-
rust-version = "1.93.1"
5+
rust-version = "1.94.1"
66
license = "Apache-2.0"
77
description = "Arrow Flight SQL service backed by an arbitrary DataFusion SessionContext"
88

0 commit comments

Comments
 (0)