caio.co/de/foca

Only compile TrivialID for codecs

Only used for roundtrip tests
Id
4e889761b1a24b2ed68d59a09ee86982fbbd94e9
Author
Caio
Commit time
2024-06-04T08:55:41+02:00

Modified src/testing.rs

@@ -356,8 +356,8
}
}

-#[derive(Clone, Copy, PartialEq, Eq, Debug)]
-#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
+#[cfg(any(feature = "bincode-codec", feature = "postcard-codec"))]
+#[derive(Clone, Copy, PartialEq, Eq, Debug, serde::Serialize, serde::Deserialize)]
pub(crate) struct TrivialID(u64);

#[cfg(any(feature = "bincode-codec", feature = "postcard-codec"))]