Skip to content

Commit

Permalink
build: Make MSRV explicit (#90)
Browse files Browse the repository at this point in the history
Add `rust-version` to `Cargo.toml`. Verify this MSRV by adding a CI check that builds using that rust compiler version.

The current MSRV is 1.61. Trying to build with 1.60 results in:
```
error: package `syn v2.0.90` cannot be built because it requires rustc 1.61 or newer, while the currently active rustc version is 1.60.0
```
  • Loading branch information
caspermeijn authored Jan 16, 2025
1 parent 01bf047 commit 1340772
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,12 @@ jobs:
run: taplo lint
- name: taplo fmt
run: taplo fmt --check --diff

msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
- name: check with all-features
run: cargo hack --rust-version --no-private --no-dev-deps check --all-features
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ documentation = "https://docs.rs/graphql-parser"
version = "0.4.1"
authors = ["Paul Colomiets <paul@colomiets.name>"]
edition = "2018"
rust-version = "1.61"

[dependencies]
combine = "4.6.6"
Expand Down

0 comments on commit 1340772

Please sign in to comment.