protocol: Use pastey fork

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
```
This commit is contained in:
Fintan Halpenny 2026-04-02 14:29:46 +01:00
parent 96f573b767
commit 546001253a
3 changed files with 7 additions and 7 deletions

8
Cargo.lock generated
View File

@ -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",

View File

@ -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"] }

View File

@ -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 >]);
}
};