Skip to content

Conversation

madsmtm
Copy link

@madsmtm madsmtm commented Apr 18, 2025

Assuming that the mach2 crate is updated to support these platforms, or we get rid of that dependency.

I haven't tested this, only did the (very few) necessary changes to make it compile. But I strongly suspect it'll work if it works on iOS.

@sirhcel
Copy link
Contributor

sirhcel commented May 16, 2025

Thank for for creating this PR @madsmtm!

Assuming that the mach2 crate is updated to support these platforms, or we get rid of that dependency.

Am reading it right, that you are aiming at a future point in time when support for tvOS, watchOS, and visionOS might get into the mach2 crate? Do you know if there is already some work in this direction going on?

What do you mean with 'getting rid of that dependency'?

@madsmtm
Copy link
Author

madsmtm commented May 16, 2025

Do you know if there is already some work in this direction going on?

Unfortunately no, mach2 seems unmaintained, and I don't know of a maintained alternative.

What do you mean with 'getting rid of that dependency'?

The use of mach2 in this crate is very minimal, basically two consts KERN_SUCCESS and MACH_PORT_NULL and a typedef mach_port_t = c_uint. So it'd be quite easy to get rid of entirely.

FYI, I'm somewhat planning to migrate this crate to objc2, see my very in draft branch, I might do it as part of that.

Assuming that the `mach2` crate is updated to support these platforms,
or we get rid of that dependency.
@madsmtm
Copy link
Author

madsmtm commented Sep 3, 2025

Btw, I opened a PR to mach2 to support tvOS, watchOS and visionOS: JohnTitor/mach2#50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants