From 66ded1ec598639fd54a75d6af007ed60541df5ca Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 24 Aug 2024 11:21:23 +0200 Subject: feat(bytes): Add implementation for serde's `Serialize` --- crates/bytes/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/bytes/src/lib.rs') diff --git a/crates/bytes/src/lib.rs b/crates/bytes/src/lib.rs index f80b864..9814a4a 100644 --- a/crates/bytes/src/lib.rs +++ b/crates/bytes/src/lib.rs @@ -26,6 +26,8 @@ const GB: u64 = 1000 * MB; const TB: u64 = 1000 * GB; pub mod error; +#[cfg(feature = "serde")] +pub mod serde; #[derive(Clone, Copy)] pub struct Bytes(u64); -- cgit 1.4.1