diff --git a/Cargo.toml b/Cargo.toml index 3bb9aa1f99..a7025932aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ tikv-jemalloc-sys = { path = "jemalloc-sys", version = "0.4.0", default-features libc = { version = "^0.2.8", default-features = false } [dev-dependencies] -paste = "0.1" +paste = "1" tikv-jemalloc-ctl = { path = "jemalloc-ctl", version = "0.4" } [features] diff --git a/benches/roundtrip.rs b/benches/roundtrip.rs index 40b8005fc2..6dfa36226c 100644 --- a/benches/roundtrip.rs +++ b/benches/roundtrip.rs @@ -47,7 +47,7 @@ fn layout_to_flags(layout: &Layout) -> c_int { macro_rules! rt { ($size:expr, $align:expr) => { - paste::item! { + paste::paste! { #[bench] fn [](b: &mut Bencher) { b.iter(|| unsafe { diff --git a/jemalloc-ctl/Cargo.toml b/jemalloc-ctl/Cargo.toml index 05f6ac1928..8a6ba4a3fc 100644 --- a/jemalloc-ctl/Cargo.toml +++ b/jemalloc-ctl/Cargo.toml @@ -28,7 +28,7 @@ maintenance = { status = "actively-developed" } [dependencies] tikv-jemalloc-sys = { path = "../jemalloc-sys", version = "0.4.0" } libc = { version = "0.2", default-features = false } -paste = { version = "0.1" } +paste = "1" [dev-dependencies] tikv-jemallocator = { path = "..", version = "0.4.0" } diff --git a/jemalloc-ctl/src/macros.rs b/jemalloc-ctl/src/macros.rs index 638f313f48..dc9a3d823e 100644 --- a/jemalloc-ctl/src/macros.rs +++ b/jemalloc-ctl/src/macros.rs @@ -5,7 +5,7 @@ macro_rules! types { docs: $(#[$doc:meta])* mib_docs: $(#[$doc_mib:meta])* ) => { - paste::item! { + paste::paste! { $(#[$doc])* #[allow(non_camel_case_types)] pub struct $id; @@ -44,7 +44,7 @@ macro_rules! types { /// Read macro_rules! r { ($id:ident => $ret_ty:ty) => { - paste::item! { + paste::paste! { impl $id { /// Reads value using string API. pub fn read() -> crate::error::Result<$ret_ty> { @@ -93,7 +93,7 @@ macro_rules! r { /// Write macro_rules! w { ($id:ident => $ret_ty:ty) => { - paste::item! { + paste::paste! { impl $id { /// Writes `value` using string API. pub fn write(value: $ret_ty) -> crate::error::Result<()> { @@ -142,7 +142,7 @@ macro_rules! w { /// Update macro_rules! u { ($id:ident => $ret_ty:ty) => { - paste::item! { + paste::paste! { impl $id { /// Updates key to `value` returning its old value using string API. pub fn update(value: $ret_ty) -> crate::error::Result<$ret_ty> {