Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
silkroadnomad opened this issue Mar 2, 2024 · 3 comments

Comments

@silkroadnomad
Copy link

When cloning this repo and running
cargo build

I get this error:

Compiling delanocreds v0.2.0 (/Users/nandi/Documents/projekte/DecentraSol/peerpiper/submodules/delanocreds/crates/delanocreds)
Compiling wnfs v0.2.1
error[E0554]: #![feature] may not be used on the stable release channel
--> submodules/delanocreds/crates/delanocreds/src/lib.rs:1:12
|
1 | #![feature(cfg_eval)]
| ^^^^^^^^

For more information about this error, try rustc --explain E0554.
error: could not compile delanocreds (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

@DougAnderson444
Copy link
Contributor

Ahh, right. This is likely due to missing git submodules.

There's a note in the peerpiper-wallet but it should probably be moved up to the main repo

## Cloning w/ links to external repos via git submodules
The Wallet architecture makes it safe and easy to use other people's code, due to the sandboxing of WebAssembly. Thus, the code you want to use is likely in someone else's repository. We need their:
1. *.wasm binary, and;
2. *.wit file
This crates uses [git submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules) to link to those external repos so we can build from their source and link to their Wasm Interfaces (WIT).
To clone this repo and the submodules use:
```bash
git clone --recurse-submodules
```
If you already cloned the project and forgot `--recurse-submodules`, you can combine the `git submodule init` and `git submodule update` steps by running `git submodule update --init`. To also initialize, fetch and checkout any nested submodules, you can use the foolproof `git submodule update --init --recursive`.

@DougAnderson444
Copy link
Contributor

Oh wait, you might be running rust stable, you need to switch to the nightly toolchain

rustup toolchain install nightly
rustup default nightly

@DougAnderson444
Copy link
Contributor

DougAnderson444 commented Mar 2, 2024

I should add the nightly as a rust-toolchain.toml requirement (done)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants