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/Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crates/bytes/Cargo.toml') diff --git a/crates/bytes/Cargo.toml b/crates/bytes/Cargo.toml index 98691ee..33a6f11 100644 --- a/crates/bytes/Cargo.toml +++ b/crates/bytes/Cargo.toml @@ -14,3 +14,10 @@ version = "1.0.0" edition = "2021" license = "GPL-3.0-or-later" description = "Simple byte formatting utilities" + +[dependencies] +serde = { version = "1.0.208", optional = true } + +[features] +default = ["serde"] +serde = ["dep:serde"] -- cgit 1.4.1