From b6dcb282d95aa52932fd384740b3803ea009dcb7 Mon Sep 17 00:00:00 2001 From: Tanish Desai Date: Mon, 1 Dec 2025 23:41:03 +0530 Subject: [PATCH] chore: replace paste with pastey for macros feature (#564) Signed-off-by: tanish111 --- crates/rmcp/Cargo.toml | 5 ++--- crates/rmcp/src/lib.rs | 2 +- crates/rmcp/src/model/capabilities.rs | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/rmcp/Cargo.toml b/crates/rmcp/Cargo.toml index 16a813c..f929646 100644 --- a/crates/rmcp/Cargo.toml +++ b/crates/rmcp/Cargo.toml @@ -23,8 +23,7 @@ futures = "0.3" tracing = { version = "0.1" } tokio-util = { version = "0.7" } pin-project-lite = "0.2" -paste = { version = "1", optional = true } - +pastey = { version = "0.2.0", optional = true } # oauth2 support oauth2 = { version = "5.0", optional = true } @@ -79,7 +78,7 @@ chrono = { version = "0.4.38", default-features = false, features = [ default = ["base64", "macros", "server"] client = ["dep:tokio-stream"] server = ["transport-async-rw", "dep:schemars"] -macros = ["dep:rmcp-macros", "dep:paste"] +macros = ["dep:rmcp-macros", "dep:pastey"] elicitation = [] # reqwest http client diff --git a/crates/rmcp/src/lib.rs b/crates/rmcp/src/lib.rs index 3476390..9f81eab 100644 --- a/crates/rmcp/src/lib.rs +++ b/crates/rmcp/src/lib.rs @@ -167,7 +167,7 @@ pub mod transport; // re-export #[cfg(all(feature = "macros", feature = "server"))] #[cfg_attr(docsrs, doc(cfg(all(feature = "macros", feature = "server"))))] -pub use paste::paste; +pub use pastey::paste; #[cfg(all(feature = "macros", feature = "server"))] #[cfg_attr(docsrs, doc(cfg(all(feature = "macros", feature = "server"))))] pub use rmcp_macros::*; diff --git a/crates/rmcp/src/model/capabilities.rs b/crates/rmcp/src/model/capabilities.rs index 7399141..cbe1a6e 100644 --- a/crates/rmcp/src/model/capabilities.rs +++ b/crates/rmcp/src/model/capabilities.rs @@ -1,6 +1,6 @@ use std::{collections::BTreeMap, marker::PhantomData}; -use paste::paste; +use pastey::paste; use serde::{Deserialize, Serialize}; use super::JsonObject;