diff --git a/rmp/Cargo.toml b/rmp/Cargo.toml index a55f843..eab94c5 100644 --- a/rmp/Cargo.toml +++ b/rmp/Cargo.toml @@ -15,7 +15,7 @@ edition = "2021" byteorder = { version = "1.4.2", default-features = false } num-traits = { version = "0.2.14", default-features = false } # This is macro_only ;) -paste = "1.0" +pastey = "0.1" [features] default = ["std"] diff --git a/rmp/src/decode/mod.rs b/rmp/src/decode/mod.rs index 8b5d813..2f5e648 100644 --- a/rmp/src/decode/mod.rs +++ b/rmp/src/decode/mod.rs @@ -62,7 +62,7 @@ macro_rules! read_byteorder_utils { const SIZE: usize = core::mem::size_of::<$tp>(); let mut buf: [u8; SIZE] = [0u8; SIZE]; self.read_exact_buf(&mut buf).map_err(ValueReadError::InvalidDataRead)?; - Ok(paste::paste! { + Ok(pastey::paste! { ::[](&mut buf) }) } @@ -148,7 +148,7 @@ pub trait RmpRead: sealed::Sealed { macro_rules! wrap_data_funcs_for_compatibility { ($($tp:ident),* $(,)?) => { - $(paste::paste! { + $(pastey::paste! { #[cfg(feature = "std")] #[doc(hidden)] #[deprecated(note = "internal function. rmpv & rmp-serde need to switch to RmpRead")] diff --git a/rmp/src/encode/mod.rs b/rmp/src/encode/mod.rs index 9627339..6cbc06e 100644 --- a/rmp/src/encode/mod.rs +++ b/rmp/src/encode/mod.rs @@ -121,7 +121,7 @@ macro_rules! write_byteorder_utils { fn $name(&mut self, val: $tp) -> Result<(), DataWriteError> where Self: Sized { const SIZE: usize = core::mem::size_of::<$tp>(); let mut buf: [u8; SIZE] = [0u8; SIZE]; - paste::paste! { + pastey::paste! { ::[](&mut buf, val); } self.write_bytes(&buf).map_err(DataWriteError)