diff --git a/plonky2/src/plonk/circuit_builder.rs b/plonky2/src/plonk/circuit_builder.rs index 16f2a61c32..5f8c3200b8 100644 --- a/plonky2/src/plonk/circuit_builder.rs +++ b/plonky2/src/plonk/circuit_builder.rs @@ -1075,7 +1075,7 @@ impl, const D: usize> CircuitBuilder { ) -> (CircuitData, bool) { let mut timing = TimingTree::new("preprocess", Level::Trace); - #[cfg(feature = "std")] + #[cfg(feature = "timing")] let start = Instant::now(); let rate_bits = self.config.fri_config.rate_bits; @@ -1308,7 +1308,7 @@ impl, const D: usize> CircuitBuilder { }; timing.print(); - #[cfg(feature = "std")] + #[cfg(feature = "timing")] debug!("Building circuit took {}s", start.elapsed().as_secs_f32()); ( CircuitData {