From e72152eed80e06769cdb97d5c292e5f65cbf0942 Mon Sep 17 00:00:00 2001 From: Sladuca Date: Tue, 6 Sep 2022 14:56:48 -0400 Subject: [PATCH] fix default features in starky & evm --- evm/Cargo.toml | 2 +- plonky2/src/hash/hash_types.rs | 2 +- starky/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/evm/Cargo.toml b/evm/Cargo.toml index db774345..230cd5a8 100644 --- a/evm/Cargo.toml +++ b/evm/Cargo.toml @@ -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" diff --git a/plonky2/src/hash/hash_types.rs b/plonky2/src/hash/hash_types.rs index 14303ad3..f416732a 100644 --- a/plonky2/src/hash/hash_types.rs +++ b/plonky2/src/hash/hash_types.rs @@ -115,7 +115,7 @@ pub struct MerkleCapTarget(pub Vec); pub struct BytesHash(pub [u8; N]); impl BytesHash { - #[cfg(feature = "parallel")] + #[cfg(feature = "rand")] pub fn rand_from_rng(rng: &mut R) -> Self { let mut buf = [0; N]; rng.fill_bytes(&mut buf); diff --git a/starky/Cargo.toml b/starky/Cargo.toml index 80a26bfc..4bc12d31 100644 --- a/starky/Cargo.toml +++ b/starky/Cargo.toml @@ -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"