Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for tvOS, watchOS and visionOS #146

Merged
merged 1 commit into from
Feb 3, 2025
Merged

Conversation

madsmtm
Copy link
Contributor

@madsmtm madsmtm commented Jan 27, 2025

By using target_vendor = "apple" instead of any(target_os = "macos", target_os = "ios") - the implementation uses CoreFoundation functions which are available on all Apple platforms.

Fixes #71.

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@lopopolo lopopolo added the Tier-3 Rust Tier-3 platform label Jan 28, 2025
@madsmtm madsmtm requested a review from lopopolo January 28, 2025 13:37
Copy link
Collaborator

@Kijewski Kijewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it! Much better than trying to manually keep up with list of Apple OSes.

(I should really clean up the CI checks, though.)

@madsmtm
Copy link
Contributor Author

madsmtm commented Jan 28, 2025

Btw, I chose the name tz_darwin because that's the name of the underlying OS, see also std::os::darwin.

Copy link
Collaborator

@lopopolo lopopolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing this up and expanding our platform support!

@lopopolo
Copy link
Collaborator

lopopolo commented Feb 2, 2025

Pulling in #148 once it lands should get most of the builds passing.

lopopolo added a commit to artichoke/artichoke that referenced this pull request Feb 2, 2025
By using `target_vendor = "apple"` instead of `target_os = "macos"`. The
implementation uses APIs from `libSystem` which is available on all
Apple platforms that Rust supports.

Inpsired by strawlab/iana-time-zone#146.

This is technically a breaking change on non-macOS Apple targets, so
bump the crate version to 2.0.0.
@lopopolo
Copy link
Collaborator

lopopolo commented Feb 2, 2025

@madsmtm if you can rebase and resolve conflicts we can get this merged

@madsmtm
Copy link
Contributor Author

madsmtm commented Feb 3, 2025

Hmm, I've rebased, but the CI didn't seem to run?

@lopopolo lopopolo merged commit fa23c1d into strawlab:main Feb 3, 2025
@lopopolo
Copy link
Collaborator

lopopolo commented Feb 3, 2025

@Kijewski @astraw can one of you cut a release?

@madsmtm madsmtm deleted the apple branch February 3, 2025 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tier-3 Rust Tier-3 platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for tvOS (aarch64-apple-tvos) to Apple bindings
3 participants