Thanks to visit codestin.com
Credit goes to github.com

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
2 changes: 1 addition & 1 deletion .fastly/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ toolchain_constraint = ">= 1.21" # Go toolchain constraint for use wit
toolchain_constraint_tinygo = ">= 1.18" # Go toolchain constraint for use with TinyGo.

[language.rust]
toolchain_constraint = ">= 1.78.0, < 1.91.0" # Rust 1.91.0 produces broken WASM packages which crash when handling requests
toolchain_constraint = ">= 1.78 != 1.91.0 < 1.92" # Rust 1.91.0 produces broken WASM packages which crash when handling requests
wasm_wasi_target = "wasm32-wasip1"

[wasm-tools]
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

### Enhancements:
- feat(service-version): Add JSON support to service-version clone command ([#1550](https://github.com/fastly/cli/pull/1550))
- feat(compute/build): Allow usage of Rust 1.91.1 and later patch releases ([#1576](https://github.com/fastly/cli/pull/1576)

### Bug fixes:

Expand Down
6 changes: 6 additions & 0 deletions pkg/commands/compute/language_rust.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,12 @@ func (r *Rust) toolchainConstraint() (*semver.Version, error) {
if strings.Contains(e.Error(), "is greater than") {
err = fmt.Errorf("version '%s' of Rust has not been validated for use with Fastly Compute", v)
}
// if an 'exact version' constraint was
// violated, generate an error message
// specific to that situation
if strings.Contains(e.Error(), "is equal to") {
err = fmt.Errorf("version '%s' of Rust is not compatible with Fastly Compute", v)
}
}
if err == nil {
err = fmt.Errorf("the Rust version requirement was not satisfied: '%w'", errors.Join(errs...))
Expand Down