substrate-docs icon indicating copy to clipboard operation
substrate-docs copied to clipboard

Incompatibility conflict with latest version of rust

Open Themvp07 opened this issue 1 year ago • 4 comments

Is there an existing issue?

  • [X] I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • [X] This is not a support question.

Bug report for compiling, code snippets, templates, etc.

The latest version of Rust (1.78.0) throws an error when creating the node template. The bug is associated with the STD library required by the substrate implementation but was removed in the latest Rus update. In this explanation I am sharing the error message displayed in the terminal.

Plus: in my case I had to use version 1.75.0 of rust to be able to continue the quick start procedure substrate issue

Steps to reproduce the problem

1.Clone the node template repository by running the following command: $ git clone https://github.com/substrate-developer-hub/substrate-node-template 2.Change to the root of the cloned directory: $ cd substrate-node-template 3.Create a new branch to save your work by running a command similar to the following: $ git switch -c my-learning-branch-2023-03-31 4.Compile the node template: $ cargo build --package node-template --release

Themvp07 avatar Feb 13 '24 01:02 Themvp07

This should be fixed by https://github.com/substrate-developer-hub/substrate-node-template/pull/519

In the meanwhile you can run the command cargo update [email protected] in your project

gui1117 avatar Feb 13 '24 08:02 gui1117

Actually you would need to update 3 dependencies like this:

cargo update -p [email protected] -p [email protected] -p [email protected]

gui1117 avatar Feb 14 '24 01:02 gui1117

I'm facing this same error too when using github actions to compile the node template @thiolliere

Kofituo avatar Feb 16 '24 07:02 Kofituo

I'm facing this same error too when using github actions to compile the node template @thiolliere

it should have been fixed with https://github.com/substrate-developer-hub/substrate-node-template/pull/519 Do you use latest code ?

gui1117 avatar Feb 17 '24 08:02 gui1117