diff --git a/CHANGELOG.md b/CHANGELOG.md index acda8e331..cf187d5e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Breaking: ### Enhancements: +- feat(rust): Allow testing with prerelease Rust versions ([#1604](https://github.com/fastly/cli/pull/1604)) ### Bug fixes: diff --git a/pkg/commands/compute/language_rust.go b/pkg/commands/compute/language_rust.go index d2f92d88c..7d9e41288 100644 --- a/pkg/commands/compute/language_rust.go +++ b/pkg/commands/compute/language_rust.go @@ -351,6 +351,11 @@ func (r *Rust) toolchainConstraint() (*semver.Version, error) { return nil, fmt.Errorf("the 'toolchain_constraint' value '%s' (from the config.toml file) is not a valid version constraint", r.config.ToolchainConstraint) } + // Even though most users shouldn't be using Rust prereleases, it is + // useful for Fastly to be able to test with Rust prereleases, so we + // shouldn't outright prohibit them. + c.IncludePrerelease = true + valid, errs := c.Validate(v) if !valid { err = nil