From 442ce836fb6b1768ba3194df21f90bf5f0f43248 Mon Sep 17 00:00:00 2001 From: Eugene Hauptmann Date: Fri, 31 May 2024 21:47:28 -0400 Subject: [PATCH] feature(apple): added visionos support to 0.2.7, because master has breaking changes to encode --- Cargo.toml | 2 +- src/message/mod.rs | 4 ++-- src/rc/mod.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1498fbdad..f240d3e06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ version = "0.2.7" authors = ["Steven Sheldon"] description = "Objective-C Runtime bindings and wrapper for Rust." -keywords = ["objective-c", "osx", "ios", "cocoa", "uikit"] +keywords = ["objective-c", "osx", "ios", "visionos", "cocoa", "uikit"] readme = "README.md" repository = "http://github.com/SSheldon/rust-objc" documentation = "http://ssheldon.github.io/rust-objc/objc/" diff --git a/src/message/mod.rs b/src/message/mod.rs index cb11e993a..efc757027 100644 --- a/src/message/mod.rs +++ b/src/message/mod.rs @@ -26,10 +26,10 @@ macro_rules! objc_try { mod verify; -#[cfg(any(target_os = "macos", target_os = "ios"))] +#[cfg(any(target_os = "macos", target_os = "ios", target_os = "visionos"))] #[path = "apple/mod.rs"] mod platform; -#[cfg(not(any(target_os = "macos", target_os = "ios")))] +#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "visionos")))] #[path = "gnustep.rs"] mod platform; diff --git a/src/rc/mod.rs b/src/rc/mod.rs index f6d26f7a1..6fe592a01 100644 --- a/src/rc/mod.rs +++ b/src/rc/mod.rs @@ -49,7 +49,7 @@ pub use self::weak::WeakPtr; pub use self::autorelease::autoreleasepool; // These tests use NSObject, which isn't present for GNUstep -#[cfg(all(test, any(target_os = "macos", target_os = "ios")))] +#[cfg(all(test, any(target_os = "macos", target_os = "ios", target_os = "visionos")))] mod tests { use runtime::Object; use super::StrongPtr;