Skip to content

Commit 132498f

Browse files
committed
replace mach with mach2
1 parent b75bcc4 commit 132498f

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

Cargo.lock

+6-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ tracing-subscriber = { version = "0.3", default-features = false, features = [
114114
"fmt",
115115
] }
116116

117+
[patch.crates-io]
118+
region = { git = "https://github.com/wasmerio/region-rs", branch = "3.0.0-patch-mach2" }
119+
117120
[features]
118121
# Don't add the compiler features in default, please add them on the Makefile
119122
# since we might want to autoconfigure them depending on the availability on the host.

lib/vm/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tracing = { version = "0.1", optional = true }
3535
crossbeam-queue = "0.3.8"
3636

3737
[target.'cfg(target_vendor = "apple")'.dependencies]
38-
mach = "0.3.2"
38+
mach2 = "0.4"
3939

4040
[target.'cfg(target_os = "windows")'.dependencies]
4141
winapi = { version = "0.3", features = ["winbase", "memoryapi", "errhandlingapi"] }

lib/vm/src/trap/traphandlers.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ cfg_if::cfg_if! {
172172
// For more details see https://github.com/mono/mono/commit/8e75f5a28e6537e56ad70bf870b86e22539c2fb7
173173
#[cfg(target_vendor = "apple")]
174174
{
175-
use mach::exception_types::*;
176-
use mach::kern_return::*;
177-
use mach::port::*;
178-
use mach::thread_status::*;
179-
use mach::traps::*;
180-
use mach::mach_types::*;
175+
use mach2::exception_types::*;
176+
use mach2::kern_return::*;
177+
use mach2::port::*;
178+
use mach2::thread_status::*;
179+
use mach2::traps::*;
180+
use mach2::mach_types::*;
181181

182182
extern "C" {
183183
fn task_set_exception_ports(

0 commit comments

Comments
 (0)