Skip to content

Commit

Permalink
fix yoloproofs, only include them in std mode
Browse files Browse the repository at this point in the history
  • Loading branch information
xoloki committed Aug 2, 2019
1 parent c664af1 commit 931288d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 931288d

Please sign in to comment.