Skip to content

Commit

Permalink
Merge pull request #7 from ameknite/replace-mach
Browse files Browse the repository at this point in the history
Mach is deprecated, update to mach2
  • Loading branch information
LiquidityC committed Nov 13, 2023
2 parents e3087e4 + cdc753d commit e6c9949
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ edition = "2018"
[badges]
maintenance = { status = "passively-maintained" }

[target.'cfg(all(any(target_os = "macos", target_os = "ios"), not(feature = "unix_sysv")))'.dependencies.mach]
version = "0.3"
[target.'cfg(all(any(target_os = "macos", target_os = "ios"), not(feature = "unix_sysv")))'.dependencies.mach2]
version = "0.4.1"
default-features = false

[target.'cfg(target_os = "windows")'.dependencies.winapi]
Expand Down
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
max_width = 79
fn_args_layout = "Compressed"
fn_params_layout = "Compressed"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ extern crate core;
any(target_os = "macos", target_os = "ios"),
not(feature = "unix_sysv")
))]
extern crate mach;
extern crate mach2 as mach;

#[cfg(unix)]
extern crate libc;
Expand Down
2 changes: 1 addition & 1 deletion src/mirrored/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use super::mem;

use mach;
use mach::boolean::boolean_t;
use mach::kern_return::*;
use mach::mach_types::mem_entry_name_port_t;
Expand All @@ -20,6 +19,7 @@ use mach::vm_inherit::VM_INHERIT_NONE;
use mach::vm_prot::{vm_prot_t, VM_PROT_READ, VM_PROT_WRITE};
use mach::vm_statistics::{VM_FLAGS_ANYWHERE, VM_FLAGS_FIXED};
use mach::vm_types::mach_vm_address_t;
use mach2 as mach;

use super::AllocError;

Expand Down

0 comments on commit e6c9949

Please sign in to comment.