From 947a2b06912cd57e95bbaef32f48c834fcfd769b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Pol=C3=A1=C4=8Dek?= Date: Mon, 27 Oct 2025 20:50:13 +0100 Subject: [PATCH] Bump MSRV to 1.84 Rust 1.84 brings a MSRV-aware resolver which discards dependencies which require a too new toolchain. Thus we cand drop the pinned version of indexmap, the resolver will do its job. --- .github/workflows/testing.yml | 5 ++--- Cargo.toml | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index be8b36b..b576fcc 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -21,7 +21,7 @@ jobs: sudo apt-get install -y libdbus-1-dev - name: Set toolchain version run: | - rustup override set 1.76 + rustup override set 1.84 rustup component add rustfmt - name: cargo check run: cargo check ${{ matrix.features }} @@ -29,8 +29,7 @@ jobs: run: cargo fmt --all -- --check - name: cargo clippy run: | - rustup override set 1.80 rustup component add clippy cargo clippy -- -D warnings - name: cargo test - run: cargo +1.76.0 test ${{ matrix.features }} + run: cargo test ${{ matrix.features }} diff --git a/Cargo.toml b/Cargo.toml index e625250..cd55a6a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ authors = ["Adam McQuilkin"] readme = "README.md" license = "GPL-3.0" version = "0.1.7" -rust-version = "1.76" +rust-version = "1.84" edition = "2021" [lib] @@ -54,8 +54,6 @@ walkdir = { version = "2.5.0", optional = true } [dependencies] futures-util = "0.3.31" -#TODO: remove indexmap after moving to rust 1.84+. It's listed here only to lock the version. -indexmap = "=2.11.0" rand = "0.9.0" tokio = { version = "1.43.0", features = ["full"], optional = true } tokio-serial = { version = "5.4.5", optional = true }