Only pull in subtle's std feature if "std" is enabled

Otherwise subtle implicitly pulls in std because it's a default feature
This commit is contained in:
Tony Arcieri 2017-06-27 11:04:45 -07:00
parent 010e1f8dec
commit bdcfc30fe8

View file

@ -34,6 +34,7 @@ version = "0.6"
[dependencies.subtle]
version = "^0.1"
default-features = false
[dependencies.generic-array]
# same version that digest depends on
@ -48,7 +49,7 @@ version = "0.6"
[features]
nightly = ["radix_51"]
default = ["std"]
std = ["rand"]
std = ["rand", "subtle/std"]
alloc = []
yolocrypto = []
bench = []