Skip to content

Commit

Permalink
Update macos target dependencies (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
ad0 committed Oct 6, 2023
1 parent 7857cb4 commit 5783f4e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ libc = "0.2"

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
libc = "^0.2"
mach = "^0.3"
core-foundation = "~0.6"
core-foundation-sys = "~0.6"
io-kit-sys = "0.1.0"
mach2 = "^0.4.1"
core-foundation = "~0.9"
core-foundation-sys = "~0.8"
io-kit-sys = "0.4.0"
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ The current development stage is to finalize the API design.
* libc = "^0.2"
* MacOS
* libc = "^0.2"
* mach = "^0.3"
* core-foundation = "~0.6"
* core-foundation-sys = "~0.6"
* io-kit-sys = "^0.1.0"
* mach2 = "^0.4.1"
* core-foundation = "~0.9"
* core-foundation-sys = "~0.8"
* io-kit-sys = "^0.4.0"

## Security
This library design follows a strict security mantra: *"Never trust the input"*.
Expand Down
2 changes: 1 addition & 1 deletion src/macos/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use io_kit_sys::{
IOMasterPort, IOObjectRelease, IORegistryEntryCreateCFProperty, IOServiceGetMatchingService,
IOServiceMatching, CFSTR,
};
use mach::*;
use mach2::*;
use std::{convert::TryFrom, ffi::CString, io::Error, io::ErrorKind};

struct AppleSMBiosService {
Expand Down

0 comments on commit 5783f4e

Please sign in to comment.