From 84f20f906fbb7995c656bd0ea14432ff6ff8d969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Fri, 28 Apr 2023 14:27:35 +0300 Subject: [PATCH] chore(cargo): update MSRV to 1.64.0 --- .github/workflows/ci.yml | 19 +++++++++++++++++++ CONTRIBUTING.md | 2 +- git-cliff-core/Cargo.toml | 2 +- git-cliff/Cargo.toml | 2 +- website/docs/installation/crates-io.md | 2 +- 5 files changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 174bb75604..df2711efc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,3 +116,22 @@ jobs: uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} + + msrv: + name: Check Rust version + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Run cargo-msrv + shell: bash + run: | + curl -s 'https://api.github.com/repos/foresterre/cargo-msrv/releases' | \ + jq -r "[.[] | select(.prerelease == false)][0].assets[] | \ + select(.name | ascii_downcase | test(\"linux.*x86_64|x86_64.*linux\")).browser_download_url" | \ + wget -qi - + tar -xvf cargo-msrv*.tar* -C ~/.cargo/bin/ cargo-msrv + for package in $(cargo metadata --format-version 1 | jq -r ".workspace_members[]" | awk '{print $1}'); do + printf "Checking MSRV for $package..." + cargo msrv --output-format json --path "$package" verify | tail -n 1 | jq --exit-status '.success' + done diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4c404fe56c..542090d886 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,7 +17,7 @@ Note that we have a [Code of Conduct](./CODE_OF_CONDUCT.md), please follow it in git clone https://github.com/{username}/git-cliff && cd git-cliff ``` -3. Make sure that you have [Rust](https://www.rust-lang.org/) `1.60.0` or later installed and build the project. +3. Make sure that you have [Rust](https://www.rust-lang.org/) `1.64.0` or later installed and build the project. ```sh cargo build diff --git a/git-cliff-core/Cargo.toml b/git-cliff-core/Cargo.toml index a7696be1cc..9dbc22daeb 100644 --- a/git-cliff-core/Cargo.toml +++ b/git-cliff-core/Cargo.toml @@ -8,7 +8,7 @@ homepage = "https://github.com/orhun/git-cliff" repository = "https://github.com/orhun/git-cliff" keywords = ["changelog", "generator", "conventional", "commit"] edition = "2021" -rust-version = "1.60.0" +rust-version = "1.64.0" [dependencies] glob.workspace = true diff --git a/git-cliff/Cargo.toml b/git-cliff/Cargo.toml index b6cf443944..9442e47429 100644 --- a/git-cliff/Cargo.toml +++ b/git-cliff/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["changelog", "generator", "conventional", "commit"] categories = ["command-line-utilities"] default-run = "git-cliff" edition = "2021" -rust-version = "1.60.0" +rust-version = "1.64.0" [[bin]] name = "git-cliff-completions" diff --git a/website/docs/installation/crates-io.md b/website/docs/installation/crates-io.md index 8141c5387c..f6ed37e004 100644 --- a/website/docs/installation/crates-io.md +++ b/website/docs/installation/crates-io.md @@ -6,4 +6,4 @@ cargo install git-cliff ``` -Minimum supported Rust version is `1.60.0`. +The minimum supported Rust version is `1.64.0`.