fix default features in starky & evm

This commit is contained in:
Sladuca 2022-09-06 14:56:48 -04:00
parent f496711b21
commit e72152eed8
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ version = "0.1.0"
edition = "2021"
[dependencies]
plonky2 = { path = "../plonky2" }
plonky2 = { path = "../plonky2", default-features = false, features = ["rand", "rand_chacha", "timing", "gate_testing"] }
plonky2_util = { path = "../util" }
anyhow = "1.0.40"
env_logger = "0.9.0"

View File

@ -115,7 +115,7 @@ pub struct MerkleCapTarget(pub Vec<HashOutTarget>);
pub struct BytesHash<const N: usize>(pub [u8; N]);
impl<const N: usize> BytesHash<N> {
#[cfg(feature = "parallel")]
#[cfg(feature = "rand")]
pub fn rand_from_rng<R: rand::Rng>(rng: &mut R) -> Self {
let mut buf = [0; N];
rng.fill_bytes(&mut buf);

View File

@ -9,7 +9,7 @@ default = ["parallel"]
parallel = ["maybe_rayon/parallel"]
[dependencies]
plonky2 = { path = "../plonky2" }
plonky2 = { path = "../plonky2", default-features = false }
plonky2_util = { path = "../util" }
anyhow = "1.0.40"
env_logger = "0.9.0"