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

fix: temporarily require rand feature from libp2p-identity #11

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

Rjected
Copy link
Contributor

@Rjected Rjected commented Mar 6, 2024

enr-cli was not building with the following error:

   Compiling libp2p-identity v0.2.8
error[E0433]: failed to resolve: use of undeclared crate or module `rand`
  --> /Users/dan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libp2p-identity-0.2.8/src/ecdsa.rs:98:43
   |
98 |         SecretKey(SigningKey::random(&mut rand::thread_rng()))
   |                                           ^^^^ use of undeclared crate or module `rand`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `libp2p-identity` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `enr-cli v0.5.1`, intermediate artifacts can be found at `/var/folders/65/m26_cf0d1lbdnp4dvzztr0th0000gn/T/cargo-installxhFN7G`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

So this will need the rand feature enabled until libp2p/rust-libp2p#5212 is merged

@AgeManning AgeManning merged commit 8f1a4bc into AgeManning:master Jun 2, 2024
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

Successfully merging this pull request may close these issues.

2 participants