Enable support for pre-release Rust versions.#1604
Merged
anthony-gomez-fastly merged 2 commits intofastly:mainfrom Dec 19, 2025
Merged
Enable support for pre-release Rust versions.#1604anthony-gomez-fastly merged 2 commits intofastly:mainfrom
anthony-gomez-fastly merged 2 commits intofastly:mainfrom
Conversation
For Rust, set the `IncludePrerelease` field of the semver [`Constraints`] to true. This makes it possible to set `channel = "nightly"`, without getting errors like this: ``` ERROR: the Rust version requirement was not satisfied: '1.94.0-nightly is a prerelease version and the constraint is only looking for release versions'. ``` Most users won't have any reason to use `channel = "nightly"`, however it is useful for users that specifically wish to test `channel = "nightly", such as to help find problems with future Rust versions before they become stable versions. [`Constraints`]: https://pkg.go.dev/github.com/Masterminds/semver/v3#Constraints
anthony-gomez-fastly
approved these changes
Dec 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Change summary
For Rust, set the
IncludePrereleasefield of the semverConstraintsto true. This makes it possible to setchannel = "nightly", without getting errors like this:Most users won't have any reason to use
channel = "nightly", however it is useful for users that specifically wish to test `channel = "nightly", such as to help find problems with future Rust versions before they become stable versions.All Submissions:
New Feature Submissions:
Changes to Core Features:
I didn't write any tests because I didn't find any test harness in the tree suitable for writing tests for a change of this nature, and also, it's a minor change that only impacts users that opt into it by choosing prerelease Rust versions, which will include me, for the purpose of testing.
User Impact
The only impact is on users who knowingly opt into using prerelease Rust versions, and the only change is to allow this to work.
Are there any considerations that need to be addressed for release?
I'm not aware of any.