Skip to content

Commit

Permalink
chore(cargo): update MSRV to 1.64.0
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Apr 28, 2023
1 parent c1fa970 commit 84f20f9
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion git-cliff-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion git-cliff/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/installation/crates-io.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

0 comments on commit 84f20f9

Please sign in to comment.