Skip to content

Commit

Permalink
make rand dependency optional, and select it always when std feature …
Browse files Browse the repository at this point in the history
…is enabled
  • Loading branch information
xoloki committed Aug 6, 2019
1 parent b935b5b commit c70332d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ subtle = { version = "2", default-features = false }
sha3 = { version = "0.8", default-features = false }
digest = { version = "0.8", default-features = false }
rand_core = { version = "0.4", default-features = false }
rand = { version = "0.6", default-features = false }
rand = { version = "0.6", default-features = false, optional = true }
byteorder = { version = "1", default-features = false }
serde = { version = "1", default-features = false }
serde_derive = { version = "1", default-features = false }
failure = { version = "0.1", default-features = false, features = ["derive"] }
merlin = { version = "1.2", default-features = false }
clear_on_drop = "0.2"
clear_on_drop = { version = "0.2", default-features = false, features = ["nightly"] }

[dev-dependencies]
hex = "0.3"
Expand All @@ -35,7 +35,7 @@ rand_chacha = "0.1"
default = ["std", "avx2_backend"]
avx2_backend = ["curve25519-dalek/avx2_backend"]
yoloproofs = []
std = ["rand/std", "serde/std", "merlin/std", "curve25519-dalek/std"]
std = ["rand", "rand/std", "serde/std", "merlin/std", "curve25519-dalek/std"]
alloc = ["rand_core/alloc", "serde/alloc", "curve25519-dalek/alloc"]

[[test]]
Expand Down

0 comments on commit c70332d

Please sign in to comment.