From 68bcd2d112a0edd346711a2980ea77ff6c9a0fb1 Mon Sep 17 00:00:00 2001 From: Gris Ge Date: Wed, 17 Sep 2025 17:43:26 +0800 Subject: [PATCH] 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 --- Cargo.toml | 2 +- deny.toml | 9 +++++++++ src/lib.rs | 2 +- src/parsers.rs | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 deny.toml diff --git a/Cargo.toml b/Cargo.toml index b47431e..1fc3505 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ repository = "https://github.com/rust-netlink/netlink-packet-core" description = "netlink packet types" [dependencies] -pastey = "0.1.0" +paste = "1" [dev-dependencies] netlink-packet-route = "0.13.0" diff --git a/deny.toml b/deny.toml new file mode 100644 index 0000000..2c24421 --- /dev/null +++ b/deny.toml @@ -0,0 +1,9 @@ +[licenses] +allow = [ + "Apache-2.0", + "MIT", +] + +[[advisories.ignore]] +id = "RUSTSEC-2024-0436" +reason = "Unmaintained paste is consider as finished which is better than un-vetted altertives" diff --git a/src/lib.rs b/src/lib.rs index 3dc7c8f..5316550 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -295,4 +295,4 @@ pub use self::traits::{ // For buffer! macros #[doc(hidden)] -pub use pastey::paste; +pub use paste::paste; diff --git a/src/parsers.rs b/src/parsers.rs index 7e3e490..46cdbcd 100644 --- a/src/parsers.rs +++ b/src/parsers.rs @@ -5,7 +5,7 @@ use std::{ net::{IpAddr, Ipv4Addr, Ipv6Addr}, }; -use pastey::paste; +use paste::paste; use crate::DecodeError;