Skip to content

Conversation

@sourcefrog
Copy link
Collaborator

@sourcefrog sourcefrog commented Dec 8, 2025

  • Replace deprecated actions
  • Fewer jobs
  • Test on nightly
  • Set MSRV to 1.71, which is empirically the earliest that builds
  • Test that MSRV in CI
  • Update to edition 2021 (no code changes)

Fixes some warnings about using deprecated commands: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

@sourcefrog sourcefrog changed the title Modernize GitHub actions Modernize GitHub actions and declare MSRV Dec 8, 2025
@sourcefrog sourcefrog requested a review from whitty December 8, 2025 02:13
@sourcefrog
Copy link
Collaborator Author

@whitty please take a look, following on from your 5a3b88d

@sourcefrog sourcefrog force-pushed the ci branch 2 times, most recently from 33a4a2e to 1539e2c Compare December 8, 2025 02:32
Supported by every toolchain that we support, and doesn't actually require any changes to the codebase.
Seems to be the earliest version that actually builds.
keywords = ["patch", "diff", "parse", "nom"]
license = "MIT"
edition = "2018"
edition = "2021"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was mindful of updating the edition as I've been bitten by packages pushing mindlessly forward interfering with (embedded) platforms with limitations keeping rust versions older, which is why I kept it back.

Its probably time to move on though.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I wouldn't want to move forward unnecessarily. However it seems that the oldest compiler that works with our dependencies also supports 2021, and it's from June 2021.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the GitHub Actions workflow configuration and establishes a formal Minimum Supported Rust Version (MSRV) of 1.71. It consolidates CI jobs for better efficiency, updates to Rust edition 2021, and replaces deprecated GitHub Actions to comply with current best practices.

  • Declares MSRV as 1.71 in Cargo.toml and tests it in CI
  • Consolidates separate "test" and "style" jobs into a single job, adding nightly testing
  • Updates Rust edition from 2018 to 2021 with corresponding code modernization

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
Cargo.toml Updates edition to 2021 and declares rust-version 1.71
.github/workflows/checks.yml Replaces deprecated actions (actions-rs/toolchain, actions-rs/cargo), consolidates jobs, adds MSRV and nightly testing
src/ast.rs Modernizes test code to use array literal instead of vec![] macro

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sourcefrog sourcefrog merged commit ea05b24 into gitpatch-rs:main Dec 10, 2025
21 checks passed
@sourcefrog sourcefrog deleted the ci branch December 10, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants