From bdcfc30fe8e9c3341ac04b36792e119de3c70ed3 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Tue, 27 Jun 2017 11:04:45 -0700 Subject: [PATCH] Only pull in subtle's std feature if "std" is enabled Otherwise subtle implicitly pulls in std because it's a default feature --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7a25c98..75bcbe6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = []