elrond-wasm-rs icon indicating copy to clipboard operation
elrond-wasm-rs copied to clipboard

Cannot run erdpy contract build on a Manually Created SC on Rust due to Compiling issue

Open elrond-developer opened this issue 2 years ago • 0 comments

Hello

I am trying to go through creation a Smart Contract, from scratch, using Rust. I tried creating the crates and building out similar file structures in your teams examples i.e. src.rs, meta, wasm, etc. And I the the listed out below when running erdpy contract deploy.

My environment I am working with is the following:

rustc 1.65.0-nightly (228710758 2022-09-10)
erdpy 2.0.1
[dependencies.elrond-wasm-node]
version = "0.34.1"
[dependencies.elrond-wasm-output]
version = "0.34.1"

It looks like it is running into an error trying to compile the elrond codec/wasm? I have tried other online solutions that mentioned trying to run it in nightly. I have even added the rust-toolchain file. Any help would greatly be appreciated.

INFO:myprocess:run_process_async: ['cargo', 'run', 'build', '--target=wasm32-unknown-unknown', '--release', '--out-dir', '/home/anon/Desktop/elrond-dev/smart_contracts/helloworld/hello_world/output', '--target-dir', '/home/anon/elrondsdk/default_cargo_target'], in folder: /home/anon/Desktop/elrond-dev/smart_contracts/helloworld/hello_world/meta
Compiling elrond-wasm-derive v0.34.1
Compiling serde v1.0.144
Compiling elrond-codec v0.12.0
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/anon/elrondsdk/vendor-rust/registry/src/github.com-1ecc6299db9ec823/elrond-codec-0.12.0/src/lib.rs:2:1
|
2 | #![feature(try_trait_v2)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/anon/elrondsdk/vendor-rust/registry/src/github.com-1ecc6299db9ec823/elrond-codec-0.12.0/src/lib.rs:3:1
|
3 | #![feature(never_type)]
| ^^^^^^^^^^^^^^^^^^^^^^^

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

error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/anon/elrondsdk/vendor-rust/registry/src/github.com-1ecc6299db9ec823/elrond-codec-0.12.0/src/lib.rs:5:1
|
5 | #![feature(auto_traits)]
| ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/anon/elrondsdk/vendor-rust/registry/src/github.com-1ecc6299db9ec823/elrond-codec-0.12.0/src/lib.rs:6:1
|
6 | #![feature(negative_impls)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `elrond-codec` due to 5 previous errors
warning: build failed, waiting for other jobs to finish...
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/anon/elrondsdk/vendor-rust/registry/src/github.com-1ecc6299db9ec823/elrond-wasm-derive-0.34.1/src/lib.rs:4:12
|
4 | #![feature(proc_macro_quote)]
|            ^^^^^^^^^^^^^^^^

error: build failed
CRITICAL:cli:Build error: error code = 101, see output.

elrond-developer avatar Sep 11 '22 19:09 elrond-developer