Repository: Spotifyd/spotifyd (language: rust)

Issue:
Formally specifcy MSRV
We had a discussion recently about specifying a minimum Rust version. Turns out there actually is a way to put that in the codebase, so users with very old Rust versions will be told in no uncertain terms what the problem is.


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a0bce5c5..c8210eef 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -55,6 +55,7 @@ jobs:
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:
+        rust: [stable, 1.62.0]
         os: [macos-latest, ubuntu-latest]
         include:
           - os: macos-latest
@@ -66,7 +67,7 @@ jobs:
       - name: Installing Rust toolchain
         uses: actions-rs/toolchain@v1
         with:
-          toolchain: stable
+          toolchain: ${{ matrix.rust }}
           override: true
       - name: Installing macOS dependencies
         if: matrix.os == 'macos-latest'
diff --git a/Cargo.toml b/Cargo.toml
index c603c0ac..50738010 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,6 +6,7 @@ description = "A Spotify daemon"
 repository = "https://github.com/Spotifyd/spotifyd"
 license = "GPL-3.0-only"
 version = "0.3.3"
+rust-version = "1.62"
 
 [dependencies]
 alsa = { version = "0.5", optional = true }


Test patch: