From 11c8efb850a526c5578b5743a1dff6e6dedd68fb Mon Sep 17 00:00:00 2001 From: Georgy Shepelev Date: Thu, 15 Feb 2024 17:51:02 +0400 Subject: [PATCH] fix review remarks --- maybe_rayon/src/lib.rs | 1 + plonky2/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/maybe_rayon/src/lib.rs b/maybe_rayon/src/lib.rs index 47619e2291..8e8d071862 100644 --- a/maybe_rayon/src/lib.rs +++ b/maybe_rayon/src/lib.rs @@ -1,5 +1,6 @@ #![cfg_attr(not(std), no_std)] +#[cfg(not(feature = "parallel"))] extern crate alloc; #[cfg(feature = "parallel")] diff --git a/plonky2/Cargo.toml b/plonky2/Cargo.toml index 369d65a16e..f20932a594 100644 --- a/plonky2/Cargo.toml +++ b/plonky2/Cargo.toml @@ -31,7 +31,6 @@ plonky2_util = { path = "../util", default-features = false } rand = { version = "0.8.4", default-features = false } rand_chacha = { version = "0.3.1", optional = true, default-features = false } serde = { version = "1.0", default-features = false, features = ["derive", "rc"] } -serde_json = { version = "1.0", default-features = false, features = ["alloc"] } static_assertions = { version = "1.1.0", default-features = false } unroll = { version = "0.1.5", default-features = false } web-time = { version = "1.0.0", optional = true } @@ -46,6 +45,7 @@ num_cpus = { version = "1.14.0", default-features = false } rand = { version = "0.8.4", default-features = false, features = ["getrandom"] } rand_chacha = { version = "0.3.1", default-features = false } serde_cbor = { version = "0.11.2" } +serde_json = { version = "1.0" } structopt = { version = "0.3.26", default-features = false } tynm = { version = "0.1.6", default-features = false }