Skip to content

Commit

Permalink
Bump MSRV to 1.60 and check MSRV in CI (#108)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
taiki-e authored Mar 30, 2024
1 parent c207f69 commit b71fbe3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ jobs:
- run: cargo test --manifest-path test-project/Cargo.toml -- --nocapture

- run: cargo test --manifest-path test-procmacro-project/Cargo.toml -- --nocapture

msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --rust-version
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "macrotest"
version = "1.0.11" # remember to update in lib.rs
authors = ["eupn <[email protected]>"]
edition = "2018"
rust-version = "1.56"
rust-version = "1.60"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/eupn/macrotest"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

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

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

*Minimal Supported Rust Version: 1.56*
*Minimal Supported Rust Version: 1.60*

----

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//!
//! Similar to [trybuild], but allows you to write tests on how macros are expanded.
//!
//! *Minimal Supported Rust Version: 1.56*
//! *Minimal Supported Rust Version: 1.60*
//!
//! <br>
//!
Expand Down

0 comments on commit b71fbe3

Please sign in to comment.