"erdpy contract build" not wokring

Hii I am follwing this -

And I am getting this error -

error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/rohit/elrondsdk/vendor-rust/registry/src/github.com-1ecc6299db9ec823/elrond-wasm-derive-0.29.3/src/lib.rs:4:12
|
4 | #![feature(proc_macro_quote)]
|            ^^^^^^^^^^^^^^^^

When I run this command - erdpy contract build
Please help!!!

That code is using unstable features, so you must use a nightly version of rust.

I did install Rust Nightly using - rustup toolchain install nightly

Ok, then make sure you are using that in your current environment. You can enter a shell with rustup run nightly bash (or your favorite shell instead of bash), or use one of the overrides.

Hello I think the problem is when I run "erdpy contract build" it builds using rustc 1.63.0-nightly (e71440575 2022-06-02)
When I run - rustup show

Default host: x86_64-unknown-linux-gnu
rustup home:  /home/rohit/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu
nightly-2021-03-24-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu

active toolchain
----------------

nightly-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
rustc 1.63.0-nightly (e71440575 2022-06-02)

I also try rustup override set nightly-2021-03-24-x86_64-unknown-linux-gnu and rustup default nightly-2021-03-24-x86_64-unknown-linux-gnu
, but it is not changing "Active toolchain", it is only changing the installed toolchain default

Are you getting a different error now? Because your original message indicated you ran stable:

error[E0554]: `#![feature]` may not be used on the stable release channel

No, Error is still the same. After using rustup override set nightly-2021-03-24-x86_64-unknown-linux-gnu and rustup default nightly-2021-03-24-x86_64-unknown-linux-gnu these 2 commands, build still is using "Active toolchain" version which is same as before - rustc 1.63.0-nightly (e71440575 2022-06-02)

I am also getting this NOTE, after running - rustup default nightly-2021-03-24-x86_64-unknown-linux-gnu
info: note that the toolchain 'nightly-x86_64-unknown-linux-gnu' is currently in use (environment override by RUSTUP_TOOLCHAIN)

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.