chore: Create GH action to auto bump rustc #146
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requirements
Related issues
Ported from rust-eventsource-client (sha f26dc37a6eb60eb31f3e106313d64b21de2c1949).
Describe the solution you've provided
This PR adds an automated workflow to keep the Minimum Supported Rust Version (MSRV) up to date, ported from rust-eventsource-client.
Changes include:
New
check-rust-versions.ymlworkflow - Runs daily and on-demand to check if the MSRV needs updating. It fetches Rust release data from endoflife.date and targets the antepenultimate (3rd most recent) stable release. When an update is needed, it automatically creates a PR updating both the env file and Cargo.toml.New
.github/variables/rust-versions.env- Centralizes the MSRV (currently 1.88) so it can be referenced dynamically.Updated
ci.yml- Replaced hardcoded1.88with dynamic version lookup from the env file in bothci-buildandmusl-buildjobs.Updated README MSRV policy - Changed from "six months old" to "latest stable release plus two prior minor releases" to match the new automated policy.
Describe alternatives you've considered
Could continue manually updating MSRV, but automation reduces maintenance burden and ensures consistency.
Additional context
Requested by @keelerm84. Devin session
Human review checklist:
check-rust-versions.ymlcorrectly referencelaunchdarkly-server-sdk/Cargo.tomlfor this workspace structure