From 546001253af4d98f8469d3de99c5b3c36fbae8bd Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Thu, 2 Apr 2026 14:29:46 +0100 Subject: [PATCH] protocol: Use pastey fork MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `paste` crate is no longer maintained, and the `pastey` fork is a drop-in replacement. `cargo deny check` output: ``` error[unmaintained]: paste - no longer maintained ┌─ /home/fintohaps/Developer/heartwood/Cargo.lock:239:1 │ 239 │ paste 1.0.15 registry+https://github.com/rust-lang/crates.io-index │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ unmaintained advisory detected │ ├ ID: RUSTSEC-2024-0436 ├ Advisory: https://rustsec.org/advisories/RUSTSEC-2024-0436 ├ The creator of the crate `paste` has stated in the [`README.md`](https://github.com/dtolnay/paste/blob/master/README.md) that this project is not longer maintained as well as archived the repository ## Possible Alternative(s) - [`pastey`]: a fork of paste and is aimed to be a drop-in replacement with additional features for paste crate - [`with_builtin_macros`]: crate providing a [superset of `paste`'s functionality including general `macro_rules!` eager expansions](https://docs.rs/with_builtin_macros/0.1.0/with_builtin_macros/macro.with_eager_expansions.html) and `concat!`/`concat_idents!` macros [`pastey`]: https://crates.io/crates/pastey [`with_builtin_macros`]: https://crates.io/crates/with_builtin_macros ├ Announcement: https://github.com/dtolnay/paste ├ Solution: No safe upgrade is available! ├ paste v1.0.15 └── (dev) radicle-protocol v0.6.0 └── radicle-node v0.18.0 └── (dev) radicle-cli v0.19.0 └── radicle-remote-helper v0.15.0 ``` --- Cargo.lock | 8 ++++---- crates/radicle-protocol/Cargo.toml | 2 +- crates/radicle-protocol/src/wire.rs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d1059b7f..c2be54cf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2698,10 +2698,10 @@ dependencies = [ ] [[package]] -name = "paste" -version = "1.0.15" +name = "pastey" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" +checksum = "b867cad97c0791bbd3aaa6472142568c6c9e8f71937e98379f584cfb0cf35bec" [[package]] name = "pbkdf2" @@ -3278,7 +3278,7 @@ dependencies = [ "fastrand", "log", "nonempty", - "paste", + "pastey", "qcheck", "qcheck-macros", "radicle", diff --git a/crates/radicle-protocol/Cargo.toml b/crates/radicle-protocol/Cargo.toml index 149ee70b..a43190fc 100644 --- a/crates/radicle-protocol/Cargo.toml +++ b/crates/radicle-protocol/Cargo.toml @@ -32,7 +32,7 @@ serde_json = { workspace = true, features = ["preserve_order"] } thiserror = { workspace = true, default-features = true } [dev-dependencies] -paste = "1.0.15" +pastey = "0.2" qcheck = { workspace = true } qcheck-macros = { workspace = true } radicle = { workspace = true, features = ["test"] } diff --git a/crates/radicle-protocol/src/wire.rs b/crates/radicle-protocol/src/wire.rs index bed60762..214ae06b 100644 --- a/crates/radicle-protocol/src/wire.rs +++ b/crates/radicle-protocol/src/wire.rs @@ -561,7 +561,7 @@ where #[macro_export] macro_rules! prop_roundtrip { ($t:ty, $name:tt) => { - paste::paste! { + pastey::paste! { #[quickcheck] fn [< prop_roundtrip_ $name:lower >](v: $t) { $crate::wire::roundtrip(v); @@ -569,7 +569,7 @@ macro_rules! prop_roundtrip { } }; ($t:ty) => { - paste::paste! { + pastey::paste! { prop_roundtrip!($t, [< $t >]); } };