CosmWasm / CosmWasm/optimizer

Set RUSTUP_TOOLCHAIN to the default version of the docker image

Open
#133 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
145
Forks
68
PR merge metrics
No merged PRs in 30d

Description

When a project uses the file `rust-toolchain.toml` or `rust-toolchain` (https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file), it is possible for the project to override the optimizer's Rust version. What will happen is that a different Rust version is downloaded and used during the build. However, the toolchain will be incomplete with missing target wasm32-unknown-unknown.

Now looking at the [order of toolchains used](https://rust-lang.github.io/rustup/overrides.html) we see that setting e.g. `export RUSTUP_TOOLCHAIN=1.72.0` overrides a project-specific setting. This ensure always the version of the optimizer is used, which is what we want.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.