Skip to content

Commit de9c8ce

Browse files
authored
chore: Bump Rust version and workflow actions for 26.3.0 (#1156)
* chore: Bump stable Rust version to 1.93.0 * ci: Bump stable Rust version to 1.93.0 * chore: Bump nightly Rust version to 2026-02-24 * chore: Fix clippy lints * ci: Bump actions/checkout to v6.0.2 * ci: Bump stackabletech/actions to v0.12.2 * ci: Bump and pin dtolnay/rust-toolchain * ci: Bump Swatinem/rust-cache to v2.8.2 * ci: Bump EmbarkStudios/cargo-deny-action to v2.0.15 * ci: Bump cargo-udeps to 0.1.60
1 parent 2ba637e commit de9c8ce

9 files changed

Lines changed: 33 additions & 30 deletions

File tree

.github/workflows/daily_security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
audit:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616
with:
1717
persist-credentials: false
1818
- uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2.0.0

.github/workflows/pr_pre-commit.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ on:
77

88
env:
99
CARGO_TERM_COLOR: always
10-
RUST_TOOLCHAIN_VERSION: "nightly-2025-10-23"
10+
RUST_TOOLCHAIN_VERSION: "nightly-2026-02-24"
1111

1212
permissions: {}
1313

1414
jobs:
1515
pre-commit:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919
with:
2020
persist-credentials: false
2121
fetch-depth: 0
22-
- uses: stackabletech/actions/run-pre-commit@75e0756966dea229d697165bfd06ba79abcda72c # v0.10.3
22+
- uses: stackabletech/actions/run-pre-commit@c34dbb4f27b274736c7d2edc6f6f30a03d03edf5 # v0.12.2
2323
with:
2424
rust: ${{ env.RUST_TOOLCHAIN_VERSION }}
2525
# rust-src is required for trybuild stderr output comparison to work

.github/workflows/pr_security-checks.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
CARGO_TERM_COLOR: always
99
CARGO_INCREMENTAL: "0"
1010
CARGO_PROFILE_DEV_DEBUG: "0"
11-
RUST_TOOLCHAIN_VERSION: "1.89.0"
11+
RUST_TOOLCHAIN_VERSION: "1.93.0"
1212
RUSTFLAGS: "-D warnings"
1313
RUSTDOCFLAGS: "-D warnings"
1414
RUST_LOG: "info"
@@ -23,16 +23,16 @@ jobs:
2323
env:
2424
RUSTC_BOOTSTRAP: 1
2525
steps:
26-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
with:
2828
persist-credentials: false
29-
- uses: dtolnay/rust-toolchain@master
29+
- uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9
3030
with:
3131
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
32-
- uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
32+
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
3333
with:
3434
key: udeps
35-
- run: cargo install --locked cargo-udeps@0.1.59
35+
- run: cargo install --locked cargo-udeps@0.1.60
3636
- run: cargo udeps --all-targets --all-features
3737

3838
cargo-deny:
@@ -48,12 +48,12 @@ jobs:
4848
continue-on-error: ${{ matrix.checks == 'advisories' }}
4949

5050
steps:
51-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
51+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5252
with:
5353
persist-credentials: false
54-
- uses: dtolnay/rust-toolchain@master
54+
- uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9
5555
with:
5656
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
57-
- uses: EmbarkStudios/cargo-deny-action@76cd80eb775d7bbbd2d80292136d74d39e1b4918 # v2.0.14
57+
- uses: EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 # v2.0.15
5858
with:
5959
command: check ${{ matrix.checks }}

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
- crates/**
1414

1515
env:
16-
RUST_TOOLCHAIN_VERSION: "1.89.0"
16+
RUST_TOOLCHAIN_VERSION: "1.93.0"
1717

1818
permissions: {}
1919

@@ -22,11 +22,11 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout Repository
25-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2626
with:
2727
persist-credentials: false
2828

29-
- uses: dtolnay/rust-toolchain@master
29+
- uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9
3030
with:
3131
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
3232

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ repos:
7575
name: cargo-rustfmt
7676
language: system
7777
# Pinning to a specific rustc version, so that we get consistent formatting
78-
entry: cargo +nightly-2025-10-23 fmt --all -- --check
78+
entry: cargo +nightly-2026-02-24 fmt --all -- --check
7979
stages: [pre-commit, pre-merge-commit]
8080
pass_filenames: false
8181
files: \.rs$

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"rust-analyzer.imports.granularity.group": "crate",
44
"rust-analyzer.rustfmt.overrideCommand": [
55
"rustfmt",
6-
"+nightly-2025-10-23",
6+
"+nightly-2026-02-24",
77
"--edition",
88
"2024",
99
"--"

crates/stackable-operator/src/cli/product_config.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ impl ProductConfigPath {
7676
}
7777
}
7878

79+
// NOTE (@Techassi): This attribute should ideally be applied to the unit test function, but rstest
80+
// currently doesn't forward it correctly.
81+
#[allow(
82+
clippy::unwrap_in_result,
83+
reason = "We allow unwraps/expects in this function which returns Result, because the Result doesn't (and shouldn't) capture these errors."
84+
)]
7985
#[cfg(test)]
8086
mod tests {
8187
use std::fs::File;

crates/stackable-shared/src/time/duration.rs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,9 @@ impl Duration {
337337
/// not recommended to use the function to construct [`Duration`]s from user provided input.
338338
/// Instead, use [`Duration::from_str`] to parse human-readable duration strings.
339339
pub const fn from_minutes_unchecked(minutes: u64) -> Self {
340-
let millis = match minutes.checked_mul(DurationUnit::Minutes.millis()) {
341-
Some(millis) => millis,
342-
None => panic!("overflow in Duration::from_minutes"),
343-
};
340+
let millis = minutes
341+
.checked_mul(DurationUnit::Minutes.millis())
342+
.expect("overflow in Duration::from_minutes");
344343
Self::from_millis(millis)
345344
}
346345

@@ -352,10 +351,9 @@ impl Duration {
352351
/// not recommended to use the function to construct [`Duration`]s from user provided input.
353352
/// Instead, use [`Duration::from_str`] to parse human-readable duration strings.
354353
pub const fn from_hours_unchecked(hours: u64) -> Self {
355-
let millis = match hours.checked_mul(DurationUnit::Hours.millis()) {
356-
Some(millis) => millis,
357-
None => panic!("overflow in Duration::from_hours"),
358-
};
354+
let millis = hours
355+
.checked_mul(DurationUnit::Hours.millis())
356+
.expect("overflow in Duration::from_hours");
359357
Self::from_millis(millis)
360358
}
361359

@@ -367,10 +365,9 @@ impl Duration {
367365
/// not recommended to use the function to construct [`Duration`]s from user provided input.
368366
/// Instead, use [`Duration::from_str`] to parse human-readable duration strings.
369367
pub const fn from_days_unchecked(days: u64) -> Self {
370-
let millis = match days.checked_mul(DurationUnit::Days.millis()) {
371-
Some(millis) => millis,
372-
None => panic!("overflow in Duration::from_days"),
373-
};
368+
let millis = days
369+
.checked_mul(DurationUnit::Days.millis())
370+
.expect("overflow in Duration::from_days");
374371
Self::from_millis(millis)
375372
}
376373
}

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.89.0"
2+
channel = "1.93.0"
33
profile = "default"

0 commit comments

Comments
 (0)