Skip to content

Commit

Permalink
switch from core-foundation-sys to core-foundation
Browse files Browse the repository at this point in the history
As core-foundation-sys [1] seems to be unmaintained [2] switch to
core-foundation [3].

[1] https://github.com/dcuddeback/core-foundation-sys
[2] dcuddeback/core-foundation-sys#11
[3] https://github.com/servo/core-foundation-rs

Signed-off-by: Richard Leitner <[email protected]>
  • Loading branch information
g0hl1n committed Mar 22, 2023
1 parent 7ace596 commit ec1a93d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ nix = { version = "0.26", default-features = false, features = ["fs", "ioctl", "
libudev = { version = "0.3.0", optional = true }

[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies]
CoreFoundation-sys = "0.1.4"
core-foundation = "~0.9"
IOKit-sys = "0.1.5"
mach2 = "0.4.1"

Expand Down
4 changes: 2 additions & 2 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ notice = "deny"
# A list of advisory IDs to ignore. Note that ignored advisories will still
# output a note when they are encountered.
ignore = [
"RUSTSEC-2020-0168", # caused by unmaintained mach dependency of core-foundation-sys
"RUSTSEC-2021-0145", # caused by unmaintained atty
"RUSTSEC-2020-0168", # caused by unmaintained mach dependency of IOKit-sys
"RUSTSEC-2021-0145", # caused by unmaintained atty, which is used by clap
]
# Threshold for security vulnerabilities, any vulnerability with a CVSS score
# lower than the range specified will be ignored. Note that ignored advisories
Expand Down
2 changes: 1 addition & 1 deletion src/posix/enumerate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::mem::MaybeUninit;

use cfg_if::cfg_if;
#[cfg(any(target_os = "ios", target_os = "macos"))]
use CoreFoundation_sys::*;
use core_foundation::{base::*, dictionary::*, number::*, string::*};
#[cfg(any(target_os = "ios", target_os = "macos"))]
use IOKit_sys::*;

Expand Down

0 comments on commit ec1a93d

Please sign in to comment.