chore: Bump MSRV to 1.70

This commit is contained in:
Kévin Commaille 2023-08-14 15:32:43 +02:00 committed by Kévin Commaille
parent 1701d9a803
commit b2fe172be1
5 changed files with 9 additions and 7 deletions

View File

@ -67,7 +67,7 @@ jobs:
run: target/debug/xtask ci lint run: target/debug/xtask ci lint
msrv: msrv:
name: Rust 1.65 / ${{ matrix.name }} name: Rust 1.70 / ${{ matrix.name }}
needs: xtask needs: xtask
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@ -92,17 +92,17 @@ jobs:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install rust 1.65 toolchain - name: Install rust 1.70 toolchain
uses: dtolnay/rust-toolchain@master uses: dtolnay/rust-toolchain@master
with: with:
toolchain: 1.65 toolchain: "1.70"
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
# A stable compiler update should automatically not reuse old caches. # A stable compiler update should automatically not reuse old caches.
# Add the MSRV as a stable cache key too so bumping it also gets us a # Add the MSRV as a stable cache key too so bumping it also gets us a
# fresh cache. # fresh cache.
sharedKey: msrv1.65 sharedKey: msrv1.70
- name: Get xtask - name: Get xtask
uses: actions/cache@v3 uses: actions/cache@v3

View File

@ -5,7 +5,7 @@ default-members = ["crates/*"]
resolver = "2" resolver = "2"
[workspace.package] [workspace.package]
rust-version = "1.65" rust-version = "1.70"
[workspace.dependencies] [workspace.dependencies]
assert_matches2 = "0.1.0" assert_matches2 = "0.1.0"

View File

@ -52,7 +52,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md).
## Minimum Rust version ## Minimum Rust version
Ruma currently requires Rust 1.65. In general, we will never require beta or Ruma currently requires Rust 1.70. In general, we will never require beta or
nightly for crates.io releases of our crates, and we will try to avoid releasing nightly for crates.io releases of our crates, and we will try to avoid releasing
crates that depend on features that were only just stabilized. crates that depend on features that were only just stabilized.

View File

@ -1,5 +1,7 @@
# [unreleased] # [unreleased]
- Bump MSRV to 1.70
# 0.8.2 # 0.8.2
Please refer to the changelogs of: Please refer to the changelogs of:

View File

@ -12,7 +12,7 @@ mod spec_links;
use spec_links::check_spec_links; use spec_links::check_spec_links;
const MSRV: &str = "1.65"; const MSRV: &str = "1.70";
#[derive(Args)] #[derive(Args)]
pub struct CiArgs { pub struct CiArgs {