Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set RUSTUP_TOOLCHAIN to the default version of the docker image #133

Open
webmaster128 opened this issue Oct 7, 2023 · 0 comments
Open

Comments

@webmaster128
Copy link
Member

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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant