substrate-kitties Setup error
Closed this issue · 3 comments
zzz6519003 commented
after I clone i get
➜ blockchain git clone https://github.com/shawntabrizi/substrate-collectables-workshop/ -b starting-template --single-branch
Cloning into 'substrate-collectables-workshop'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 16 (delta 1), reused 6 (delta 0), pack-reused 5 (from 1)
Receiving objects: 100% (16/16), 26.95 KiB | 95.00 KiB/s, done.
Resolving deltas: 100% (1/1), done.
Note: switching to '4c1ce3b753ce234be58718fa100d97367dd532e8'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
which looks kind of wierd...
,
then I get this
➜ substrate-collectables-workshop git:(starting-template) cargo +nightly clippy
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Blocking waiting for file lock on build directory
Compiling proc-macro2 v1.0.86
Checking libc v0.2.155
Checking typenum v1.17.0
Checking num-traits v0.2.19
Compiling semver v1.0.23
Compiling fs-err v2.11.0
Compiling once_cell v1.19.0
Checking crunchy v0.2.2
Checking tracing-core v0.1.32
error[E0658]: use of unstable library feature 'proc_macro_byte_character'
--> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.86/src/wrapper.rs:871:21
|
871 | proc_macro::Literal::byte_character(byte)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #115268 <https://github.com/rust-lang/rust/issues/115268> for more information
= help: add `#![feature(proc_macro_byte_character)]` to the crate attributes to enable
= note: this compiler was built on 2024-03-17; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'proc_macro_c_str_literals'
--> /Users/mac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.86/src/wrapper.rs:898:21
|
898 | proc_macro::Literal::c_string(string)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #119750 <https://github.com/rust-lang/rust/issues/119750> for more information
= help: add `#![feature(proc_macro_c_str_literals)]` to the crate attributes to enable
= note: this compiler was built on 2024-03-17; consider upgrading it if it is out of date
Compiling rustc_version v0.4.0
For more information about this error, try `rustc --explain E0658`.
error: could not compile `proc-macro2` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
zzz6519003 commented
solved using rustup update
although i think it's best to add this to course material @shawntabrizi
shawntabrizi commented
Will close this when i make the update with the rustup update instructions. thanks
shawntabrizi commented