From ce173f08a338a95a78a5bae04c7a28b7cec2cd23 Mon Sep 17 00:00:00 2001 From: Aniket Tuli Date: Sun, 19 Apr 2026 23:57:03 -0500 Subject: [PATCH] build: bump workspace MSRV from 1.77 to 1.85 Aligns the declared MSRV with what CI has been running (`build.yml` uses stable and `msrv.yml` exercises the pinned version). Also collapses the outlier MSRV on `stremio-watched-bitfield` (previously 1.60) so all three published crates agree. Changes: - Cargo.toml: rust-version 1.77 -> 1.85, fix workflow filename in comment. - stremio-watched-bitfield/Cargo.toml: rust-version 1.60 -> 1.85, replace the historical "dep:serde" rationale with an "aligned with workspace" note. - .github/workflows/msrv.yml: RUST_MSRV_VERSION 1.77 -> 1.85. No Cargo.lock change; dependency manifest floors untouched. This commit is purely a declared-MSRV bump. Unblocks future work that wants to use: - std::sync::LazyLock (stabilized in 1.80) - `let ... else` chain patterns (1.82) - standard library additions shipped between 1.77 and 1.85 Verified locally (Rust 1.85.1 stable-x86_64-pc-windows-gnu): cargo test -p stremio-core --lib -> 202 passed, 0 failed cargo test -p stremio-watched-bitfield -> 7 passed, 0 failed cargo clippy --all --no-deps -D warnings -> clean cargo fmt --check -> clean --- .github/workflows/msrv.yml | 2 +- Cargo.toml | 4 ++-- stremio-watched-bitfield/Cargo.toml | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml index ab083d0c12..5ed0e2363a 100644 --- a/.github/workflows/msrv.yml +++ b/.github/workflows/msrv.yml @@ -16,7 +16,7 @@ concurrency: cancel-in-progress: true env: - RUST_MSRV_VERSION: '1.77' + RUST_MSRV_VERSION: '1.85' jobs: build: diff --git a/Cargo.toml b/Cargo.toml index 7b267ac971..65bbf79b35 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,8 +4,8 @@ version = "0.1.0" authors = ["Smart Code OOD"] edition = "2021" -# When upgrading MSRV make sure to update the msrv.yaml workflow -rust-version = "1.77" +# When upgrading MSRV make sure to update the msrv.yml workflow +rust-version = "1.85" [profile.release] lto = true diff --git a/stremio-watched-bitfield/Cargo.toml b/stremio-watched-bitfield/Cargo.toml index 3f37075bfe..220a1f0ad1 100644 --- a/stremio-watched-bitfield/Cargo.toml +++ b/stremio-watched-bitfield/Cargo.toml @@ -4,8 +4,9 @@ version = "0.1.0" edition = "2021" publish = false -# because of `dep:serde` supported after 1.60 -rust-version = "1.60" +# Aligned with the workspace MSRV. Originally pinned at 1.60 for `dep:serde` +# syntax; raising to 1.85 keeps all three crates on one Rust version. +rust-version = "1.85" [lib] doctest = false