Skip to content

Commit 4447216

Browse files
committed
Revert back to paste dependency
Even the `paste` crate is unmaintained, it is still better than unproven alternatives: 1. Only used during building stage for macro expansion which has been widely tested by 10k+ crates. If there is a bug, rust compiler should noticed it. 2. The alternative `pastey` is not proved by community yet. Included `deny.toml` to make `cargo deny check` happy. Signed-off-by: Gris Ge <[email protected]>
1 parent b40f3d6 commit 4447216

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repository = "https://github.com/rust-netlink/netlink-packet-core"
1212
description = "netlink packet types"
1313

1414
[dependencies]
15-
pastey = "0.1.0"
15+
paste = "1"
1616

1717
[dev-dependencies]
1818
netlink-packet-route = "0.13.0"

deny.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[licenses]
2+
allow = [
3+
"Apache-2.0",
4+
"MIT",
5+
]
6+
7+
[[advisories.ignore]]
8+
id = "RUSTSEC-2024-0436"
9+
reason = "Unmaintained paste is consider as finished which is better than un-vetted altertives"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,4 +295,4 @@ pub use self::traits::{
295295

296296
// For buffer! macros
297297
#[doc(hidden)]
298-
pub use pastey::paste;
298+
pub use paste::paste;

src/parsers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::{
55
net::{IpAddr, Ipv4Addr, Ipv6Addr},
66
};
77

8-
use pastey::paste;
8+
use paste::paste;
99

1010
use crate::DecodeError;
1111

0 commit comments

Comments
 (0)