Skip to content

Commit d7db156

Browse files
committed
chore: pin MSRV to 1.87
1 parent aa0b922 commit d7db156

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ jobs:
1414
tests:
1515
name: Tests
1616
runs-on: ${{ matrix.os }}
17-
continue-on-error: ${{ matrix.toolchain == 'nightly' }}
1817
strategy:
1918
fail-fast: false
2019
matrix:
2120
os: [macos-latest, windows-latest, ubuntu-latest]
22-
toolchain: [stable, beta, nightly]
21+
toolchain: ["1.87"]
2322
include:
2423
- os: macos-latest
2524
MACOS: true
@@ -35,15 +34,17 @@ jobs:
3534
- name: Install ${{ matrix.toolchain }} toolchain
3635
run: rustup toolchain install ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
3736

38-
- run: |
39-
rustup component add clippy
40-
cargo clippy --all-features -- -D warnings
41-
if: matrix.toolchain == 'stable' && matrix.os == 'ubuntu-latest'
37+
- name: Install stable toolchain for clippy
38+
run: rustup toolchain install stable
39+
if: matrix.os == 'ubuntu-latest'
40+
41+
- run: cargo +stable clippy --all-features -- -D warnings
42+
if: matrix.os == 'ubuntu-latest'
4243

4344
- run: |
4445
rustup component add rustfmt
4546
cargo fmt --all -- --check
46-
if: matrix.toolchain == 'stable' && matrix.os == 'ubuntu-latest'
47+
if: matrix.os == 'ubuntu-latest'
4748
4849
- run: cargo test --all-targets
4950
- run: cargo test --all-targets --all-features

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ repository = "https://github.com/RustAudio/rodio"
88
documentation = "https://docs.rs/rodio"
99
exclude = ["assets/**", "tests/**"]
1010
edition = "2021"
11+
rust-version = "1.87"
1112

1213
[features]
1314
# Default feature set provides audio playback and common format support

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ Rodio playback works in environments supported by [cpal](https://github.com/Rust
3232

3333
The CPU of the target system should have hardware support for 32-bit floating point (`f32`), and atomic operations that are at least 32 bit wide. Without these the CPU may not be fast enough to keep up with real-time.
3434

35+
### Minimum Supported Rust Version (MSRV)
36+
37+
Rodio requires Rust 1.87 or later.
38+
3539
## Dependencies (Linux only)
3640

3741
Rodio uses `cpal` library to send audio to the OS for playback. ALSA development files are needed to build `cpal` on Linux. These are provided as part of the `libasound2-dev` package on Debian and Ubuntu distributions and `alsa-lib-devel` on Fedora.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
inputs: inputs.utils.lib.eachDefaultSystem (
99
system: let
1010
pkgs = inputs.nixpkgs.legacyPackages.${system}.extend inputs.rust-overlay.overlays.default;
11-
rust = pkgs.rust-bin.stable.latest.default.override {
11+
rust = pkgs.rust-bin.stable."1.87.0".default.override {
1212
extensions = [ "rust-src" "rust-analyzer" ];
1313
};
1414
in {

0 commit comments

Comments
 (0)