Skip to content

Commit

Permalink
Bump supported Rust toolchain version to 1.46 (#156)
Browse files Browse the repository at this point in the history
* Bump Compute@Edge supported Rust toolchain version to 1.46.

* Bump Rust toolchain in CI to 1.46

* Fix path to Rust Wasm build artifact in target directory.
  • Loading branch information
phamann committed Sep 24, 2020
1 parent 5ba50c4 commit 4fbf1cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr_test.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
strategy:
matrix:
go-version: [1.14.x]
rust-toolchain: [1.43.0]
rust-toolchain: [1.46.0]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions pkg/compute/rust.go
Expand Up @@ -26,7 +26,7 @@ import (
const (
// RustToolchainVersion is the `rustup` toolchain string for the compiler
// that we support
RustToolchainVersion = "1.43.0"
RustToolchainVersion = "1.46.0"
// WasmWasiTarget is the Rust compilation target for Wasi capable Wasm.
WasmWasiTarget = "wasm32-wasi"
)
Expand Down Expand Up @@ -334,7 +334,7 @@ func (r Rust) Build(out io.Writer, verbose bool) error {
if err != nil {
return fmt.Errorf("error getting current working directory: %w", err)
}
src := filepath.Join(dir, "target", WasmWasiTarget, "release", "deps", fmt.Sprintf("%s.wasm", binName))
src := filepath.Join(dir, "target", WasmWasiTarget, "release", fmt.Sprintf("%s.wasm", binName))
dst := filepath.Join(dir, "bin", "main.wasm")

// Check if bin directory exists and create if not.
Expand Down

0 comments on commit 4fbf1cb

Please sign in to comment.