From a5f55b5000f5c04142f06b811520a3fcafbeef3b Mon Sep 17 00:00:00 2001 From: Gris Ge Date: Sun, 29 Jan 2023 20:09:10 +0800 Subject: [PATCH] Use latest rust-netlink crates Signed-off-by: Gris Ge --- Cargo.toml | 12 ++++++------ src/message.rs | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ab2b685..d16819a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,12 +30,12 @@ futures = "0.3.17" log = "0.4.14" thiserror = "1.0.29" tokio = { version = "1.0.1", features = ["rt"], optional = true} -genetlink = { default-features = false, version = "0.2.1" } -netlink-packet-core = { version = "0.4.2" } -netlink-packet-generic = { version = "0.3.1" } -netlink-packet-utils = { version = "0.5.1" } -netlink-proto = { default-features = false, version = "0.10" } -netlink-sys = { version = "0.8.3" } +genetlink = { default-features = false, version = "0.2.4" } +netlink-packet-core = { version = "0.5.0" } +netlink-packet-generic = { version = "0.3.2" } +netlink-packet-utils = { version = "0.5.2" } +netlink-proto = { default-features = false, version = "0.11" } +netlink-sys = { version = "0.8.4" } [dev-dependencies] tokio = { version = "1.11.0", features = ["macros", "rt", "rt-multi-thread"] } diff --git a/src/message.rs b/src/message.rs index c664705..cd497b5 100644 --- a/src/message.rs +++ b/src/message.rs @@ -1,10 +1,9 @@ // SPDX-License-Identifier: MIT use anyhow::Context; -use netlink_packet_core::DecodeError; use netlink_packet_generic::{GenlFamily, GenlHeader}; use netlink_packet_utils::{ - nla::NlasIterator, Emitable, Parseable, ParseableParametrized, + nla::NlasIterator, DecodeError, Emitable, Parseable, ParseableParametrized, }; use crate::attr::Nl80211Attr;