From 6c9286857ef8b314962b67f4a16a66e8c35531bc Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 14 Oct 2024 14:56:29 +0200 Subject: refactor(treewide): Combine the separate crates in one workspace --- crates/bytes/Cargo.toml | 24 +++++++++++++++++------- crates/bytes/src/lib.rs | 1 - 2 files changed, 17 insertions(+), 8 deletions(-) (limited to 'crates/bytes') diff --git a/crates/bytes/Cargo.toml b/crates/bytes/Cargo.toml index 0dc9833..4439aa8 100644 --- a/crates/bytes/Cargo.toml +++ b/crates/bytes/Cargo.toml @@ -10,14 +10,24 @@ [package] name = "bytes" -version = "1.0.0" -edition = "2021" -license = "GPL-3.0-or-later" description = "Simple byte formatting utilities" +keywords = [] +categories = [] +version.workspace = true +edition.workspace = true +authors.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true +publish = false [dependencies] -serde = { version = "1.0.210", optional = true } +serde.workspace = true -[features] -default = ["serde"] -serde = ["dep:serde"] +[dev-dependencies] + +[lints] +workspace = true + +[package.metadata.docs.rs] +all-features = true diff --git a/crates/bytes/src/lib.rs b/crates/bytes/src/lib.rs index 113e8d5..78d3c4e 100644 --- a/crates/bytes/src/lib.rs +++ b/crates/bytes/src/lib.rs @@ -26,7 +26,6 @@ const GB: u64 = 1000 * MB; const TB: u64 = 1000 * GB; pub mod error; -#[cfg(feature = "serde")] pub mod serde; #[derive(Clone, Copy)] -- cgit 1.4.1