diff --git a/src/bytes.rs b/src/bytes.rs index 1289961..18735a4 100644 --- a/src/bytes.rs +++ b/src/bytes.rs @@ -7,7 +7,7 @@ impl AsRef<[u8]> for Bytes { } } -#[cfg(any(test, feature = "serde"))] +#[cfg(feature = "serde")] pub mod serde { use super::*; diff --git a/src/kzg/mod.rs b/src/kzg/mod.rs index d405993..966679d 100644 --- a/src/kzg/mod.rs +++ b/src/kzg/mod.rs @@ -3,7 +3,7 @@ use crate::{blob, bls}; mod poly; mod setup; -#[cfg(test)] +#[cfg(all(test, feature = "serde"))] mod spec; pub type Proof = bls::P1;