From 931288dcbd8b7007c3f5e70c06a97f8e8c62ecd6 Mon Sep 17 00:00:00 2001 From: Joey Yandle Date: Fri, 2 Aug 2019 13:20:39 -0700 Subject: [PATCH] fix yoloproofs, only include them in std mode --- src/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9ab8e516..afaf5829 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,6 +19,9 @@ cfg_if::cfg_if! { #[cfg(feature = "std")] extern crate core; +#[cfg(feature = "std")] +extern crate rand; + extern crate digest; extern crate rand_core; extern crate sha3; @@ -68,4 +71,8 @@ pub mod range_proof_mpc { } #[cfg(feature = "yoloproofs")] -pub mod r1cs; +cfg_if::cfg_if! { + if #[cfg(feature = "std")] { + pub mod r1cs; + } +}