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:
parent
96f573b767
commit
546001253a
|
|
@ -2698,10 +2698,10 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "paste"
|
name = "pastey"
|
||||||
version = "1.0.15"
|
version = "0.2.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
|
checksum = "b867cad97c0791bbd3aaa6472142568c6c9e8f71937e98379f584cfb0cf35bec"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pbkdf2"
|
name = "pbkdf2"
|
||||||
|
|
@ -3278,7 +3278,7 @@ dependencies = [
|
||||||
"fastrand",
|
"fastrand",
|
||||||
"log",
|
"log",
|
||||||
"nonempty",
|
"nonempty",
|
||||||
"paste",
|
"pastey",
|
||||||
"qcheck",
|
"qcheck",
|
||||||
"qcheck-macros",
|
"qcheck-macros",
|
||||||
"radicle",
|
"radicle",
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ serde_json = { workspace = true, features = ["preserve_order"] }
|
||||||
thiserror = { workspace = true, default-features = true }
|
thiserror = { workspace = true, default-features = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
paste = "1.0.15"
|
pastey = "0.2"
|
||||||
qcheck = { workspace = true }
|
qcheck = { workspace = true }
|
||||||
qcheck-macros = { workspace = true }
|
qcheck-macros = { workspace = true }
|
||||||
radicle = { workspace = true, features = ["test"] }
|
radicle = { workspace = true, features = ["test"] }
|
||||||
|
|
|
||||||
|
|
@ -561,7 +561,7 @@ where
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! prop_roundtrip {
|
macro_rules! prop_roundtrip {
|
||||||
($t:ty, $name:tt) => {
|
($t:ty, $name:tt) => {
|
||||||
paste::paste! {
|
pastey::paste! {
|
||||||
#[quickcheck]
|
#[quickcheck]
|
||||||
fn [< prop_roundtrip_ $name:lower >](v: $t) {
|
fn [< prop_roundtrip_ $name:lower >](v: $t) {
|
||||||
$crate::wire::roundtrip(v);
|
$crate::wire::roundtrip(v);
|
||||||
|
|
@ -569,7 +569,7 @@ macro_rules! prop_roundtrip {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
($t:ty) => {
|
($t:ty) => {
|
||||||
paste::paste! {
|
pastey::paste! {
|
||||||
prop_roundtrip!($t, [< $t >]);
|
prop_roundtrip!($t, [< $t >]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue