From 475b299d8bfe0f2f37f4d4c0c514d65558e73d23 Mon Sep 17 00:00:00 2001 From: Daniel Yu Date: Sun, 28 Sep 2025 13:56:35 +0800 Subject: [PATCH] Update depends --- Cargo.toml | 8 ++++---- src/sys/darwin/handle.rs | 2 +- src/sys/darwin/scinterface.rs | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4f467e2..0f03f97 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,12 +16,12 @@ scopeguard = "1.1.0" [target.'cfg(target_os = "linux")'.dependencies] netlink-sys = "0.8.3" -netlink-packet-route = "0.24.0" -netlink-packet-core = "0.7.0" +netlink-packet-route = "0.25.1" +netlink-packet-core = "0.8.1" [target.'cfg(target_os = "macos")'.dependencies] -system-configuration-sys = "0.5.0" -core-foundation = "0.9.3" +system-configuration-sys = "0.6.0" +core-foundation = "0.10.1" [target.'cfg(unix)'.dependencies] nix = { version = "0.30.1", features = ["ioctl", "net"] } diff --git a/src/sys/darwin/handle.rs b/src/sys/darwin/handle.rs index ee595de..79e6b25 100644 --- a/src/sys/darwin/handle.rs +++ b/src/sys/darwin/handle.rs @@ -1,4 +1,4 @@ -use super::scinterface::SCNetworkInterface; +use crate::sys::scinterface::SCNetworkInterface; use crate::sys::{dummy_socket, ioctls, InterfaceHandle}; use crate::sys::{ifreq, InterfaceName}; use crate::{Error, Interface}; diff --git a/src/sys/darwin/scinterface.rs b/src/sys/darwin/scinterface.rs index 28212d2..30f15ea 100644 --- a/src/sys/darwin/scinterface.rs +++ b/src/sys/darwin/scinterface.rs @@ -4,6 +4,7 @@ use system_configuration_sys::network_configuration::{ SCNetworkInterfaceCopyAll, SCNetworkInterfaceGetBSDName, SCNetworkInterfaceGetLocalizedDisplayName, SCNetworkInterfaceGetTypeID, SCNetworkInterfaceRef, }; +use core_foundation::declare_TCFType; core_foundation::declare_TCFType!(SCNetworkInterface, SCNetworkInterfaceRef); core_foundation::impl_TCFType!(