From 9d516040a9c423357133433553e695c0bc0e5df1 Mon Sep 17 00:00:00 2001 From: Richard Leitner Date: Tue, 21 Mar 2023 13:49:53 +0100 Subject: [PATCH] migrate from mach to mach2 According to RUSTSEC-2020-0168 [1] mach is unmaintained and mach2 is the "go-to" alternative. Therefore migrate to mach2. [1] https://github.com/heim-rs/heim/issues/367 Signed-off-by: Richard Leitner --- Cargo.toml | 2 +- src/lib.rs | 2 +- src/runloop.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1561359..f40cab5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,4 +14,4 @@ build = "build.rs" [dependencies] libc = "0.2" -mach = "0.1.0" +mach2 = "0.4" diff --git a/src/lib.rs b/src/lib.rs index 31da818..4aafecd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,7 @@ #![allow(non_upper_case_globals, non_snake_case)] extern crate libc; -extern crate mach; +extern crate mach2; pub use array::*; pub use base::*; diff --git a/src/runloop.rs b/src/runloop.rs index dbfa47b..496599c 100644 --- a/src/runloop.rs +++ b/src/runloop.rs @@ -1,5 +1,5 @@ use libc::c_void; -use mach::port::mach_port_t; +use mach2::port::mach_port_t; use ::{Boolean, CFAbsoluteTime, CFAllocatorRef, CFAllocatorCopyDescriptionCallBack, CFAllocatorReleaseCallBack, CFAllocatorRetainCallBack, CFArrayRef, CFHashCode, CFIndex, CFOptionFlags, CFStringRef, CFTimeInterval, CFTypeID, CFTypeRef};