Fix no_std build failure

This commit is contained in:
Henry de Valence 2018-01-26 16:36:42 -08:00
parent 04506bbca2
commit 31dbb9e434

View file

@ -50,7 +50,8 @@ clear_on_drop = "=0.2.3"
subtle = { version = "0.5", features = ["generic-impls"], default-features = false }
stdsimd = { version = "0.0.4", optional = true }
serde = { version = "1.0", optional = true }
rand = { version = "0.4", optional = true }
# Allowing rand to be optional during builds causes a build failure when compiling for no_std targets
rand = { version = "0.4", optional = false }
[features]
nightly = ["radix_51", "subtle/nightly", "clear_on_drop/nightly"]