Enabling std feature can now enable rand/std.

Previously it pulled in a bunch of fuschia dependencies regardless of
target system.
This commit is contained in:
Isis Lovecruft 2018-12-22 12:21:59 +00:00
parent 80ae5d0683
commit d052e63da8
No known key found for this signature in database
GPG key ID: AB41313533E8E812

View file

@ -51,7 +51,7 @@ harness = false
[features]
default = ["std", "u64_backend"]
# We don't add "rand/std" here because it would enable a bunch of Fuchsia dependencies.
std = ["curve25519-dalek/std"]
std = ["curve25519-dalek/std", "rand/std"]
alloc = ["curve25519-dalek/alloc"]
nightly = ["curve25519-dalek/nightly", "rand/nightly", "clear_on_drop/nightly"]
asm = ["sha2/asm"]