From 2135612d8de244d7f17304129b45187c2a8e9fae Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Fri, 24 Jan 2025 14:25:03 +0100 Subject: [PATCH] Replace serde_derive with serde/derive --- Cargo.toml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 47967bd1..3e779ae6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,9 +28,9 @@ default = ["ctcp", "tls-native", "channel-lists", "toml_config", "encoding"] ctcp = [] channel-lists = [] -json_config = ["serde", "serde/derive", "serde_derive", "serde_json"] -toml_config = ["serde", "serde/derive", "serde_derive", "toml"] -yaml_config = ["serde", "serde/derive", "serde_derive", "serde_yaml"] +json_config = ["serde", "serde_json"] +toml_config = ["serde", "toml"] +yaml_config = ["serde", "serde_yaml"] # Temporary transitionary features json = ["json_config"] yaml = ["yaml_config"] @@ -55,8 +55,7 @@ tokio-stream = "0.1.12" tokio-util = { version = "0.7.7", features = ["codec"] } # Feature - Config -serde = { version = "1.0.160", optional = true } -serde_derive = { version = "1.0.160", optional = true } +serde = { version = "1.0.160", features = ["derive"], optional = true } serde_json = { version = "1.0.95", optional = true } serde_yaml = { version = "0.9.21", optional = true } toml = { version = "0.7.3", optional = true }