Skip to content

chore: update toolchain versions#439

Merged
ntn-x2 merged 8 commits intodevelopfrom
aa/toolchain-update
Nov 29, 2022
Merged

chore: update toolchain versions#439
ntn-x2 merged 8 commits intodevelopfrom
aa/toolchain-update

Conversation

@ntn-x2
Copy link
Contributor

@ntn-x2 ntn-x2 commented Nov 29, 2022

Since rust-analyzer has been merged into the main rustlang repo, it is tested for breaking changes. This means that we don't need to pin the nightly to a specific version anymore, as using the latest nightly is always guaranteed to work with the latest version of the rust-analyzer extension (try it yourselves, for me it finally just works).

This PR then does the following:

  • update the toolchain file to use the latest nightly, which gives us access to potentially new clippy warnings, and to better rust-analyzer performances
  • update the runtime builder to use Rust 1.64 as also nowadays done by Polkadot
  • remove the deprecated cargo-features = ["workspace-inheritance"], since from 1.64 it has been stabilised (this could be caught only by using a recent enough nightly version)
  • Let the CI job use the same version as in the toolchain file, by removing the +nightly flag. This will ensure we have a consistent behaviour between local machine and CI server.

The only thing to consider is that the nightly will differ from the version that srtool uses to build the runtime WASM. That was the case also before, and it will always be until substrate will support compilation with the stable toolchain.

@ntn-x2 ntn-x2 requested review from weichweich and wischli November 29, 2022 10:19
@ntn-x2 ntn-x2 self-assigned this Nov 29, 2022
@ntn-x2 ntn-x2 force-pushed the aa/toolchain-update branch from ed3ce31 to d215bea Compare November 29, 2022 10:28
Copy link
Contributor

@wischli wischli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I have a remark, see below.

@@ -1,3 +1,4 @@
[toolchain]
channel = "nightly-2022-07-24"
channel = "nightly-2022-11-29"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im not in favor of using a newer version than in the last Polkadot release. But we could try until we run into some weird compilation errors.

Copy link
Contributor Author

@ntn-x2 ntn-x2 Nov 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good point. Polkadot 0.9.31 uses one from late October, which is good enough for us. I updated that in de04e4b.

@ntn-x2 ntn-x2 merged commit 339d303 into develop Nov 29, 2022
@ntn-x2 ntn-x2 deleted the aa/toolchain-update branch November 29, 2022 15:01
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

Successfully merging this pull request may close these issues.

3 participants