From deb36c90bcbff87d5ee1c58d0afd1bee2824967b Mon Sep 17 00:00:00 2001 From: Eugene Hauptmann Date: Fri, 31 May 2024 17:40:19 -0400 Subject: [PATCH] feature(apple): added visionos support --- Cargo.toml | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f414e7e..295f68a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.6" authors = ["Steven Sheldon"] description = "Rust interface for Apple's C language extension of blocks." -keywords = ["blocks", "osx", "ios", "objective-c"] +keywords = ["blocks", "osx", "ios", "objective-c", "visionos"] readme = "README.md" repository = "http://github.com/SSheldon/rust-block" documentation = "http://ssheldon.github.io/rust-objc/block/" diff --git a/src/lib.rs b/src/lib.rs index f05eee6..45e9f2f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,9 +56,9 @@ use std::ptr; enum Class { } -#[cfg_attr(any(target_os = "macos", target_os = "ios"), +#[cfg_attr(any(target_os = "macos", target_os = "ios", target_os = "visionos"), link(name = "System", kind = "dylib"))] -#[cfg_attr(not(any(target_os = "macos", target_os = "ios")), +#[cfg_attr(not(any(target_os = "macos", target_os = "ios", target_os = "visionos")), link(name = "BlocksRuntime", kind = "dylib"))] extern { static _NSConcreteStackBlock: Class;