substrate-docs
substrate-docs copied to clipboard
Incompatibility conflict with latest version of rust
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
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
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
Actually you would need to update 3 dependencies like this:
cargo update -p [email protected] -p [email protected] -p [email protected]
I'm facing this same error too when using github actions to compile the node template @thiolliere
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 ?