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

Build fails if rand feature is disabled #108

Closed
tarcieri opened this issue Dec 11, 2019 · 2 comments
Closed

Build fails if rand feature is disabled #108

tarcieri opened this issue Dec 11, 2019 · 2 comments
Assignees
Labels

Comments

@tarcieri
Copy link
Contributor

tarcieri commented Dec 11, 2019

   Compiling ed25519-dalek v1.0.0-pre.3
error[E0432]: unresolved import `rand`
  --> /Users/bascule/.cargo/registry/src/github.com-1ecc6299db9ec823/ed25519-dalek-1.0.0-pre.3/src/ed25519.rs:14:5
   |
14 | use rand::{CryptoRng, RngCore};
   |     ^^^^ use of undeclared type or module `rand`

That line needs a #[cfg(feature = "rand")] above it.

@isislovecruft
Copy link
Member

Ah, oops, thanks @tarcieri!

isislovecruft added a commit to isislovecruft/ed25519-dalek that referenced this issue Dec 11, 2019
@isislovecruft
Copy link
Member

Fixed in 8a2e9af

@isislovecruft isislovecruft self-assigned this Dec 11, 2019
cbeck88 added a commit to cbeck88/ed25519-dalek that referenced this issue Jan 7, 2020
The build is still broken when rand is disabled, we are building with

```
..., default-features = false, features = ["alloc", "nightly", "serde", "u64_backend"] }
```
@cbeck88 cbeck88 mentioned this issue Jan 7, 2020
cbeck88 added a commit to cbeck88/ed25519-dalek that referenced this issue Jul 4, 2020
The build is still broken when rand is disabled, we are building with

```
..., default-features = false, features = ["alloc", "nightly", "serde", "u64_backend"] }
```
cbeck88 added a commit to cbeck88/ed25519-dalek that referenced this issue Aug 4, 2020
This is no longer actively breaking our no_std build, but I think
it's still technically a minor bug, and further case of issue dalek-cryptography#108
huitseeker pushed a commit to huitseeker/ed25519-dalek that referenced this issue Nov 3, 2020
This is no longer actively breaking our no_std build, but I think
it's still technically a minor bug, and further case of issue dalek-cryptography#108
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants