From 31dbb9e4344aab5ce22105ef494a9aa338e7ec58 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Fri, 26 Jan 2018 16:36:42 -0800 Subject: [PATCH] Fix no_std build failure --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 8791900..2bc6768 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"]