Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Breaking:

### Enhancements:
- feat(rust): Allow testing with prerelease Rust versions ([#1604](https://github.com/fastly/cli/pull/1604))

### Bug fixes:

Expand Down
5 changes: 5 additions & 0 deletions pkg/commands/compute/language_rust.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down