Skip to content

Commit b71fbe3

Browse files
authored
Bump MSRV to 1.60 and check MSRV in CI (eupn#108)
* Bump MSRV to 1.60 syn 2.0.57 requires it. ``` error: failed to select a version for the requirement `syn = "=2.0.57"` candidate versions found which didn't match: 2.0.56, 2.0.55, 2.0.54, ... location searched: crates.io index ``` * Check MSRV in CI
1 parent c207f69 commit b71fbe3

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,10 @@ jobs:
2828
- run: cargo test --manifest-path test-project/Cargo.toml -- --nocapture
2929

3030
- run: cargo test --manifest-path test-procmacro-project/Cargo.toml -- --nocapture
31+
32+
msrv:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: taiki-e/install-action@cargo-hack
37+
- run: cargo hack check --rust-version

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "macrotest"
33
version = "1.0.11" # remember to update in lib.rs
44
authors = ["eupn <[email protected]>"]
55
edition = "2018"
6-
rust-version = "1.56"
6+
rust-version = "1.60"
77
license = "MIT OR Apache-2.0"
88
readme = "README.md"
99
repository = "https://github.com/eupn/macrotest"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
[![Travis-CI](https://api.travis-ci.com/eupn/macrotest.svg?branch=master)](https://travis-ci.com/eupn/macrotest)
44
[![Crates.io](https://img.shields.io/crates/v/macrotest)](https://crates.io/crates/macrotest)
5-
![MSRV 1.56](https://img.shields.io/badge/MSRV-1.56-orange.svg)
5+
![MSRV 1.60](https://img.shields.io/badge/MSRV-1.60-orange.svg)
66
[![docs.rs](https://docs.rs/macrotest/badge.svg)](https://docs.rs/macrotest/)
77
[![Crates.io](https://img.shields.io/crates/d/macrotest)](https://crates.io/crates/macrotest)
88
[![Crates.io](https://img.shields.io/crates/l/macrotest)](https://crates.io/crates/macrotest)
99

1010
Similar to [trybuild], but allows you to test how declarative or procedural macros are expanded.
1111

12-
*Minimal Supported Rust Version: 1.56*
12+
*Minimal Supported Rust Version: 1.60*
1313

1414
----
1515

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//!
66
//! Similar to [trybuild], but allows you to write tests on how macros are expanded.
77
//!
8-
//! *Minimal Supported Rust Version: 1.56*
8+
//! *Minimal Supported Rust Version: 1.60*
99
//!
1010
//! <br>
1111
//!

0 commit comments

Comments
 (0)