Skip to content

Commit 1340772

Browse files
authoredJan 16, 2025··
build: Make MSRV explicit (#90)
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 ```
1 parent 01bf047 commit 1340772

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
 

‎.github/workflows/ci.yml

+9
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,12 @@ jobs:
4141
run: taplo lint
4242
- name: taplo fmt
4343
run: taplo fmt --check --diff
44+
45+
msrv:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: taiki-e/install-action@cargo-hack
50+
- uses: Swatinem/rust-cache@v2
51+
- name: check with all-features
52+
run: cargo hack --rust-version --no-private --no-dev-deps check --all-features

‎Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ documentation = "https://docs.rs/graphql-parser"
1313
version = "0.4.1"
1414
authors = ["Paul Colomiets <paul@colomiets.name>"]
1515
edition = "2018"
16+
rust-version = "1.61"
1617

1718
[dependencies]
1819
combine = "4.6.6"

0 commit comments

Comments
 (0)
Please sign in to comment.