From e9e118d424443f81b9bb8af9d9526c43a5a91597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=81=E9=80=9F=E8=9C=97=E7=89=9B?= <31986081+Jisu-Woniu@users.noreply.github.com> Date: Fri, 6 Sep 2024 16:03:55 +0800 Subject: [PATCH] =?UTF-8?q?build(msrv):=20=E2=AC=86=EF=B8=8F=20bump=20MSRV?= =?UTF-8?q?=20since=20Rust=201.81=20was=20released?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Features from Rust 1.79 can be used now.Notable features from [Rust 1.79](https://releases.rs/docs/1.79.0/): - Stabilize inline `const {}` expressions. - Stabilize `std::str::Utf8Chunk` and related types/functions. - Stabilize `std::num::NonZero`. --- .github/workflows/building.yml | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/building.yml b/.github/workflows/building.yml index be23971..ed0b6c9 100644 --- a/.github/workflows/building.yml +++ b/.github/workflows/building.yml @@ -72,7 +72,7 @@ jobs: - name: Setup Rust toolchain uses: moonrepo/setup-rust@v1 with: - channel: "1.78" + channel: "1.79" bins: cargo-hack env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 53fc04f..742bf7a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ license = "Apache-2.0" repository = "https://github.com/NJUPT-SAST/rsjudge" # MSRV is set to N - 2, where N is the current stable version. -rust-version = "1.78" +rust-version = "1.79" [workspace.dependencies] log = "0.4.22"