diff --git a/Cargo.lock b/Cargo.lock index 5f98a977d..1477e28a2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -453,6 +453,7 @@ dependencies = [ "objc2-metal", "objc2-metal-kit", "objc2-model-io", + "objc2-quartz-core", ] [[package]] diff --git a/crates/header-translator/src/library.rs b/crates/header-translator/src/library.rs index 1d4435bec..708cc7126 100644 --- a/crates/header-translator/src/library.rs +++ b/crates/header-translator/src/library.rs @@ -232,6 +232,12 @@ impl Library { )?; writeln!(lib_rs, "//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html")?; writeln!(lib_rs, "#![no_std]")?; + if !self.data.is_library { + writeln!( + lib_rs, + "#![cfg_attr(feature = \"unstable-darwin-objc\", feature(darwin_objc))]" + )?; + } writeln!(lib_rs, "#![cfg_attr(docsrs, feature(doc_auto_cfg))]")?; writeln!(lib_rs, "// Update in Cargo.toml as well.")?; writeln!( @@ -447,6 +453,20 @@ see that for related crates.", self.data.krate)?; cargo_toml["features"][feature] = array_with_newlines(enabled_features); } + // Emit unstable-darwin-objc feature in framework crates. + // + // We could also use this to enable the feature automatically in + // dependencies, but we'd like for this feature to remain "unstable" in + // the sense that we'd be free to remove it in a patch release. By + // mentioning it across crates, that would no longer be the case. + // + // It's slightly less convenient for users, but in practice, most users + // already directly depend on all their `objc2-*` crates in their + // dependency tree. + if !self.data.is_library { + cargo_toml["features"]["unstable-darwin-objc"] = array_with_newlines([]); + } + // And then the rest of the features. if !emitted_features.is_empty() { add_newline_at_end(&mut cargo_toml["features"]); diff --git a/crates/objc2/Cargo.toml b/crates/objc2/Cargo.toml index 54dba5d3a..2e95fae70 100644 --- a/crates/objc2/Cargo.toml +++ b/crates/objc2/Cargo.toml @@ -72,7 +72,7 @@ disable-encoding-assertions = [] # no longer required. verify = [] -# Make the `sel!` macro look up the selector statically. +# Make the `sel!`/`class!` macro look up the item statically. # # The plan is to enable this by default, but right now we are uncertain of # its stability, and it might need significant changes before being fully @@ -85,6 +85,9 @@ unstable-static-sel-inlined = ["unstable-static-sel"] unstable-static-class = ["dep:objc2-proc-macros"] unstable-static-class-inlined = ["unstable-static-class"] +# Augment the above with the nightly `darwin_objc` feature. +unstable-darwin-objc = [] + # Uses nightly features to make autorelease pools fully sound unstable-autoreleasesafe = [] diff --git a/crates/objc2/src/__macros/class.rs b/crates/objc2/src/__macros/class.rs index c4955fdfd..50954e9a9 100644 --- a/crates/objc2/src/__macros/class.rs +++ b/crates/objc2/src/__macros/class.rs @@ -89,6 +89,23 @@ macro_rules! __class_inner { }}; } +#[doc(hidden)] +#[macro_export] +#[cfg(all( + feature = "unstable-static-class", + feature = "unstable-darwin-objc", + not(feature = "gnustep-1-7"), +))] +macro_rules! __class_inner { + ($name:expr, $_hash:expr) => {{ + let ptr = $crate::__macros::core_darwin_objc::class!($name); + let ptr = ptr.cast_const().cast::<$crate::runtime::AnyClass>(); + #[allow(unused_unsafe)] + let r: &'static $crate::runtime::AnyClass = unsafe { &*ptr }; + r + }}; +} + #[doc(hidden)] #[macro_export] #[cfg(all( @@ -175,6 +192,7 @@ macro_rules! __statics_class { #[macro_export] #[cfg(all( feature = "unstable-static-class", + not(feature = "unstable-darwin-objc"), not(feature = "gnustep-1-7"), not(feature = "unstable-static-class-inlined") ))] @@ -199,6 +217,7 @@ macro_rules! __class_inner { #[macro_export] #[cfg(all( feature = "unstable-static-class", + not(feature = "unstable-darwin-objc"), not(feature = "gnustep-1-7"), feature = "unstable-static-class-inlined" ))] diff --git a/crates/objc2/src/__macros/mod.rs b/crates/objc2/src/__macros/mod.rs index 90253c10c..9aab4d39f 100644 --- a/crates/objc2/src/__macros/mod.rs +++ b/crates/objc2/src/__macros/mod.rs @@ -52,6 +52,9 @@ pub use core::primitive::{bool, isize, str, u8}; pub use core::{compile_error, concat, env, module_path, panic, stringify}; pub use std::sync::Once; +#[cfg(feature = "unstable-darwin-objc")] +pub use core::os::darwin::objc as core_darwin_objc; + pub use self::available::{is_available, AvailableVersion, OSVersion}; pub use self::class::{disallow_in_static, CachedClass}; pub use self::convert::{ConvertArgument, ConvertArguments, ConvertReturn, TupleExtender}; diff --git a/crates/objc2/src/__macros/sel.rs b/crates/objc2/src/__macros/sel.rs index 580359226..3917a1c97 100644 --- a/crates/objc2/src/__macros/sel.rs +++ b/crates/objc2/src/__macros/sel.rs @@ -49,13 +49,26 @@ use crate::runtime::Sel; /// - runtime, causing UB (unlikely) /// /// The `"unstable-static-sel-inlined"` feature is the even more extreme -/// version - it yields the best performance and is closest to real +/// version - it yield better performance and is closer to real /// Objective-C code, but probably won't work unless your code and its /// inlining is written in a very certain way. /// /// Enabling LTO greatly increases the chance that these features work. /// +/// On Apple/Darwin targets, these limitations can be overcome with the +/// `"unstable-darwin-objc"` feature which uses the nightly-only `darwin_objc` +/// language feature. This experimental language feature implements the +/// Objective-C static selector ABI directly in the Rust compiler and should +/// work in more if not all cases. Using `"unstable-darwin-objc"` requires +/// `darwin_objc` to be enabled in every crate that uses this macro, which can +/// be achieved in `objc2` crates by enabling their own +/// `"unstable-darwin-objc"` features and in your own crates by adding +/// `#![feature(darwin_objc)]`. +/// +/// See [rust-lang/rust#145496] for the tracking issue for the feature. +/// /// [rust-lang/rust#53929]: https://github.com/rust-lang/rust/issues/53929 +/// [rust-lang/rust#145496]: https://github.com/rust-lang/rust/issues/145496 /// /// /// # Examples @@ -177,9 +190,9 @@ macro_rules! __sel_helper { // Base-case { ($($parsed_sel:tt)*) - } => ({ + } => { $crate::__sel_data!($($parsed_sel)*) - }); + }; // Single identifier { () @@ -219,7 +232,6 @@ macro_rules! __sel_data { $crate::__macros::concat!( $crate::__macros::stringify!($first), $(':', $($($crate::__macros::stringify!($rest),)? ':',)*)? - '\0', ) }; } @@ -232,7 +244,21 @@ macro_rules! __sel_inner { static CACHED_SEL: $crate::__macros::CachedSel = $crate::__macros::CachedSel::new(); #[allow(unused_unsafe)] unsafe { - CACHED_SEL.get($data) + CACHED_SEL.get($crate::__macros::concat!($data, '\0')) + } + }}; +} + +#[doc(hidden)] +#[macro_export] +#[cfg(all(feature = "unstable-static-sel", feature = "unstable-darwin-objc"))] +macro_rules! __sel_inner { + ($data:expr, $_hash:expr) => {{ + let ptr = $crate::__macros::core_darwin_objc::selector!($data); + let ptr = ptr.cast_const().cast::<$crate::__macros::u8>(); + #[allow(unused_unsafe)] + unsafe { + $crate::runtime::Sel::__internal_from_ptr(ptr) } }}; } @@ -245,7 +271,7 @@ macro_rules! __statics_sel { ($data:expr) ($hash:expr) } => { - const X: &[$crate::__macros::u8] = $data.as_bytes(); + const X: &[$crate::__macros::u8] = $crate::__macros::concat!($data, '\0').as_bytes(); /// Clang marks this with LLVM's `unnamed_addr`. /// See rust-lang/rust#18297 @@ -321,7 +347,8 @@ macro_rules! __statics_sel { #[macro_export] #[cfg(all( feature = "unstable-static-sel", - not(feature = "unstable-static-sel-inlined") + not(feature = "unstable-darwin-objc"), + not(feature = "unstable-static-sel-inlined"), ))] macro_rules! __sel_inner { ($data:expr, $hash:expr) => {{ @@ -353,7 +380,11 @@ macro_rules! __sel_inner { #[doc(hidden)] #[macro_export] -#[cfg(feature = "unstable-static-sel-inlined")] +#[cfg(all( + feature = "unstable-static-sel", + not(feature = "unstable-darwin-objc"), + feature = "unstable-static-sel-inlined", +))] macro_rules! __sel_inner { ($data:expr, $hash:expr) => {{ $crate::__statics_sel! { @@ -425,22 +456,22 @@ impl CachedSel { #[inline] pub fn alloc_sel() -> Sel { - __sel_inner!("alloc\0", "alloc") + __sel_inner!("alloc", "alloc") } #[inline] pub fn init_sel() -> Sel { - __sel_inner!("init\0", "init") + __sel_inner!("init", "init") } #[inline] pub fn new_sel() -> Sel { - __sel_inner!("new\0", "new") + __sel_inner!("new", "new") } #[inline] pub fn dealloc_sel() -> Sel { - __sel_inner!("dealloc\0", "dealloc") + __sel_inner!("dealloc", "dealloc") } /// An undocumented selector called by the Objective-C runtime when @@ -448,7 +479,7 @@ pub fn dealloc_sel() -> Sel { #[inline] #[allow(dead_code)] // May be useful in the future fn cxx_construct_sel() -> Sel { - __sel_inner!(".cxx_construct\0", ".cxx_construct") + __sel_inner!(".cxx_construct", ".cxx_construct") } /// Objective-C runtimes call `.cxx_destruct` as part of the final `dealloc` @@ -485,7 +516,7 @@ fn cxx_construct_sel() -> Sel { #[inline] #[allow(dead_code)] // May be useful in the future fn cxx_destruct_sel() -> Sel { - __sel_inner!(".cxx_destruct\0", ".cxx_destruct") + __sel_inner!(".cxx_destruct", ".cxx_destruct") } #[cfg(test)] diff --git a/crates/objc2/src/lib.rs b/crates/objc2/src/lib.rs index 4e5e79104..94ec0b771 100644 --- a/crates/objc2/src/lib.rs +++ b/crates/objc2/src/lib.rs @@ -102,6 +102,7 @@ //! [#203]: https://github.com/madsmtm/objc2/issues/203 #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr( feature = "unstable-autoreleasesafe", feature(negative_impls, auto_traits) diff --git a/examples/app/Cargo.toml b/examples/app/Cargo.toml index 162a029ff..6ca949031 100644 --- a/examples/app/Cargo.toml +++ b/examples/app/Cargo.toml @@ -18,6 +18,13 @@ path = "default_xcode_app/main.rs" name = "hello_world_app" path = "hello_world_app.rs" +[features] +unstable-darwin-objc = [ + "objc2/unstable-darwin-objc", + "objc2-app-kit/unstable-darwin-objc", + "objc2-foundation/unstable-darwin-objc", +] + [dependencies] objc2 = "0.6.2" objc2-foundation = { version = "0.3.1", default-features = false, features = [ diff --git a/examples/app/default_xcode_app/main.rs b/examples/app/default_xcode_app/main.rs index c10441846..690a13bab 100644 --- a/examples/app/default_xcode_app/main.rs +++ b/examples/app/default_xcode_app/main.rs @@ -3,6 +3,8 @@ //! Using a Storyboard outside of Xcode is quite involved, so instead, we set //! up the entire UI (menubar and window) ourselves. +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] + use objc2::MainThreadMarker; use objc2_app_kit::NSApplication; diff --git a/examples/app/delegate.rs b/examples/app/delegate.rs index c86d8641b..6ffc67540 100644 --- a/examples/app/delegate.rs +++ b/examples/app/delegate.rs @@ -1,5 +1,6 @@ //! Implementing `NSApplicationDelegate` for a custom class. #![deny(unsafe_op_in_unsafe_fn)] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] use objc2::rc::Retained; use objc2::runtime::ProtocolObject; use objc2::{define_class, msg_send, DefinedClass, MainThreadMarker, MainThreadOnly}; diff --git a/examples/app/hello_world_app.rs b/examples/app/hello_world_app.rs index 37550a414..ba86653e7 100644 --- a/examples/app/hello_world_app.rs +++ b/examples/app/hello_world_app.rs @@ -1,4 +1,5 @@ #![deny(unsafe_op_in_unsafe_fn)] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] use std::cell::OnceCell; use objc2::rc::Retained; diff --git a/examples/audio/Cargo.toml b/examples/audio/Cargo.toml index c5834da11..b820a1767 100644 --- a/examples/audio/Cargo.toml +++ b/examples/audio/Cargo.toml @@ -9,6 +9,12 @@ publish = false name = "speech_synthesis" path = "speech_synthesis.rs" +[features] +unstable-darwin-objc = [ + "objc2/unstable-darwin-objc", + "objc2-foundation/unstable-darwin-objc", +] + [dependencies] objc2 = "0.6.2" objc2-foundation = { version = "0.3.1", default-features = false, features = [ diff --git a/examples/audio/speech_synthesis.rs b/examples/audio/speech_synthesis.rs index 8fb773c7b..9ebb6a081 100644 --- a/examples/audio/speech_synthesis.rs +++ b/examples/audio/speech_synthesis.rs @@ -12,6 +12,7 @@ //! Works on macOS >= 10.7 and iOS > 7.0. #![deny(unsafe_op_in_unsafe_fn)] #![allow(unused_imports)] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] use std::thread; use std::time::Duration; diff --git a/examples/metal/Cargo.toml b/examples/metal/Cargo.toml index 7cbce932d..5be83f2c5 100644 --- a/examples/metal/Cargo.toml +++ b/examples/metal/Cargo.toml @@ -13,6 +13,18 @@ path = "triangle/main.rs" name = "default_xcode_game" path = "default_xcode_game/main.rs" +[features] +unstable-darwin-objc = [ + "objc2/unstable-darwin-objc", + "objc2-app-kit/unstable-darwin-objc", + "objc2-core-foundation/unstable-darwin-objc", + "objc2-foundation/unstable-darwin-objc", + "objc2-metal-kit/unstable-darwin-objc", + "objc2-metal/unstable-darwin-objc", + "objc2-model-io/unstable-darwin-objc", + "objc2-quartz-core/unstable-darwin-objc", +] + [dependencies] objc2 = "0.6.2" dispatch2 = "0.3.0" @@ -62,6 +74,7 @@ objc2-core-foundation = { version = "0.3.1", default-features = false, features "std", "CFCGTypes", ] } +objc2-quartz-core = { version = "0.3.1", default-features = false, features = [] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { version = "0.3.1", default-features = false, features = [ diff --git a/examples/metal/default_xcode_game/main.rs b/examples/metal/default_xcode_game/main.rs index b3d1ae6b0..11a321456 100644 --- a/examples/metal/default_xcode_game/main.rs +++ b/examples/metal/default_xcode_game/main.rs @@ -7,6 +7,8 @@ //! NOTE: Using a Storyboard outside of Xcode is quite involved, so instead, //! we set up the entire UI (menubar and window) ourselves. +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] + #[cfg(all(target_os = "macos", target_arch = "aarch64"))] use objc2::MainThreadMarker; #[cfg(all(target_os = "macos", target_arch = "aarch64"))] diff --git a/examples/metal/triangle/main.rs b/examples/metal/triangle/main.rs index 06dba1aa0..f9819fd3f 100644 --- a/examples/metal/triangle/main.rs +++ b/examples/metal/triangle/main.rs @@ -2,6 +2,7 @@ #![deny(unsafe_op_in_unsafe_fn)] #![allow(clippy::incompatible_msrv)] #![cfg_attr(not(target_os = "macos"), allow(dead_code, unused))] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] use core::{cell::OnceCell, ptr::NonNull}; diff --git a/examples/testing/Cargo.toml b/examples/testing/Cargo.toml index 09dd03115..08a8bd453 100644 --- a/examples/testing/Cargo.toml +++ b/examples/testing/Cargo.toml @@ -13,6 +13,14 @@ path = "screenshot.rs" name = "ui_test" path = "ui_test.rs" +[features] +unstable-darwin-objc = [ + "objc2/unstable-darwin-objc", + "objc2-foundation/unstable-darwin-objc", + "objc2-xc-test/unstable-darwin-objc", + "objc2-xc-ui-automation/unstable-darwin-objc", +] + [dependencies] objc2 = "0.6.2" objc2-foundation = { version = "0.3.1", default-features = false, features = [ diff --git a/examples/testing/screenshot.rs b/examples/testing/screenshot.rs index 6a3cf4580..d65b0f79c 100644 --- a/examples/testing/screenshot.rs +++ b/examples/testing/screenshot.rs @@ -1,4 +1,5 @@ #![no_main] // Required, we build this with `-bundle`. +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] use objc2::{define_class, ClassType, MainThreadOnly}; use objc2_foundation::ns_string; diff --git a/examples/testing/ui_test.rs b/examples/testing/ui_test.rs index d02881b39..17ec9cadb 100644 --- a/examples/testing/ui_test.rs +++ b/examples/testing/ui_test.rs @@ -1,4 +1,5 @@ #![no_main] // Required, we build this with `-bundle`. +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] use objc2::{define_class, ClassType, MainThreadOnly}; use objc2_xc_test::XCTestCase; diff --git a/examples/webkit/Cargo.toml b/examples/webkit/Cargo.toml index 52396f603..a2cf23f68 100644 --- a/examples/webkit/Cargo.toml +++ b/examples/webkit/Cargo.toml @@ -9,6 +9,14 @@ publish = false name = "browser" path = "browser.rs" +[features] +unstable-darwin-objc = [ + "objc2/unstable-darwin-objc", + "objc2-app-kit/unstable-darwin-objc", + "objc2-foundation/unstable-darwin-objc", + "objc2-web-kit/unstable-darwin-objc", +] + [dependencies] objc2 = "0.6.2" objc2-web-kit = { version = "0.3.1", default-features = false, features = [ diff --git a/examples/webkit/browser.rs b/examples/webkit/browser.rs index fed054957..2c3bfec60 100644 --- a/examples/webkit/browser.rs +++ b/examples/webkit/browser.rs @@ -1,6 +1,7 @@ #![deny(unsafe_op_in_unsafe_fn)] #![allow(clippy::incompatible_msrv)] #![cfg_attr(not(target_os = "macos"), allow(dead_code, unused))] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] use core::cell::OnceCell; use objc2::{ diff --git a/framework-crates/objc2-accessibility/Cargo.toml b/framework-crates/objc2-accessibility/Cargo.toml index df2ce6e91..f46100140 100644 --- a/framework-crates/objc2-accessibility/Cargo.toml +++ b/framework-crates/objc2-accessibility/Cargo.toml @@ -69,6 +69,7 @@ bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] +unstable-darwin-objc = [] AXAudiograph = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-accessibility/src/lib.rs b/framework-crates/objc2-accessibility/src/lib.rs index a730902b8..17511406e 100644 --- a/framework-crates/objc2-accessibility/src/lib.rs +++ b/framework-crates/objc2-accessibility/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/accessibility/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-accessibility/0.3.1")] diff --git a/framework-crates/objc2-accessory-setup-kit/Cargo.toml b/framework-crates/objc2-accessory-setup-kit/Cargo.toml index 907163bc1..a1f78a5ca 100644 --- a/framework-crates/objc2-accessory-setup-kit/Cargo.toml +++ b/framework-crates/objc2-accessory-setup-kit/Cargo.toml @@ -61,6 +61,7 @@ block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] objc2-core-bluetooth = ["dep:objc2-core-bluetooth"] objc2-ui-kit = ["dep:objc2-ui-kit"] +unstable-darwin-objc = [] ASAccessory = [ "bitflags", diff --git a/framework-crates/objc2-accessory-setup-kit/src/lib.rs b/framework-crates/objc2-accessory-setup-kit/src/lib.rs index fc416e2eb..262302957 100644 --- a/framework-crates/objc2-accessory-setup-kit/src/lib.rs +++ b/framework-crates/objc2-accessory-setup-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/accessorysetupkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-accessory-setup-kit/0.3.1")] diff --git a/framework-crates/objc2-accounts/Cargo.toml b/framework-crates/objc2-accounts/Cargo.toml index 0bc93093c..d06dac029 100644 --- a/framework-crates/objc2-accounts/Cargo.toml +++ b/framework-crates/objc2-accounts/Cargo.toml @@ -44,6 +44,7 @@ default = [ std = ["alloc"] alloc = [] block2 = ["dep:block2"] +unstable-darwin-objc = [] ACAccount = ["objc2-foundation/NSString"] ACAccountCredential = [ diff --git a/framework-crates/objc2-accounts/src/lib.rs b/framework-crates/objc2-accounts/src/lib.rs index cd292ceb5..563aa91ed 100644 --- a/framework-crates/objc2-accounts/src/lib.rs +++ b/framework-crates/objc2-accounts/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/accounts/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-accounts/0.3.1")] diff --git a/framework-crates/objc2-ad-services/Cargo.toml b/framework-crates/objc2-ad-services/Cargo.toml index 21a19beee..82d0b2742 100644 --- a/framework-crates/objc2-ad-services/Cargo.toml +++ b/framework-crates/objc2-ad-services/Cargo.toml @@ -37,6 +37,7 @@ default = [ ] std = ["alloc"] alloc = [] +unstable-darwin-objc = [] AAAttribution = [ "objc2-foundation/NSError", diff --git a/framework-crates/objc2-ad-services/src/lib.rs b/framework-crates/objc2-ad-services/src/lib.rs index 105ac278b..2764e3381 100644 --- a/framework-crates/objc2-ad-services/src/lib.rs +++ b/framework-crates/objc2-ad-services/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/adservices/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-ad-services/0.3.1")] diff --git a/framework-crates/objc2-ad-support/Cargo.toml b/framework-crates/objc2-ad-support/Cargo.toml index 8578c0a20..e755f056a 100644 --- a/framework-crates/objc2-ad-support/Cargo.toml +++ b/framework-crates/objc2-ad-support/Cargo.toml @@ -37,5 +37,6 @@ default = [ ] std = ["alloc"] alloc = [] +unstable-darwin-objc = [] ASIdentifierManager = ["objc2-foundation/NSUUID"] diff --git a/framework-crates/objc2-ad-support/src/lib.rs b/framework-crates/objc2-ad-support/src/lib.rs index 380e14901..4777fcd9d 100644 --- a/framework-crates/objc2-ad-support/src/lib.rs +++ b/framework-crates/objc2-ad-support/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/adsupport/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-ad-support/0.3.1")] diff --git a/framework-crates/objc2-app-clip/Cargo.toml b/framework-crates/objc2-app-clip/Cargo.toml index 2363c32e8..9189d50d4 100644 --- a/framework-crates/objc2-app-clip/Cargo.toml +++ b/framework-crates/objc2-app-clip/Cargo.toml @@ -43,6 +43,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-core-location = ["dep:objc2-core-location"] +unstable-darwin-objc = [] APActivationPayload = [ "objc2-foundation/NSError", diff --git a/framework-crates/objc2-app-clip/src/lib.rs b/framework-crates/objc2-app-clip/src/lib.rs index bce5f837b..fb4ad32b0 100644 --- a/framework-crates/objc2-app-clip/src/lib.rs +++ b/framework-crates/objc2-app-clip/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/appclip/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-app-clip/0.3.1")] diff --git a/framework-crates/objc2-app-kit/Cargo.toml b/framework-crates/objc2-app-kit/Cargo.toml index 2af95e48d..04bdb6c20 100644 --- a/framework-crates/objc2-app-kit/Cargo.toml +++ b/framework-crates/objc2-app-kit/Cargo.toml @@ -424,6 +424,7 @@ objc2-core-video = ["dep:objc2-core-video"] objc2-open-gl = ["dep:objc2-open-gl"] objc2-quartz-core = ["dep:objc2-quartz-core"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] AppKitDefines = [] AppKitErrors = [] diff --git a/framework-crates/objc2-app-kit/src/lib.rs b/framework-crates/objc2-app-kit/src/lib.rs index e6572bd8e..ac88852f1 100644 --- a/framework-crates/objc2-app-kit/src/lib.rs +++ b/framework-crates/objc2-app-kit/src/lib.rs @@ -19,6 +19,7 @@ //! `window.releasedWhenClosed(false)` to get correct memory management, which //! is also why the creation methods for `NSWindow` are `unsafe`. #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-app-kit/0.3.1")] diff --git a/framework-crates/objc2-app-tracking-transparency/Cargo.toml b/framework-crates/objc2-app-tracking-transparency/Cargo.toml index 26f115fb1..9b533875a 100644 --- a/framework-crates/objc2-app-tracking-transparency/Cargo.toml +++ b/framework-crates/objc2-app-tracking-transparency/Cargo.toml @@ -39,3 +39,4 @@ default = [ std = ["alloc"] alloc = [] block2 = ["dep:block2"] +unstable-darwin-objc = [] diff --git a/framework-crates/objc2-app-tracking-transparency/src/lib.rs b/framework-crates/objc2-app-tracking-transparency/src/lib.rs index 89ae091c6..0d7992419 100644 --- a/framework-crates/objc2-app-tracking-transparency/src/lib.rs +++ b/framework-crates/objc2-app-tracking-transparency/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/apptrackingtransparency/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-app-tracking-transparency/0.3.1")] diff --git a/framework-crates/objc2-application-services/Cargo.toml b/framework-crates/objc2-application-services/Cargo.toml index 3487b834d..3d7d63588 100644 --- a/framework-crates/objc2-application-services/Cargo.toml +++ b/framework-crates/objc2-application-services/Cargo.toml @@ -103,6 +103,7 @@ objc2 = [ objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-core-services = ["dep:objc2-core-services"] objc2-foundation = ["dep:objc2-foundation"] +unstable-darwin-objc = [] AXActionConstants = [] AXAttributeConstants = ["bitflags"] diff --git a/framework-crates/objc2-application-services/src/lib.rs b/framework-crates/objc2-application-services/src/lib.rs index bd9b1f195..87ee596ba 100644 --- a/framework-crates/objc2-application-services/src/lib.rs +++ b/framework-crates/objc2-application-services/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/applicationservices/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-application-services/0.3.1")] diff --git a/framework-crates/objc2-ar-kit/Cargo.toml b/framework-crates/objc2-ar-kit/Cargo.toml index d5ad7b287..ec59c30a9 100644 --- a/framework-crates/objc2-ar-kit/Cargo.toml +++ b/framework-crates/objc2-ar-kit/Cargo.toml @@ -188,6 +188,7 @@ objc2-scene-kit = ["dep:objc2-scene-kit"] objc2-sprite-kit = ["dep:objc2-sprite-kit"] objc2-ui-kit = ["dep:objc2-ui-kit"] objc2-vision = ["dep:objc2-vision"] +unstable-darwin-objc = [] ARAnchor = [] ARAppClipCodeAnchor = [] diff --git a/framework-crates/objc2-ar-kit/src/lib.rs b/framework-crates/objc2-ar-kit/src/lib.rs index 4e3daa697..9a157060e 100644 --- a/framework-crates/objc2-ar-kit/src/lib.rs +++ b/framework-crates/objc2-ar-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/arkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-ar-kit/0.3.1")] diff --git a/framework-crates/objc2-audio-toolbox/Cargo.toml b/framework-crates/objc2-audio-toolbox/Cargo.toml index 5006a4657..f8b61e261 100644 --- a/framework-crates/objc2-audio-toolbox/Cargo.toml +++ b/framework-crates/objc2-audio-toolbox/Cargo.toml @@ -111,6 +111,7 @@ objc2-core-audio = ["dep:objc2-core-audio"] objc2-core-audio-types = ["dep:objc2-core-audio-types"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-midi = ["dep:objc2-core-midi"] +unstable-darwin-objc = [] AUAudioUnit = [ "bitflags", diff --git a/framework-crates/objc2-audio-toolbox/src/lib.rs b/framework-crates/objc2-audio-toolbox/src/lib.rs index fe01d056f..7e3e01b3b 100644 --- a/framework-crates/objc2-audio-toolbox/src/lib.rs +++ b/framework-crates/objc2-audio-toolbox/src/lib.rs @@ -8,6 +8,7 @@ //! [audiounit]: https://developer.apple.com/documentation/audiounit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-audio-toolbox/0.3.1")] diff --git a/framework-crates/objc2-authentication-services/Cargo.toml b/framework-crates/objc2-authentication-services/Cargo.toml index b983400d2..340b01fb5 100644 --- a/framework-crates/objc2-authentication-services/Cargo.toml +++ b/framework-crates/objc2-authentication-services/Cargo.toml @@ -162,6 +162,7 @@ block2 = ["dep:block2"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-local-authentication = ["dep:objc2-local-authentication"] objc2-security = ["dep:objc2-security"] +unstable-darwin-objc = [] ASAccountAuthenticationModificationController = [ "objc2-app-kit/NSResponder", diff --git a/framework-crates/objc2-authentication-services/src/lib.rs b/framework-crates/objc2-authentication-services/src/lib.rs index f534b238e..bf29dfb89 100644 --- a/framework-crates/objc2-authentication-services/src/lib.rs +++ b/framework-crates/objc2-authentication-services/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/authenticationservices/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-authentication-services/0.3.1")] diff --git a/framework-crates/objc2-automatic-assessment-configuration/Cargo.toml b/framework-crates/objc2-automatic-assessment-configuration/Cargo.toml index fbf136c91..df3dffba6 100644 --- a/framework-crates/objc2-automatic-assessment-configuration/Cargo.toml +++ b/framework-crates/objc2-automatic-assessment-configuration/Cargo.toml @@ -41,3 +41,4 @@ targets = [ default = ["std"] std = ["alloc"] alloc = [] +unstable-darwin-objc = [] diff --git a/framework-crates/objc2-automatic-assessment-configuration/src/lib.rs b/framework-crates/objc2-automatic-assessment-configuration/src/lib.rs index 0d4bb4f36..205a67bc7 100644 --- a/framework-crates/objc2-automatic-assessment-configuration/src/lib.rs +++ b/framework-crates/objc2-automatic-assessment-configuration/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/automaticassessmentconfiguration/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-automatic-assessment-configuration/0.3.1")] diff --git a/framework-crates/objc2-automator/Cargo.toml b/framework-crates/objc2-automator/Cargo.toml index cbe07085f..2bc5d827e 100644 --- a/framework-crates/objc2-automator/Cargo.toml +++ b/framework-crates/objc2-automator/Cargo.toml @@ -66,6 +66,7 @@ alloc = [] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-osa-kit = ["dep:objc2-osa-kit"] +unstable-darwin-objc = [] AMAction = [ "objc2-foundation/NSDictionary", diff --git a/framework-crates/objc2-automator/src/lib.rs b/framework-crates/objc2-automator/src/lib.rs index 2afbc2746..32c5c6da5 100644 --- a/framework-crates/objc2-automator/src/lib.rs +++ b/framework-crates/objc2-automator/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/automator/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-automator/0.3.1")] diff --git a/framework-crates/objc2-av-foundation/Cargo.toml b/framework-crates/objc2-av-foundation/Cargo.toml index c97ad6176..b5e6291a5 100644 --- a/framework-crates/objc2-av-foundation/Cargo.toml +++ b/framework-crates/objc2-av-foundation/Cargo.toml @@ -286,6 +286,7 @@ objc2-image-io = ["dep:objc2-image-io"] objc2-media-toolbox = ["dep:objc2-media-toolbox"] objc2-quartz-core = ["dep:objc2-quartz-core"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] AVAnimation = ["objc2-foundation/NSString"] AVAsset = [ diff --git a/framework-crates/objc2-av-foundation/src/lib.rs b/framework-crates/objc2-av-foundation/src/lib.rs index 8c5e98611..6e4b842e8 100644 --- a/framework-crates/objc2-av-foundation/src/lib.rs +++ b/framework-crates/objc2-av-foundation/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/avfoundation/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-av-foundation/0.3.1")] diff --git a/framework-crates/objc2-av-kit/Cargo.toml b/framework-crates/objc2-av-kit/Cargo.toml index 1ae53d32f..3361b77f9 100644 --- a/framework-crates/objc2-av-kit/Cargo.toml +++ b/framework-crates/objc2-av-kit/Cargo.toml @@ -100,6 +100,7 @@ objc2-av-foundation = ["dep:objc2-av-foundation"] objc2-av-routing = ["dep:objc2-av-routing"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-media = ["dep:objc2-core-media"] +unstable-darwin-objc = [] AVCaptureView = [ "objc2-foundation/NSCoder", diff --git a/framework-crates/objc2-av-kit/src/lib.rs b/framework-crates/objc2-av-kit/src/lib.rs index 56501ec8c..197781776 100644 --- a/framework-crates/objc2-av-kit/src/lib.rs +++ b/framework-crates/objc2-av-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/avkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-av-kit/0.3.1")] diff --git a/framework-crates/objc2-av-routing/Cargo.toml b/framework-crates/objc2-av-routing/Cargo.toml index 956a0a1fc..396c0bd99 100644 --- a/framework-crates/objc2-av-routing/Cargo.toml +++ b/framework-crates/objc2-av-routing/Cargo.toml @@ -48,6 +48,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] AVCustomDeviceRoute = ["objc2-foundation/NSUUID"] AVCustomRoutingActionItem = ["objc2-foundation/NSString"] diff --git a/framework-crates/objc2-av-routing/src/lib.rs b/framework-crates/objc2-av-routing/src/lib.rs index b3b5dec0f..ab6720025 100644 --- a/framework-crates/objc2-av-routing/src/lib.rs +++ b/framework-crates/objc2-av-routing/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/avrouting/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-av-routing/0.3.1")] diff --git a/framework-crates/objc2-avf-audio/Cargo.toml b/framework-crates/objc2-avf-audio/Cargo.toml index 412926aa5..269c83682 100644 --- a/framework-crates/objc2-avf-audio/Cargo.toml +++ b/framework-crates/objc2-avf-audio/Cargo.toml @@ -120,6 +120,7 @@ objc2-audio-toolbox = ["dep:objc2-audio-toolbox"] objc2-core-audio-types = ["dep:objc2-core-audio-types"] objc2-core-media = ["dep:objc2-core-media"] objc2-core-midi = ["dep:objc2-core-midi"] +unstable-darwin-objc = [] AVAudioApplication = [ "objc2-foundation/NSError", diff --git a/framework-crates/objc2-avf-audio/src/lib.rs b/framework-crates/objc2-avf-audio/src/lib.rs index 15c10b5d2..0f094e7fb 100644 --- a/framework-crates/objc2-avf-audio/src/lib.rs +++ b/framework-crates/objc2-avf-audio/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/avfaudio/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-avf-audio/0.3.1")] diff --git a/framework-crates/objc2-background-assets/Cargo.toml b/framework-crates/objc2-background-assets/Cargo.toml index 3db91d931..851dd574a 100644 --- a/framework-crates/objc2-background-assets/Cargo.toml +++ b/framework-crates/objc2-background-assets/Cargo.toml @@ -57,6 +57,7 @@ std = ["alloc"] alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] +unstable-darwin-objc = [] BAAppExtensionInfo = [ "objc2-foundation/NSObject", diff --git a/framework-crates/objc2-background-assets/src/lib.rs b/framework-crates/objc2-background-assets/src/lib.rs index 3a247729e..0fe43f4db 100644 --- a/framework-crates/objc2-background-assets/src/lib.rs +++ b/framework-crates/objc2-background-assets/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/backgroundassets/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-background-assets/0.3.1")] diff --git a/framework-crates/objc2-background-tasks/Cargo.toml b/framework-crates/objc2-background-tasks/Cargo.toml index 7bef37494..635b9118c 100644 --- a/framework-crates/objc2-background-tasks/Cargo.toml +++ b/framework-crates/objc2-background-tasks/Cargo.toml @@ -52,6 +52,7 @@ alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] +unstable-darwin-objc = [] BGDefines = [] BGTask = [ diff --git a/framework-crates/objc2-background-tasks/src/lib.rs b/framework-crates/objc2-background-tasks/src/lib.rs index 89d5ed09d..ca8e8ea04 100644 --- a/framework-crates/objc2-background-tasks/src/lib.rs +++ b/framework-crates/objc2-background-tasks/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/backgroundtasks/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-background-tasks/0.3.1")] diff --git a/framework-crates/objc2-browser-engine-core/Cargo.toml b/framework-crates/objc2-browser-engine-core/Cargo.toml index 465c38f5f..56db7be98 100644 --- a/framework-crates/objc2-browser-engine-core/Cargo.toml +++ b/framework-crates/objc2-browser-engine-core/Cargo.toml @@ -53,6 +53,7 @@ libc = ["dep:libc"] objc2 = ["dep:objc2"] objc2-avf-audio = ["dep:objc2-avf-audio"] objc2-foundation = ["dep:objc2-foundation"] +unstable-darwin-objc = [] BEAudioSession = [] BEMemory = [] diff --git a/framework-crates/objc2-browser-engine-core/src/lib.rs b/framework-crates/objc2-browser-engine-core/src/lib.rs index 723404f93..9ec5bd074 100644 --- a/framework-crates/objc2-browser-engine-core/src/lib.rs +++ b/framework-crates/objc2-browser-engine-core/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/browserenginecore/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-browser-engine-core/0.3.1")] diff --git a/framework-crates/objc2-browser-engine-kit/Cargo.toml b/framework-crates/objc2-browser-engine-kit/Cargo.toml index 9b106c727..161057759 100644 --- a/framework-crates/objc2-browser-engine-kit/Cargo.toml +++ b/framework-crates/objc2-browser-engine-kit/Cargo.toml @@ -89,6 +89,7 @@ objc2-av-foundation = ["dep:objc2-av-foundation"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-quartz-core = ["dep:objc2-quartz-core"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] BEAccessibility = [ "bitflags", diff --git a/framework-crates/objc2-browser-engine-kit/src/lib.rs b/framework-crates/objc2-browser-engine-kit/src/lib.rs index 135aa4ae8..6f566c535 100644 --- a/framework-crates/objc2-browser-engine-kit/src/lib.rs +++ b/framework-crates/objc2-browser-engine-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/browserenginekit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-browser-engine-kit/0.3.1")] diff --git a/framework-crates/objc2-business-chat/Cargo.toml b/framework-crates/objc2-business-chat/Cargo.toml index 8035325a4..4eedfb541 100644 --- a/framework-crates/objc2-business-chat/Cargo.toml +++ b/framework-crates/objc2-business-chat/Cargo.toml @@ -40,6 +40,7 @@ default = [ ] std = ["alloc"] alloc = [] +unstable-darwin-objc = [] BCChatAction = [ "objc2-foundation/NSDictionary", diff --git a/framework-crates/objc2-business-chat/src/lib.rs b/framework-crates/objc2-business-chat/src/lib.rs index 667c1a87c..f93ffbfaf 100644 --- a/framework-crates/objc2-business-chat/src/lib.rs +++ b/framework-crates/objc2-business-chat/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/businesschat/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-business-chat/0.3.1")] diff --git a/framework-crates/objc2-call-kit/Cargo.toml b/framework-crates/objc2-call-kit/Cargo.toml index 1bc4abd41..bb96e2bee 100644 --- a/framework-crates/objc2-call-kit/Cargo.toml +++ b/framework-crates/objc2-call-kit/Cargo.toml @@ -72,6 +72,7 @@ alloc = [] block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] objc2-avf-audio = ["dep:objc2-avf-audio"] +unstable-darwin-objc = [] CXAction = [ "objc2-foundation/NSCoder", diff --git a/framework-crates/objc2-call-kit/src/lib.rs b/framework-crates/objc2-call-kit/src/lib.rs index 6d25e55e9..b0df5bd22 100644 --- a/framework-crates/objc2-call-kit/src/lib.rs +++ b/framework-crates/objc2-call-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/callkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-call-kit/0.3.1")] diff --git a/framework-crates/objc2-car-play/Cargo.toml b/framework-crates/objc2-car-play/Cargo.toml index 4ff49a587..0ad5eaaf7 100644 --- a/framework-crates/objc2-car-play/Cargo.toml +++ b/framework-crates/objc2-car-play/Cargo.toml @@ -142,6 +142,7 @@ objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-map-kit = ["dep:objc2-map-kit"] objc2-quartz-core = ["dep:objc2-quartz-core"] objc2-ui-kit = ["dep:objc2-ui-kit"] +unstable-darwin-objc = [] CPActionSheetTemplate = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-car-play/src/lib.rs b/framework-crates/objc2-car-play/src/lib.rs index bb983d5d9..c4644f8c3 100644 --- a/framework-crates/objc2-car-play/src/lib.rs +++ b/framework-crates/objc2-car-play/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/carplay/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-car-play/0.3.1")] diff --git a/framework-crates/objc2-carbon/Cargo.toml b/framework-crates/objc2-carbon/Cargo.toml index 2e6aeaa2b..c919c9498 100644 --- a/framework-crates/objc2-carbon/Cargo.toml +++ b/framework-crates/objc2-carbon/Cargo.toml @@ -29,3 +29,4 @@ targets = [ default = ["std"] std = ["alloc"] alloc = [] +unstable-darwin-objc = [] diff --git a/framework-crates/objc2-carbon/src/lib.rs b/framework-crates/objc2-carbon/src/lib.rs index 2901c9a07..7ea0c15ab 100644 --- a/framework-crates/objc2-carbon/src/lib.rs +++ b/framework-crates/objc2-carbon/src/lib.rs @@ -5,6 +5,7 @@ //! //! [new-issue]: https://github.com/madsmtm/objc2/issues/new #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #[cfg(feature = "alloc")] extern crate alloc; diff --git a/framework-crates/objc2-cf-network/Cargo.toml b/framework-crates/objc2-cf-network/Cargo.toml index 6ea2e0d96..c34003934 100644 --- a/framework-crates/objc2-cf-network/Cargo.toml +++ b/framework-crates/objc2-cf-network/Cargo.toml @@ -56,6 +56,7 @@ objc2 = [ "dep:objc2", "objc2-core-foundation/objc2", ] +unstable-darwin-objc = [] CFFTPStream = [ "objc2-core-foundation/CFDictionary", diff --git a/framework-crates/objc2-cf-network/src/lib.rs b/framework-crates/objc2-cf-network/src/lib.rs index 9b991165e..31a642f3b 100644 --- a/framework-crates/objc2-cf-network/src/lib.rs +++ b/framework-crates/objc2-cf-network/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/cfnetwork/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-cf-network/0.3.1")] diff --git a/framework-crates/objc2-cinematic/Cargo.toml b/framework-crates/objc2-cinematic/Cargo.toml index 3ed7e84a5..783f03391 100644 --- a/framework-crates/objc2-cinematic/Cargo.toml +++ b/framework-crates/objc2-cinematic/Cargo.toml @@ -89,6 +89,7 @@ objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-media = ["dep:objc2-core-media"] objc2-core-video = ["dep:objc2-core-video"] objc2-metal = ["dep:objc2-metal"] +unstable-darwin-objc = [] CNAssetInfo = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-cinematic/src/lib.rs b/framework-crates/objc2-cinematic/src/lib.rs index a62383944..c930c24d4 100644 --- a/framework-crates/objc2-cinematic/src/lib.rs +++ b/framework-crates/objc2-cinematic/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/cinematic/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-cinematic/0.3.1")] diff --git a/framework-crates/objc2-class-kit/Cargo.toml b/framework-crates/objc2-class-kit/Cargo.toml index 026e39aeb..b37e20cd7 100644 --- a/framework-crates/objc2-class-kit/Cargo.toml +++ b/framework-crates/objc2-class-kit/Cargo.toml @@ -57,6 +57,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-core-graphics = ["dep:objc2-core-graphics"] +unstable-darwin-objc = [] CLSActivity = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-class-kit/src/lib.rs b/framework-crates/objc2-class-kit/src/lib.rs index 99a0bd4b3..1d2f185a1 100644 --- a/framework-crates/objc2-class-kit/src/lib.rs +++ b/framework-crates/objc2-class-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/classkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-class-kit/0.3.1")] diff --git a/framework-crates/objc2-clock-kit/Cargo.toml b/framework-crates/objc2-clock-kit/Cargo.toml index 85d6dbcdd..b4d244ec5 100644 --- a/framework-crates/objc2-clock-kit/Cargo.toml +++ b/framework-crates/objc2-clock-kit/Cargo.toml @@ -66,6 +66,7 @@ bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-intents = ["dep:objc2-intents"] objc2-ui-kit = ["dep:objc2-ui-kit"] +unstable-darwin-objc = [] CLKComplication = [ "objc2-foundation/NSDictionary", diff --git a/framework-crates/objc2-clock-kit/src/lib.rs b/framework-crates/objc2-clock-kit/src/lib.rs index 11f62cd2e..014573cba 100644 --- a/framework-crates/objc2-clock-kit/src/lib.rs +++ b/framework-crates/objc2-clock-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/clockkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-clock-kit/0.3.1")] diff --git a/framework-crates/objc2-cloud-kit/Cargo.toml b/framework-crates/objc2-cloud-kit/Cargo.toml index 53b436d90..3050a2cce 100644 --- a/framework-crates/objc2-cloud-kit/Cargo.toml +++ b/framework-crates/objc2-cloud-kit/Cargo.toml @@ -105,6 +105,7 @@ bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-contacts = ["dep:objc2-contacts"] objc2-core-location = ["dep:objc2-core-location"] +unstable-darwin-objc = [] CKAcceptSharesOperation = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-cloud-kit/src/lib.rs b/framework-crates/objc2-cloud-kit/src/lib.rs index f68524bbe..a77c3e689 100644 --- a/framework-crates/objc2-cloud-kit/src/lib.rs +++ b/framework-crates/objc2-cloud-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/cloudkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-cloud-kit/0.3.1")] diff --git a/framework-crates/objc2-collaboration/Cargo.toml b/framework-crates/objc2-collaboration/Cargo.toml index 7d33081e0..65b9b2f85 100644 --- a/framework-crates/objc2-collaboration/Cargo.toml +++ b/framework-crates/objc2-collaboration/Cargo.toml @@ -64,6 +64,7 @@ libc = ["dep:libc"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-services = ["dep:objc2-core-services"] objc2-security = ["dep:objc2-security"] +unstable-darwin-objc = [] CBIdentity = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-collaboration/src/lib.rs b/framework-crates/objc2-collaboration/src/lib.rs index 00eed9cb6..39f6be302 100644 --- a/framework-crates/objc2-collaboration/src/lib.rs +++ b/framework-crates/objc2-collaboration/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/collaboration/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-collaboration/0.3.1")] diff --git a/framework-crates/objc2-color-sync/Cargo.toml b/framework-crates/objc2-color-sync/Cargo.toml index 5f6e2b212..087bfdd88 100644 --- a/framework-crates/objc2-color-sync/Cargo.toml +++ b/framework-crates/objc2-color-sync/Cargo.toml @@ -48,6 +48,7 @@ objc2 = [ "dep:objc2", "objc2-core-foundation/objc2", ] +unstable-darwin-objc = [] ColorSyncBase = [] ColorSyncCMM = [ diff --git a/framework-crates/objc2-color-sync/src/lib.rs b/framework-crates/objc2-color-sync/src/lib.rs index 36cd98a8f..ba3233744 100644 --- a/framework-crates/objc2-color-sync/src/lib.rs +++ b/framework-crates/objc2-color-sync/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/colorsync/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-color-sync/0.3.1")] diff --git a/framework-crates/objc2-compositor-services/Cargo.toml b/framework-crates/objc2-compositor-services/Cargo.toml index 6a8b18c5f..62047d8f6 100644 --- a/framework-crates/objc2-compositor-services/Cargo.toml +++ b/framework-crates/objc2-compositor-services/Cargo.toml @@ -73,6 +73,7 @@ alloc = [] bitflags = ["dep:bitflags"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-metal = ["dep:objc2-metal"] +unstable-darwin-objc = [] cp_base = [] cp_conditionals = [] diff --git a/framework-crates/objc2-compositor-services/src/lib.rs b/framework-crates/objc2-compositor-services/src/lib.rs index 09ce54b0f..c8207cc21 100644 --- a/framework-crates/objc2-compositor-services/src/lib.rs +++ b/framework-crates/objc2-compositor-services/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/compositorservices/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-compositor-services/0.3.1")] diff --git a/framework-crates/objc2-contacts-ui/Cargo.toml b/framework-crates/objc2-contacts-ui/Cargo.toml index 914e60cb0..2102dbec3 100644 --- a/framework-crates/objc2-contacts-ui/Cargo.toml +++ b/framework-crates/objc2-contacts-ui/Cargo.toml @@ -58,6 +58,7 @@ std = ["alloc"] alloc = [] objc2-app-kit = ["dep:objc2-app-kit"] objc2-contacts = ["dep:objc2-contacts"] +unstable-darwin-objc = [] CNContactPicker = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-contacts-ui/src/lib.rs b/framework-crates/objc2-contacts-ui/src/lib.rs index 8c3ceffed..42c8db44d 100644 --- a/framework-crates/objc2-contacts-ui/src/lib.rs +++ b/framework-crates/objc2-contacts-ui/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/contactsui/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-contacts-ui/0.3.1")] diff --git a/framework-crates/objc2-contacts/Cargo.toml b/framework-crates/objc2-contacts/Cargo.toml index d2efa848a..db4284be7 100644 --- a/framework-crates/objc2-contacts/Cargo.toml +++ b/framework-crates/objc2-contacts/Cargo.toml @@ -70,6 +70,7 @@ default = [ std = ["alloc"] alloc = [] block2 = ["dep:block2"] +unstable-darwin-objc = [] CNChangeHistoryEvent = [ "objc2-foundation/NSObject", diff --git a/framework-crates/objc2-contacts/src/lib.rs b/framework-crates/objc2-contacts/src/lib.rs index 5c92a6c0f..8ee157b8f 100644 --- a/framework-crates/objc2-contacts/src/lib.rs +++ b/framework-crates/objc2-contacts/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/contacts/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-contacts/0.3.1")] diff --git a/framework-crates/objc2-core-audio-kit/Cargo.toml b/framework-crates/objc2-core-audio-kit/Cargo.toml index 5ac5f2254..00ee3b49f 100644 --- a/framework-crates/objc2-core-audio-kit/Cargo.toml +++ b/framework-crates/objc2-core-audio-kit/Cargo.toml @@ -83,6 +83,7 @@ block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-audio-toolbox = ["dep:objc2-audio-toolbox"] objc2-core-foundation = ["dep:objc2-core-foundation"] +unstable-darwin-objc = [] AUCustomViewPersistentData = [ "objc2-foundation/NSDictionary", diff --git a/framework-crates/objc2-core-audio-kit/src/lib.rs b/framework-crates/objc2-core-audio-kit/src/lib.rs index d02b40f97..0da2ac71a 100644 --- a/framework-crates/objc2-core-audio-kit/src/lib.rs +++ b/framework-crates/objc2-core-audio-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coreaudiokit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-audio-kit/0.3.1")] diff --git a/framework-crates/objc2-core-audio-types/Cargo.toml b/framework-crates/objc2-core-audio-types/Cargo.toml index 2bb02bda9..1faee385a 100644 --- a/framework-crates/objc2-core-audio-types/Cargo.toml +++ b/framework-crates/objc2-core-audio-types/Cargo.toml @@ -44,6 +44,7 @@ std = ["alloc"] alloc = [] bitflags = ["dep:bitflags"] objc2 = ["dep:objc2"] +unstable-darwin-objc = [] AudioSessionTypes = [] CoreAudioBaseTypes = ["bitflags"] diff --git a/framework-crates/objc2-core-audio-types/src/lib.rs b/framework-crates/objc2-core-audio-types/src/lib.rs index bfa848a8d..248d80b1e 100644 --- a/framework-crates/objc2-core-audio-types/src/lib.rs +++ b/framework-crates/objc2-core-audio-types/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coreaudiotypes/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-audio-types/0.3.1")] diff --git a/framework-crates/objc2-core-audio/Cargo.toml b/framework-crates/objc2-core-audio/Cargo.toml index 3b92641ab..4e7bf9282 100644 --- a/framework-crates/objc2-core-audio/Cargo.toml +++ b/framework-crates/objc2-core-audio/Cargo.toml @@ -70,6 +70,7 @@ objc2 = [ ] objc2-core-audio-types = ["dep:objc2-core-audio-types"] objc2-foundation = ["dep:objc2-foundation"] +unstable-darwin-objc = [] AudioHardware = ["objc2-core-foundation/CFDictionary"] AudioHardwareDeprecated = ["objc2-core-foundation/CFRunLoop"] diff --git a/framework-crates/objc2-core-audio/src/lib.rs b/framework-crates/objc2-core-audio/src/lib.rs index 1d8386457..2956616bd 100644 --- a/framework-crates/objc2-core-audio/src/lib.rs +++ b/framework-crates/objc2-core-audio/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coreaudio/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-audio/0.3.1")] diff --git a/framework-crates/objc2-core-bluetooth/Cargo.toml b/framework-crates/objc2-core-bluetooth/Cargo.toml index 879adf28a..d545bb7a1 100644 --- a/framework-crates/objc2-core-bluetooth/Cargo.toml +++ b/framework-crates/objc2-core-bluetooth/Cargo.toml @@ -72,6 +72,7 @@ alloc = [] bitflags = ["dep:bitflags"] dispatch2 = ["dep:dispatch2"] objc2-core-foundation = ["dep:objc2-core-foundation"] +unstable-darwin-objc = [] CBATTRequest = ["objc2-foundation/NSData"] CBAdvertisementData = ["objc2-foundation/NSString"] diff --git a/framework-crates/objc2-core-bluetooth/src/lib.rs b/framework-crates/objc2-core-bluetooth/src/lib.rs index 9c084eb02..88de7321b 100644 --- a/framework-crates/objc2-core-bluetooth/src/lib.rs +++ b/framework-crates/objc2-core-bluetooth/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/corebluetooth/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-bluetooth/0.3.1")] diff --git a/framework-crates/objc2-core-data/Cargo.toml b/framework-crates/objc2-core-data/Cargo.toml index a7a433cca..5339dcdb3 100644 --- a/framework-crates/objc2-core-data/Cargo.toml +++ b/framework-crates/objc2-core-data/Cargo.toml @@ -139,6 +139,7 @@ bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-cloud-kit = ["dep:objc2-cloud-kit"] objc2-core-spotlight = ["dep:objc2-core-spotlight"] +unstable-darwin-objc = [] CloudKit = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-core-data/src/lib.rs b/framework-crates/objc2-core-data/src/lib.rs index fa218e753..db7cb1a2f 100644 --- a/framework-crates/objc2-core-data/src/lib.rs +++ b/framework-crates/objc2-core-data/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coredata/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-data/0.3.1")] diff --git a/framework-crates/objc2-core-foundation/Cargo.toml b/framework-crates/objc2-core-foundation/Cargo.toml index 16aa9b4fe..f235f792d 100644 --- a/framework-crates/objc2-core-foundation/Cargo.toml +++ b/framework-crates/objc2-core-foundation/Cargo.toml @@ -103,6 +103,7 @@ objc2 = [ "dep:objc2", "dispatch2?/objc2", ] +unstable-darwin-objc = [] CFArray = [] CFAttributedString = [] diff --git a/framework-crates/objc2-core-foundation/src/lib.rs b/framework-crates/objc2-core-foundation/src/lib.rs index 25e1f8c5f..0e2e3c55f 100644 --- a/framework-crates/objc2-core-foundation/src/lib.rs +++ b/framework-crates/objc2-core-foundation/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/corefoundation/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(feature = "unstable-coerce-pointee", feature(derive_coerce_pointee))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. diff --git a/framework-crates/objc2-core-graphics/Cargo.toml b/framework-crates/objc2-core-graphics/Cargo.toml index 4dc96af6c..7383b6d2e 100644 --- a/framework-crates/objc2-core-graphics/Cargo.toml +++ b/framework-crates/objc2-core-graphics/Cargo.toml @@ -114,6 +114,7 @@ objc2 = [ ] objc2-io-surface = ["dep:objc2-io-surface"] objc2-metal = ["dep:objc2-metal"] +unstable-darwin-objc = [] CGAffineTransform = ["objc2-core-foundation/CFCGTypes"] CGBase = [] diff --git a/framework-crates/objc2-core-graphics/src/lib.rs b/framework-crates/objc2-core-graphics/src/lib.rs index caf614893..9c6ab4dca 100644 --- a/framework-crates/objc2-core-graphics/src/lib.rs +++ b/framework-crates/objc2-core-graphics/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coregraphics/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-graphics/0.3.1")] diff --git a/framework-crates/objc2-core-haptics/Cargo.toml b/framework-crates/objc2-core-haptics/Cargo.toml index 06a754314..6237d4ae5 100644 --- a/framework-crates/objc2-core-haptics/Cargo.toml +++ b/framework-crates/objc2-core-haptics/Cargo.toml @@ -49,6 +49,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-avf-audio = ["dep:objc2-avf-audio"] +unstable-darwin-objc = [] CHHapticDeviceCapability = [ "objc2-foundation/NSError", diff --git a/framework-crates/objc2-core-haptics/src/lib.rs b/framework-crates/objc2-core-haptics/src/lib.rs index e62997b71..af532d271 100644 --- a/framework-crates/objc2-core-haptics/src/lib.rs +++ b/framework-crates/objc2-core-haptics/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/corehaptics/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-haptics/0.3.1")] diff --git a/framework-crates/objc2-core-image/Cargo.toml b/framework-crates/objc2-core-image/Cargo.toml index 5eb7d9ef5..f49f6045d 100644 --- a/framework-crates/objc2-core-image/Cargo.toml +++ b/framework-crates/objc2-core-image/Cargo.toml @@ -128,6 +128,7 @@ objc2-image-io = ["dep:objc2-image-io"] objc2-io-surface = ["dep:objc2-io-surface"] objc2-metal = ["dep:objc2-metal"] objc2-open-gl = ["dep:objc2-open-gl"] +unstable-darwin-objc = [] CIBarcodeDescriptor = [ "objc2-foundation/NSData", diff --git a/framework-crates/objc2-core-image/src/lib.rs b/framework-crates/objc2-core-image/src/lib.rs index 22153d932..743de5995 100644 --- a/framework-crates/objc2-core-image/src/lib.rs +++ b/framework-crates/objc2-core-image/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coreimage/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-image/0.3.1")] diff --git a/framework-crates/objc2-core-location-ui/Cargo.toml b/framework-crates/objc2-core-location-ui/Cargo.toml index 90c15dc3b..1f5210fc7 100644 --- a/framework-crates/objc2-core-location-ui/Cargo.toml +++ b/framework-crates/objc2-core-location-ui/Cargo.toml @@ -60,6 +60,7 @@ alloc = [] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-quartz-core = ["dep:objc2-quartz-core"] objc2-ui-kit = ["dep:objc2-ui-kit"] +unstable-darwin-objc = [] CLLocationButton = [ "objc2-foundation/NSCoder", diff --git a/framework-crates/objc2-core-location-ui/src/lib.rs b/framework-crates/objc2-core-location-ui/src/lib.rs index fd610b24b..ce3e4b151 100644 --- a/framework-crates/objc2-core-location-ui/src/lib.rs +++ b/framework-crates/objc2-core-location-ui/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/corelocationui/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-location-ui/0.3.1")] diff --git a/framework-crates/objc2-core-location/Cargo.toml b/framework-crates/objc2-core-location/Cargo.toml index 120d2ebe4..62ab78962 100644 --- a/framework-crates/objc2-core-location/Cargo.toml +++ b/framework-crates/objc2-core-location/Cargo.toml @@ -83,6 +83,7 @@ CLLocation = [ block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] objc2-contacts = ["dep:objc2-contacts"] +unstable-darwin-objc = [] CLAvailability = [] CLBackgroundActivitySession = [] diff --git a/framework-crates/objc2-core-location/src/lib.rs b/framework-crates/objc2-core-location/src/lib.rs index a90d2d44e..a19c1f153 100644 --- a/framework-crates/objc2-core-location/src/lib.rs +++ b/framework-crates/objc2-core-location/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/corelocation/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-location/0.3.1")] diff --git a/framework-crates/objc2-core-media-io/Cargo.toml b/framework-crates/objc2-core-media-io/Cargo.toml index 2ecce9e81..615417840 100644 --- a/framework-crates/objc2-core-media-io/Cargo.toml +++ b/framework-crates/objc2-core-media-io/Cargo.toml @@ -83,6 +83,7 @@ libc = ["dep:libc"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-media = ["dep:objc2-core-media"] objc2-core-video = ["dep:objc2-core-video"] +unstable-darwin-objc = [] CMIOExtension = [] CMIOExtensionDevice = [ diff --git a/framework-crates/objc2-core-media-io/src/lib.rs b/framework-crates/objc2-core-media-io/src/lib.rs index 9f0493960..79a353d96 100644 --- a/framework-crates/objc2-core-media-io/src/lib.rs +++ b/framework-crates/objc2-core-media-io/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coremediaio/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-media-io/0.3.1")] diff --git a/framework-crates/objc2-core-media/Cargo.toml b/framework-crates/objc2-core-media/Cargo.toml index c3631c2ea..0abef50aa 100644 --- a/framework-crates/objc2-core-media/Cargo.toml +++ b/framework-crates/objc2-core-media/Cargo.toml @@ -91,6 +91,7 @@ objc2 = [ objc2-core-audio = ["dep:objc2-core-audio"] objc2-core-audio-types = ["dep:objc2-core-audio-types"] objc2-core-video = ["dep:objc2-core-video"] +unstable-darwin-objc = [] CMAttachment = ["objc2-core-foundation/CFDictionary"] CMAudioClock = [] diff --git a/framework-crates/objc2-core-media/src/lib.rs b/framework-crates/objc2-core-media/src/lib.rs index b665de9c9..9e8fb06ea 100644 --- a/framework-crates/objc2-core-media/src/lib.rs +++ b/framework-crates/objc2-core-media/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coremedia/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-media/0.3.1")] diff --git a/framework-crates/objc2-core-midi/Cargo.toml b/framework-crates/objc2-core-midi/Cargo.toml index afeb0f1ce..5348f4154 100644 --- a/framework-crates/objc2-core-midi/Cargo.toml +++ b/framework-crates/objc2-core-midi/Cargo.toml @@ -89,6 +89,7 @@ objc2 = [ ] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-foundation = ["dep:objc2-foundation"] +unstable-darwin-objc = [] MIDIBluetoothConnection = [] MIDICIDevice = [] diff --git a/framework-crates/objc2-core-midi/src/lib.rs b/framework-crates/objc2-core-midi/src/lib.rs index bf3b0e639..557da74b9 100644 --- a/framework-crates/objc2-core-midi/src/lib.rs +++ b/framework-crates/objc2-core-midi/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coremidi/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-midi/0.3.1")] diff --git a/framework-crates/objc2-core-ml/Cargo.toml b/framework-crates/objc2-core-ml/Cargo.toml index 81204dc7a..7537977b6 100644 --- a/framework-crates/objc2-core-ml/Cargo.toml +++ b/framework-crates/objc2-core-ml/Cargo.toml @@ -146,6 +146,7 @@ objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-core-video = ["dep:objc2-core-video"] objc2-image-io = ["dep:objc2-image-io"] objc2-metal = ["dep:objc2-metal"] +unstable-darwin-objc = [] MLAllComputeDevices = ["objc2-foundation/NSArray"] MLArrayBatchProvider = [ diff --git a/framework-crates/objc2-core-ml/src/lib.rs b/framework-crates/objc2-core-ml/src/lib.rs index fb3b7e61d..0504110b3 100644 --- a/framework-crates/objc2-core-ml/src/lib.rs +++ b/framework-crates/objc2-core-ml/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coreml/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-ml/0.3.1")] diff --git a/framework-crates/objc2-core-motion/Cargo.toml b/framework-crates/objc2-core-motion/Cargo.toml index 64c1bde4c..82bc57a83 100644 --- a/framework-crates/objc2-core-motion/Cargo.toml +++ b/framework-crates/objc2-core-motion/Cargo.toml @@ -80,6 +80,7 @@ alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-core-location = ["dep:objc2-core-location"] +unstable-darwin-objc = [] CMAbsoluteAltitude = ["objc2-foundation/NSObject"] CMAccelerometer = ["objc2-foundation/NSObject"] diff --git a/framework-crates/objc2-core-motion/src/lib.rs b/framework-crates/objc2-core-motion/src/lib.rs index ba04405db..a5a8ac137 100644 --- a/framework-crates/objc2-core-motion/src/lib.rs +++ b/framework-crates/objc2-core-motion/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coremotion/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-motion/0.3.1")] diff --git a/framework-crates/objc2-core-nfc/Cargo.toml b/framework-crates/objc2-core-nfc/Cargo.toml index 34c52746a..a6cfde7ef 100644 --- a/framework-crates/objc2-core-nfc/Cargo.toml +++ b/framework-crates/objc2-core-nfc/Cargo.toml @@ -57,3 +57,4 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] +unstable-darwin-objc = [] diff --git a/framework-crates/objc2-core-nfc/src/lib.rs b/framework-crates/objc2-core-nfc/src/lib.rs index 65821361b..beca1a34c 100644 --- a/framework-crates/objc2-core-nfc/src/lib.rs +++ b/framework-crates/objc2-core-nfc/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/corenfc/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-nfc/0.3.1")] diff --git a/framework-crates/objc2-core-services/Cargo.toml b/framework-crates/objc2-core-services/Cargo.toml index 3a09c9c97..f52f185b0 100644 --- a/framework-crates/objc2-core-services/Cargo.toml +++ b/framework-crates/objc2-core-services/Cargo.toml @@ -106,6 +106,7 @@ objc2 = [ "objc2-security?/objc2", ] objc2-security = ["dep:objc2-security"] +unstable-darwin-objc = [] AE = [] AEDataModel = [] diff --git a/framework-crates/objc2-core-services/src/lib.rs b/framework-crates/objc2-core-services/src/lib.rs index 900b29349..9a5fc97bc 100644 --- a/framework-crates/objc2-core-services/src/lib.rs +++ b/framework-crates/objc2-core-services/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coreservices/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-services/0.2.2")] diff --git a/framework-crates/objc2-core-spotlight/Cargo.toml b/framework-crates/objc2-core-spotlight/Cargo.toml index 16e86694a..f8b27d476 100644 --- a/framework-crates/objc2-core-spotlight/Cargo.toml +++ b/framework-crates/objc2-core-spotlight/Cargo.toml @@ -63,6 +63,7 @@ alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] CSBase = [] CSImportExtension = [ diff --git a/framework-crates/objc2-core-spotlight/src/lib.rs b/framework-crates/objc2-core-spotlight/src/lib.rs index 7ea8e5135..4a375ecd0 100644 --- a/framework-crates/objc2-core-spotlight/src/lib.rs +++ b/framework-crates/objc2-core-spotlight/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/corespotlight/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-spotlight/0.3.1")] diff --git a/framework-crates/objc2-core-telephony/Cargo.toml b/framework-crates/objc2-core-telephony/Cargo.toml index 0fd96a5c0..2d103ca32 100644 --- a/framework-crates/objc2-core-telephony/Cargo.toml +++ b/framework-crates/objc2-core-telephony/Cargo.toml @@ -50,6 +50,7 @@ default = [ std = ["alloc"] alloc = [] block2 = ["dep:block2"] +unstable-darwin-objc = [] CTCall = ["objc2-foundation/NSString"] CTCallCenter = ["objc2-foundation/NSSet"] diff --git a/framework-crates/objc2-core-telephony/src/lib.rs b/framework-crates/objc2-core-telephony/src/lib.rs index 8b8820886..f9c2f583f 100644 --- a/framework-crates/objc2-core-telephony/src/lib.rs +++ b/framework-crates/objc2-core-telephony/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coretelephony/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-telephony/0.3.1")] diff --git a/framework-crates/objc2-core-text/Cargo.toml b/framework-crates/objc2-core-text/Cargo.toml index b4a834875..47344d523 100644 --- a/framework-crates/objc2-core-text/Cargo.toml +++ b/framework-crates/objc2-core-text/Cargo.toml @@ -81,6 +81,7 @@ objc2 = [ "objc2-core-graphics?/objc2", ] objc2-core-graphics = ["dep:objc2-core-graphics"] +unstable-darwin-objc = [] CTDefines = [] CTFont = [ diff --git a/framework-crates/objc2-core-text/src/lib.rs b/framework-crates/objc2-core-text/src/lib.rs index 3f6692f36..e4e3686c0 100644 --- a/framework-crates/objc2-core-text/src/lib.rs +++ b/framework-crates/objc2-core-text/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/coretext/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-text/0.3.1")] diff --git a/framework-crates/objc2-core-video/Cargo.toml b/framework-crates/objc2-core-video/Cargo.toml index 3a2805aa8..5919480d0 100644 --- a/framework-crates/objc2-core-video/Cargo.toml +++ b/framework-crates/objc2-core-video/Cargo.toml @@ -97,6 +97,7 @@ objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-io-surface = ["dep:objc2-io-surface"] objc2-metal = ["dep:objc2-metal"] objc2-open-gl = ["dep:objc2-open-gl"] +unstable-darwin-objc = [] CVBase = ["bitflags"] CVBuffer = ["objc2-core-foundation/CFDictionary"] diff --git a/framework-crates/objc2-core-video/src/lib.rs b/framework-crates/objc2-core-video/src/lib.rs index ce6eec908..62658e20c 100644 --- a/framework-crates/objc2-core-video/src/lib.rs +++ b/framework-crates/objc2-core-video/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/corevideo/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-video/0.3.1")] diff --git a/framework-crates/objc2-core-wlan/Cargo.toml b/framework-crates/objc2-core-wlan/Cargo.toml index a8281c858..d2f40b214 100644 --- a/framework-crates/objc2-core-wlan/Cargo.toml +++ b/framework-crates/objc2-core-wlan/Cargo.toml @@ -62,6 +62,7 @@ bitflags = ["dep:bitflags"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-security = ["dep:objc2-security"] objc2-security-foundation = ["dep:objc2-security-foundation"] +unstable-darwin-objc = [] CWChannel = ["objc2-foundation/NSObject"] CWConfiguration = [ diff --git a/framework-crates/objc2-core-wlan/src/lib.rs b/framework-crates/objc2-core-wlan/src/lib.rs index bdb960193..3a134aa19 100644 --- a/framework-crates/objc2-core-wlan/src/lib.rs +++ b/framework-crates/objc2-core-wlan/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/corewlan/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-core-wlan/0.3.1")] diff --git a/framework-crates/objc2-crypto-token-kit/Cargo.toml b/framework-crates/objc2-crypto-token-kit/Cargo.toml index 5b499f410..f599323b5 100644 --- a/framework-crates/objc2-crypto-token-kit/Cargo.toml +++ b/framework-crates/objc2-crypto-token-kit/Cargo.toml @@ -63,6 +63,7 @@ alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-security = ["dep:objc2-security"] +unstable-darwin-objc = [] TKBase = [] TKError = ["objc2-foundation/NSString"] diff --git a/framework-crates/objc2-crypto-token-kit/src/lib.rs b/framework-crates/objc2-crypto-token-kit/src/lib.rs index 848088283..abc7aa9f5 100644 --- a/framework-crates/objc2-crypto-token-kit/src/lib.rs +++ b/framework-crates/objc2-crypto-token-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/cryptotokenkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-crypto-token-kit/0.3.1")] diff --git a/framework-crates/objc2-data-detection/Cargo.toml b/framework-crates/objc2-data-detection/Cargo.toml index c59f335ff..87e0cf824 100644 --- a/framework-crates/objc2-data-detection/Cargo.toml +++ b/framework-crates/objc2-data-detection/Cargo.toml @@ -40,6 +40,7 @@ default = [ ] std = ["alloc"] alloc = [] +unstable-darwin-objc = [] DDMatch = [ "objc2-foundation/NSDate", diff --git a/framework-crates/objc2-data-detection/src/lib.rs b/framework-crates/objc2-data-detection/src/lib.rs index b884b5485..37dc118ba 100644 --- a/framework-crates/objc2-data-detection/src/lib.rs +++ b/framework-crates/objc2-data-detection/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/datadetection/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-data-detection/0.3.1")] diff --git a/framework-crates/objc2-device-check/Cargo.toml b/framework-crates/objc2-device-check/Cargo.toml index c598880c3..c0ee8d1ba 100644 --- a/framework-crates/objc2-device-check/Cargo.toml +++ b/framework-crates/objc2-device-check/Cargo.toml @@ -44,6 +44,7 @@ default = [ std = ["alloc"] alloc = [] block2 = ["dep:block2"] +unstable-darwin-objc = [] DCAppAttestService = [ "objc2-foundation/NSData", diff --git a/framework-crates/objc2-device-check/src/lib.rs b/framework-crates/objc2-device-check/src/lib.rs index c66340352..d34d801f4 100644 --- a/framework-crates/objc2-device-check/src/lib.rs +++ b/framework-crates/objc2-device-check/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/devicecheck/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-device-check/0.3.1")] diff --git a/framework-crates/objc2-device-discovery-extension/Cargo.toml b/framework-crates/objc2-device-discovery-extension/Cargo.toml index 92dae2290..8a2796b6c 100644 --- a/framework-crates/objc2-device-discovery-extension/Cargo.toml +++ b/framework-crates/objc2-device-discovery-extension/Cargo.toml @@ -49,6 +49,7 @@ alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] DDCommon = [] DDDevice = [ diff --git a/framework-crates/objc2-device-discovery-extension/src/lib.rs b/framework-crates/objc2-device-discovery-extension/src/lib.rs index 6e8e6717d..5be53759d 100644 --- a/framework-crates/objc2-device-discovery-extension/src/lib.rs +++ b/framework-crates/objc2-device-discovery-extension/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/devicediscoveryextension/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-device-discovery-extension/0.3.1")] diff --git a/framework-crates/objc2-disk-arbitration/Cargo.toml b/framework-crates/objc2-disk-arbitration/Cargo.toml index 16ffe0317..b36d822bb 100644 --- a/framework-crates/objc2-disk-arbitration/Cargo.toml +++ b/framework-crates/objc2-disk-arbitration/Cargo.toml @@ -53,6 +53,7 @@ objc2 = [ "dispatch2?/objc2", "objc2-core-foundation/objc2", ] +unstable-darwin-objc = [] DADisk = [ "objc2-core-foundation/CFDictionary", diff --git a/framework-crates/objc2-disk-arbitration/src/lib.rs b/framework-crates/objc2-disk-arbitration/src/lib.rs index 01274404d..c9ac22e5a 100644 --- a/framework-crates/objc2-disk-arbitration/src/lib.rs +++ b/framework-crates/objc2-disk-arbitration/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/diskarbitration/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-disk-arbitration/0.3.1")] diff --git a/framework-crates/objc2-event-kit-ui/Cargo.toml b/framework-crates/objc2-event-kit-ui/Cargo.toml index 457c3f66b..febf28804 100644 --- a/framework-crates/objc2-event-kit-ui/Cargo.toml +++ b/framework-crates/objc2-event-kit-ui/Cargo.toml @@ -60,6 +60,7 @@ std = ["alloc"] alloc = [] objc2-event-kit = ["dep:objc2-event-kit"] objc2-ui-kit = ["dep:objc2-ui-kit"] +unstable-darwin-objc = [] EKCalendarChooser = [ "objc2-foundation/NSBundle", diff --git a/framework-crates/objc2-event-kit-ui/src/lib.rs b/framework-crates/objc2-event-kit-ui/src/lib.rs index 0c215fe7d..3913d8112 100644 --- a/framework-crates/objc2-event-kit-ui/src/lib.rs +++ b/framework-crates/objc2-event-kit-ui/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/eventkitui/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-event-kit-ui/0.3.1")] diff --git a/framework-crates/objc2-event-kit/Cargo.toml b/framework-crates/objc2-event-kit/Cargo.toml index f54f27c02..39394e06d 100644 --- a/framework-crates/objc2-event-kit/Cargo.toml +++ b/framework-crates/objc2-event-kit/Cargo.toml @@ -78,6 +78,7 @@ objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-core-location = ["dep:objc2-core-location"] objc2-map-kit = ["dep:objc2-map-kit"] +unstable-darwin-objc = [] EKAlarm = [ "objc2-foundation/NSDate", diff --git a/framework-crates/objc2-event-kit/src/lib.rs b/framework-crates/objc2-event-kit/src/lib.rs index 4186c34a7..bcb3ad7dc 100644 --- a/framework-crates/objc2-event-kit/src/lib.rs +++ b/framework-crates/objc2-event-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/eventkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-event-kit/0.3.1")] diff --git a/framework-crates/objc2-exception-handling/Cargo.toml b/framework-crates/objc2-exception-handling/Cargo.toml index 5346a8bc1..badf61836 100644 --- a/framework-crates/objc2-exception-handling/Cargo.toml +++ b/framework-crates/objc2-exception-handling/Cargo.toml @@ -36,6 +36,7 @@ default = [ ] std = ["alloc"] alloc = [] +unstable-darwin-objc = [] ExceptionHandlingDefines = [] NSExceptionHandler = [ diff --git a/framework-crates/objc2-exception-handling/src/lib.rs b/framework-crates/objc2-exception-handling/src/lib.rs index 1d8d7f673..4a796797a 100644 --- a/framework-crates/objc2-exception-handling/src/lib.rs +++ b/framework-crates/objc2-exception-handling/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/exceptionhandling/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-exception-handling/0.3.1")] diff --git a/framework-crates/objc2-execution-policy/Cargo.toml b/framework-crates/objc2-execution-policy/Cargo.toml index 40d462928..d9adb779c 100644 --- a/framework-crates/objc2-execution-policy/Cargo.toml +++ b/framework-crates/objc2-execution-policy/Cargo.toml @@ -43,6 +43,7 @@ default = [ std = ["alloc"] alloc = [] block2 = ["dep:block2"] +unstable-darwin-objc = [] EPDeveloperTool = [] EPErrors = [ diff --git a/framework-crates/objc2-execution-policy/src/lib.rs b/framework-crates/objc2-execution-policy/src/lib.rs index 6fc646fb6..582dae462 100644 --- a/framework-crates/objc2-execution-policy/src/lib.rs +++ b/framework-crates/objc2-execution-policy/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/executionpolicy/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-execution-policy/0.3.1")] diff --git a/framework-crates/objc2-exposure-notification/Cargo.toml b/framework-crates/objc2-exposure-notification/Cargo.toml index 6e25f2fb3..b6e8874ab 100644 --- a/framework-crates/objc2-exposure-notification/Cargo.toml +++ b/framework-crates/objc2-exposure-notification/Cargo.toml @@ -48,6 +48,7 @@ alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] +unstable-darwin-objc = [] ENCommon = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-exposure-notification/src/lib.rs b/framework-crates/objc2-exposure-notification/src/lib.rs index 975d74c47..8c4cf7e1c 100644 --- a/framework-crates/objc2-exposure-notification/src/lib.rs +++ b/framework-crates/objc2-exposure-notification/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/exposurenotification/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-exposure-notification/0.3.1")] diff --git a/framework-crates/objc2-extension-kit/Cargo.toml b/framework-crates/objc2-extension-kit/Cargo.toml index cb44f9563..b4b3c32a9 100644 --- a/framework-crates/objc2-extension-kit/Cargo.toml +++ b/framework-crates/objc2-extension-kit/Cargo.toml @@ -53,6 +53,7 @@ default = [ std = ["alloc"] alloc = [] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] EXAppExtensionBrowserViewController = [ "objc2-foundation/NSBundle", diff --git a/framework-crates/objc2-extension-kit/src/lib.rs b/framework-crates/objc2-extension-kit/src/lib.rs index bd66d28c2..6d4d00d6d 100644 --- a/framework-crates/objc2-extension-kit/src/lib.rs +++ b/framework-crates/objc2-extension-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/extensionkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-extension-kit/0.3.1")] diff --git a/framework-crates/objc2-external-accessory/Cargo.toml b/framework-crates/objc2-external-accessory/Cargo.toml index 2123fc01a..e636a7709 100644 --- a/framework-crates/objc2-external-accessory/Cargo.toml +++ b/framework-crates/objc2-external-accessory/Cargo.toml @@ -55,6 +55,7 @@ alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] +unstable-darwin-objc = [] EAAccessory = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-external-accessory/src/lib.rs b/framework-crates/objc2-external-accessory/src/lib.rs index 6d768fbf5..9950040da 100644 --- a/framework-crates/objc2-external-accessory/src/lib.rs +++ b/framework-crates/objc2-external-accessory/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/externalaccessory/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-external-accessory/0.3.1")] diff --git a/framework-crates/objc2-file-provider-ui/Cargo.toml b/framework-crates/objc2-file-provider-ui/Cargo.toml index fa2724d89..ea13278dc 100644 --- a/framework-crates/objc2-file-provider-ui/Cargo.toml +++ b/framework-crates/objc2-file-provider-ui/Cargo.toml @@ -55,6 +55,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] FPUIActionExtensionContext = [ "objc2-file-provider/NSFileProviderDomain", diff --git a/framework-crates/objc2-file-provider-ui/src/lib.rs b/framework-crates/objc2-file-provider-ui/src/lib.rs index f459d2439..2e2063f76 100644 --- a/framework-crates/objc2-file-provider-ui/src/lib.rs +++ b/framework-crates/objc2-file-provider-ui/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/fileproviderui/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-file-provider-ui/0.3.1")] diff --git a/framework-crates/objc2-file-provider/Cargo.toml b/framework-crates/objc2-file-provider/Cargo.toml index f07ea4d77..f58186fd7 100644 --- a/framework-crates/objc2-file-provider/Cargo.toml +++ b/framework-crates/objc2-file-provider/Cargo.toml @@ -66,6 +66,7 @@ bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] Extension = [ "bitflags", diff --git a/framework-crates/objc2-file-provider/src/lib.rs b/framework-crates/objc2-file-provider/src/lib.rs index 4ece32154..6e6ae0683 100644 --- a/framework-crates/objc2-file-provider/src/lib.rs +++ b/framework-crates/objc2-file-provider/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/fileprovider/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-file-provider/0.3.1")] diff --git a/framework-crates/objc2-finder-sync/Cargo.toml b/framework-crates/objc2-finder-sync/Cargo.toml index b37d3efca..d6aee53aa 100644 --- a/framework-crates/objc2-finder-sync/Cargo.toml +++ b/framework-crates/objc2-finder-sync/Cargo.toml @@ -56,3 +56,4 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] diff --git a/framework-crates/objc2-finder-sync/src/lib.rs b/framework-crates/objc2-finder-sync/src/lib.rs index b958ac2cc..9ec9cc2af 100644 --- a/framework-crates/objc2-finder-sync/src/lib.rs +++ b/framework-crates/objc2-finder-sync/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/findersync/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-finder-sync/0.3.1")] diff --git a/framework-crates/objc2-foundation/Cargo.toml b/framework-crates/objc2-foundation/Cargo.toml index 26679c4f8..da0eca22f 100644 --- a/framework-crates/objc2-foundation/Cargo.toml +++ b/framework-crates/objc2-foundation/Cargo.toml @@ -257,6 +257,7 @@ block2 = ["dep:block2"] libc = ["dep:libc"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-services = ["dep:objc2-core-services"] +unstable-darwin-objc = [] FoundationErrors = [] FoundationLegacySwiftCompatibility = [] diff --git a/framework-crates/objc2-foundation/src/lib.rs b/framework-crates/objc2-foundation/src/lib.rs index 0056a9de1..13e7755bb 100644 --- a/framework-crates/objc2-foundation/src/lib.rs +++ b/framework-crates/objc2-foundation/src/lib.rs @@ -104,6 +104,7 @@ //! println!("{}", dict.len()); //! ``` #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-foundation/0.3.1")] diff --git a/framework-crates/objc2-fs-kit/Cargo.toml b/framework-crates/objc2-fs-kit/Cargo.toml index 837c8b67a..5b5754c6c 100644 --- a/framework-crates/objc2-fs-kit/Cargo.toml +++ b/framework-crates/objc2-fs-kit/Cargo.toml @@ -61,6 +61,7 @@ alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] libc = ["dep:libc"] +unstable-darwin-objc = [] FSClient = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-fs-kit/src/lib.rs b/framework-crates/objc2-fs-kit/src/lib.rs index eef6da8b1..8fb200fe9 100644 --- a/framework-crates/objc2-fs-kit/src/lib.rs +++ b/framework-crates/objc2-fs-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/fskit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-fs-kit/0.3.1")] diff --git a/framework-crates/objc2-game-controller/Cargo.toml b/framework-crates/objc2-game-controller/Cargo.toml index a9c13bc43..68b74e132 100644 --- a/framework-crates/objc2-game-controller/Cargo.toml +++ b/framework-crates/objc2-game-controller/Cargo.toml @@ -129,6 +129,7 @@ dispatch2 = ["dep:dispatch2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-haptics = ["dep:objc2-core-haptics"] +unstable-darwin-objc = [] GCAxis2DInput = [ "objc2-foundation/NSDate", diff --git a/framework-crates/objc2-game-controller/src/lib.rs b/framework-crates/objc2-game-controller/src/lib.rs index 75d79fb55..8558eb02f 100644 --- a/framework-crates/objc2-game-controller/src/lib.rs +++ b/framework-crates/objc2-game-controller/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/gamecontroller/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-game-controller/0.3.1")] diff --git a/framework-crates/objc2-game-kit/Cargo.toml b/framework-crates/objc2-game-kit/Cargo.toml index 31d1d30de..7cbc4918c 100644 --- a/framework-crates/objc2-game-kit/Cargo.toml +++ b/framework-crates/objc2-game-kit/Cargo.toml @@ -107,6 +107,7 @@ alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] GKAccessPoint = [ "objc2-foundation/NSGeometry", diff --git a/framework-crates/objc2-game-kit/src/lib.rs b/framework-crates/objc2-game-kit/src/lib.rs index 550498950..ce1157436 100644 --- a/framework-crates/objc2-game-kit/src/lib.rs +++ b/framework-crates/objc2-game-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/gamekit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-game-kit/0.3.1")] diff --git a/framework-crates/objc2-gameplay-kit/Cargo.toml b/framework-crates/objc2-gameplay-kit/Cargo.toml index c7133701e..90ee01b7d 100644 --- a/framework-crates/objc2-gameplay-kit/Cargo.toml +++ b/framework-crates/objc2-gameplay-kit/Cargo.toml @@ -124,6 +124,7 @@ objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-scene-kit = ["dep:objc2-scene-kit"] objc2-sprite-kit = ["dep:objc2-sprite-kit"] +unstable-darwin-objc = [] GKAgent = [ "objc2-foundation/NSDate", diff --git a/framework-crates/objc2-gameplay-kit/src/lib.rs b/framework-crates/objc2-gameplay-kit/src/lib.rs index e08e50f9b..e110fd831 100644 --- a/framework-crates/objc2-gameplay-kit/src/lib.rs +++ b/framework-crates/objc2-gameplay-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/gameplaykit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-gameplay-kit/0.3.1")] diff --git a/framework-crates/objc2-gl-kit/Cargo.toml b/framework-crates/objc2-gl-kit/Cargo.toml index 3e1253553..e71d3d432 100644 --- a/framework-crates/objc2-gl-kit/Cargo.toml +++ b/framework-crates/objc2-gl-kit/Cargo.toml @@ -97,6 +97,7 @@ objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-model-io = ["dep:objc2-model-io"] objc2-open-gl = ["dep:objc2-open-gl"] +unstable-darwin-objc = [] GLKBaseEffect = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-gl-kit/src/lib.rs b/framework-crates/objc2-gl-kit/src/lib.rs index 6df7bb1c2..4736380f0 100644 --- a/framework-crates/objc2-gl-kit/src/lib.rs +++ b/framework-crates/objc2-gl-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/glkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-gl-kit/0.3.1")] diff --git a/framework-crates/objc2-health-kit-ui/Cargo.toml b/framework-crates/objc2-health-kit-ui/Cargo.toml index 899dda007..97369193f 100644 --- a/framework-crates/objc2-health-kit-ui/Cargo.toml +++ b/framework-crates/objc2-health-kit-ui/Cargo.toml @@ -56,6 +56,7 @@ alloc = [] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-health-kit = ["dep:objc2-health-kit"] objc2-quartz-core = ["dep:objc2-quartz-core"] +unstable-darwin-objc = [] HKActivityRingView = [ "objc2-foundation/NSCoder", diff --git a/framework-crates/objc2-health-kit-ui/src/lib.rs b/framework-crates/objc2-health-kit-ui/src/lib.rs index 6848a3fb1..4c883bdee 100644 --- a/framework-crates/objc2-health-kit-ui/src/lib.rs +++ b/framework-crates/objc2-health-kit-ui/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/healthkitui/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-health-kit-ui/0.3.1")] diff --git a/framework-crates/objc2-health-kit/Cargo.toml b/framework-crates/objc2-health-kit/Cargo.toml index 99e2b7cf4..61be6c252 100644 --- a/framework-crates/objc2-health-kit/Cargo.toml +++ b/framework-crates/objc2-health-kit/Cargo.toml @@ -142,6 +142,7 @@ bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-core-location = ["dep:objc2-core-location"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] HKActivitySummary = [ "objc2-foundation/NSCalendar", diff --git a/framework-crates/objc2-health-kit/src/lib.rs b/framework-crates/objc2-health-kit/src/lib.rs index 132e75130..96afd5735 100644 --- a/framework-crates/objc2-health-kit/src/lib.rs +++ b/framework-crates/objc2-health-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/healthkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-health-kit/0.3.1")] diff --git a/framework-crates/objc2-home-kit/Cargo.toml b/framework-crates/objc2-home-kit/Cargo.toml index 61033f7dc..a6df61b92 100644 --- a/framework-crates/objc2-home-kit/Cargo.toml +++ b/framework-crates/objc2-home-kit/Cargo.toml @@ -125,6 +125,7 @@ objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-location = ["dep:objc2-core-location"] objc2-quartz-core = ["dep:objc2-quartz-core"] objc2-ui-kit = ["dep:objc2-ui-kit"] +unstable-darwin-objc = [] HMAccessControl = [] HMAccessory = [ diff --git a/framework-crates/objc2-home-kit/src/lib.rs b/framework-crates/objc2-home-kit/src/lib.rs index b04b23d93..bfae8afd1 100644 --- a/framework-crates/objc2-home-kit/src/lib.rs +++ b/framework-crates/objc2-home-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/homekit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-home-kit/0.3.1")] diff --git a/framework-crates/objc2-identity-lookup-ui/Cargo.toml b/framework-crates/objc2-identity-lookup-ui/Cargo.toml index 3c9fe1b35..55c7cbbef 100644 --- a/framework-crates/objc2-identity-lookup-ui/Cargo.toml +++ b/framework-crates/objc2-identity-lookup-ui/Cargo.toml @@ -52,6 +52,7 @@ std = ["alloc"] alloc = [] objc2-identity-lookup = ["dep:objc2-identity-lookup"] objc2-ui-kit = ["dep:objc2-ui-kit"] +unstable-darwin-objc = [] ILClassificationUIExtensionContext = ["objc2-foundation/NSExtensionContext"] ILClassificationUIExtensionViewController = [ diff --git a/framework-crates/objc2-identity-lookup-ui/src/lib.rs b/framework-crates/objc2-identity-lookup-ui/src/lib.rs index 878d9e5e3..541edae03 100644 --- a/framework-crates/objc2-identity-lookup-ui/src/lib.rs +++ b/framework-crates/objc2-identity-lookup-ui/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/identitylookupui/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-identity-lookup-ui/0.3.1")] diff --git a/framework-crates/objc2-identity-lookup/Cargo.toml b/framework-crates/objc2-identity-lookup/Cargo.toml index d84a126ca..9987eb077 100644 --- a/framework-crates/objc2-identity-lookup/Cargo.toml +++ b/framework-crates/objc2-identity-lookup/Cargo.toml @@ -59,6 +59,7 @@ default = [ std = ["alloc"] alloc = [] block2 = ["dep:block2"] +unstable-darwin-objc = [] ILBase = [] ILCallClassificationRequest = [ diff --git a/framework-crates/objc2-identity-lookup/src/lib.rs b/framework-crates/objc2-identity-lookup/src/lib.rs index 1ab4f1cde..32b210074 100644 --- a/framework-crates/objc2-identity-lookup/src/lib.rs +++ b/framework-crates/objc2-identity-lookup/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/identitylookup/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-identity-lookup/0.3.1")] diff --git a/framework-crates/objc2-image-capture-core/Cargo.toml b/framework-crates/objc2-image-capture-core/Cargo.toml index bda2f46b8..fffce9d50 100644 --- a/framework-crates/objc2-image-capture-core/Cargo.toml +++ b/framework-crates/objc2-image-capture-core/Cargo.toml @@ -65,6 +65,7 @@ block2 = ["dep:block2"] libc = ["dep:libc"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] +unstable-darwin-objc = [] ICCameraDevice = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-image-capture-core/src/lib.rs b/framework-crates/objc2-image-capture-core/src/lib.rs index 24c39986e..5f17a7b0b 100644 --- a/framework-crates/objc2-image-capture-core/src/lib.rs +++ b/framework-crates/objc2-image-capture-core/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/imagecapturecore/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-image-capture-core/0.3.1")] diff --git a/framework-crates/objc2-image-io/Cargo.toml b/framework-crates/objc2-image-io/Cargo.toml index 59463d804..2bfdd420c 100644 --- a/framework-crates/objc2-image-io/Cargo.toml +++ b/framework-crates/objc2-image-io/Cargo.toml @@ -60,6 +60,7 @@ objc2 = [ "objc2-core-graphics?/objc2", ] objc2-core-graphics = ["dep:objc2-core-graphics"] +unstable-darwin-objc = [] CGImageAnimation = [ "objc2-core-foundation/CFData", diff --git a/framework-crates/objc2-image-io/src/lib.rs b/framework-crates/objc2-image-io/src/lib.rs index 3490a7f02..368dce778 100644 --- a/framework-crates/objc2-image-io/src/lib.rs +++ b/framework-crates/objc2-image-io/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/imageio/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-image-io/0.3.1")] diff --git a/framework-crates/objc2-input-method-kit/Cargo.toml b/framework-crates/objc2-input-method-kit/Cargo.toml index 659c96081..3d0f2f3f4 100644 --- a/framework-crates/objc2-input-method-kit/Cargo.toml +++ b/framework-crates/objc2-input-method-kit/Cargo.toml @@ -43,6 +43,7 @@ default = [ std = ["alloc"] alloc = [] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] IMKCandidates = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-input-method-kit/src/lib.rs b/framework-crates/objc2-input-method-kit/src/lib.rs index 4df55f828..622e251c6 100644 --- a/framework-crates/objc2-input-method-kit/src/lib.rs +++ b/framework-crates/objc2-input-method-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/inputmethodkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-input-method-kit/0.3.1")] diff --git a/framework-crates/objc2-intents-ui/Cargo.toml b/framework-crates/objc2-intents-ui/Cargo.toml index 6820a845a..c9bc5b3ea 100644 --- a/framework-crates/objc2-intents-ui/Cargo.toml +++ b/framework-crates/objc2-intents-ui/Cargo.toml @@ -75,6 +75,7 @@ alloc = [] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-intents = ["dep:objc2-intents"] +unstable-darwin-objc = [] INImage_IntentsUI = [] INUIAddVoiceShortcutButton = [ diff --git a/framework-crates/objc2-intents-ui/src/lib.rs b/framework-crates/objc2-intents-ui/src/lib.rs index 4c18d028c..3ee868941 100644 --- a/framework-crates/objc2-intents-ui/src/lib.rs +++ b/framework-crates/objc2-intents-ui/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/intentsui/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-intents-ui/0.3.1")] diff --git a/framework-crates/objc2-intents/Cargo.toml b/framework-crates/objc2-intents/Cargo.toml index 58eca570d..f8bbdfc49 100644 --- a/framework-crates/objc2-intents/Cargo.toml +++ b/framework-crates/objc2-intents/Cargo.toml @@ -466,6 +466,7 @@ block2 = ["dep:block2"] objc2-contacts = ["dep:objc2-contacts"] objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-core-location = ["dep:objc2-core-location"] +unstable-darwin-objc = [] CLPlacemark_IntentsAdditions = ["objc2-foundation/NSString"] INAccountType = [] diff --git a/framework-crates/objc2-intents/src/lib.rs b/framework-crates/objc2-intents/src/lib.rs index 55302aa17..2ed068e6d 100644 --- a/framework-crates/objc2-intents/src/lib.rs +++ b/framework-crates/objc2-intents/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/intents/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-intents/0.3.1")] diff --git a/framework-crates/objc2-io-bluetooth-ui/Cargo.toml b/framework-crates/objc2-io-bluetooth-ui/Cargo.toml index 769eab3a8..b79fbe1d5 100644 --- a/framework-crates/objc2-io-bluetooth-ui/Cargo.toml +++ b/framework-crates/objc2-io-bluetooth-ui/Cargo.toml @@ -57,6 +57,7 @@ alloc = [] objc2 = [] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-io-bluetooth = ["dep:objc2-io-bluetooth"] +unstable-darwin-objc = [] IOBluetoothDeviceSelectorController = [ "objc2-app-kit/NSNib", diff --git a/framework-crates/objc2-io-bluetooth-ui/src/lib.rs b/framework-crates/objc2-io-bluetooth-ui/src/lib.rs index f9e3621b6..d3a654ff3 100644 --- a/framework-crates/objc2-io-bluetooth-ui/src/lib.rs +++ b/framework-crates/objc2-io-bluetooth-ui/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/iobluetoothui/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-io-bluetooth-ui/0.3.1")] diff --git a/framework-crates/objc2-io-bluetooth/Cargo.toml b/framework-crates/objc2-io-bluetooth/Cargo.toml index abfd6d073..be05bb5c5 100644 --- a/framework-crates/objc2-io-bluetooth/Cargo.toml +++ b/framework-crates/objc2-io-bluetooth/Cargo.toml @@ -86,6 +86,7 @@ objc2 = [ ] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-foundation = ["dep:objc2-foundation"] +unstable-darwin-objc = [] Bluetooth = [] BluetoothAssignedNumbers = [] diff --git a/framework-crates/objc2-io-bluetooth/src/lib.rs b/framework-crates/objc2-io-bluetooth/src/lib.rs index e178a8c89..491384533 100644 --- a/framework-crates/objc2-io-bluetooth/src/lib.rs +++ b/framework-crates/objc2-io-bluetooth/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/iobluetooth/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-io-bluetooth/0.3.1")] diff --git a/framework-crates/objc2-io-kit/Cargo.toml b/framework-crates/objc2-io-kit/Cargo.toml index 281f874b0..774b79455 100644 --- a/framework-crates/objc2-io-kit/Cargo.toml +++ b/framework-crates/objc2-io-kit/Cargo.toml @@ -78,6 +78,7 @@ objc2 = [ "dispatch2?/objc2", "objc2-core-foundation/objc2", ] +unstable-darwin-objc = [] AppleUSBDefinitions = [] IOUSBHostFamilyDefinitions = [] diff --git a/framework-crates/objc2-io-kit/src/lib.rs b/framework-crates/objc2-io-kit/src/lib.rs index a68f27222..294d6d11b 100644 --- a/framework-crates/objc2-io-kit/src/lib.rs +++ b/framework-crates/objc2-io-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/iokit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-io-kit/0.3.1")] diff --git a/framework-crates/objc2-io-surface/Cargo.toml b/framework-crates/objc2-io-surface/Cargo.toml index b3791cbba..e221babac 100644 --- a/framework-crates/objc2-io-surface/Cargo.toml +++ b/framework-crates/objc2-io-surface/Cargo.toml @@ -64,6 +64,7 @@ objc2 = [ ] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-foundation = ["dep:objc2-foundation"] +unstable-darwin-objc = [] IOSurface = [] IOSurfaceAPI = [] diff --git a/framework-crates/objc2-io-surface/src/lib.rs b/framework-crates/objc2-io-surface/src/lib.rs index ee435da80..220e3658c 100644 --- a/framework-crates/objc2-io-surface/src/lib.rs +++ b/framework-crates/objc2-io-surface/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/iosurface/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-io-surface/0.3.1")] diff --git a/framework-crates/objc2-io-usb-host/Cargo.toml b/framework-crates/objc2-io-usb-host/Cargo.toml index c5d36c93f..337345812 100644 --- a/framework-crates/objc2-io-usb-host/Cargo.toml +++ b/framework-crates/objc2-io-usb-host/Cargo.toml @@ -76,6 +76,7 @@ block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-io-kit = ["dep:objc2-io-kit"] +unstable-darwin-objc = [] AppleUSBDescriptorParsing = [] IOUSBHostCIControllerStateMachine = ["objc2-foundation/NSError"] diff --git a/framework-crates/objc2-io-usb-host/src/lib.rs b/framework-crates/objc2-io-usb-host/src/lib.rs index 789f7951c..c2c7c46ed 100644 --- a/framework-crates/objc2-io-usb-host/src/lib.rs +++ b/framework-crates/objc2-io-usb-host/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/iousbhost/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-io-usb-host/0.3.1")] diff --git a/framework-crates/objc2-itunes-library/Cargo.toml b/framework-crates/objc2-itunes-library/Cargo.toml index 8fb829e8a..82e109b73 100644 --- a/framework-crates/objc2-itunes-library/Cargo.toml +++ b/framework-crates/objc2-itunes-library/Cargo.toml @@ -49,6 +49,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] ITLibAlbum = [ "objc2-foundation/NSString", diff --git a/framework-crates/objc2-itunes-library/src/lib.rs b/framework-crates/objc2-itunes-library/src/lib.rs index 4faee5cc7..3ebaaa354 100644 --- a/framework-crates/objc2-itunes-library/src/lib.rs +++ b/framework-crates/objc2-itunes-library/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/ituneslibrary/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-itunes-library/0.3.1")] diff --git a/framework-crates/objc2-javascript-core/Cargo.toml b/framework-crates/objc2-javascript-core/Cargo.toml index 0b8521b3e..8a47ce94d 100644 --- a/framework-crates/objc2-javascript-core/Cargo.toml +++ b/framework-crates/objc2-javascript-core/Cargo.toml @@ -74,6 +74,7 @@ objc2 = [ ] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-foundation = ["dep:objc2-foundation"] +unstable-darwin-objc = [] JSBase = [] JSContext = [] diff --git a/framework-crates/objc2-javascript-core/src/lib.rs b/framework-crates/objc2-javascript-core/src/lib.rs index 8999da413..9ce46da30 100644 --- a/framework-crates/objc2-javascript-core/src/lib.rs +++ b/framework-crates/objc2-javascript-core/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/javascriptcore/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-java-script-core/0.3.1")] diff --git a/framework-crates/objc2-latent-semantic-mapping/Cargo.toml b/framework-crates/objc2-latent-semantic-mapping/Cargo.toml index 6745eefbf..87760bd40 100644 --- a/framework-crates/objc2-latent-semantic-mapping/Cargo.toml +++ b/framework-crates/objc2-latent-semantic-mapping/Cargo.toml @@ -46,3 +46,4 @@ objc2 = [ "dep:objc2", "objc2-core-foundation/objc2", ] +unstable-darwin-objc = [] diff --git a/framework-crates/objc2-latent-semantic-mapping/src/lib.rs b/framework-crates/objc2-latent-semantic-mapping/src/lib.rs index a9548d946..837dc476b 100644 --- a/framework-crates/objc2-latent-semantic-mapping/src/lib.rs +++ b/framework-crates/objc2-latent-semantic-mapping/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/latentsemanticmapping/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-latent-semantic-mapping/0.3.1")] diff --git a/framework-crates/objc2-link-presentation/Cargo.toml b/framework-crates/objc2-link-presentation/Cargo.toml index 55003d9a8..6fb164463 100644 --- a/framework-crates/objc2-link-presentation/Cargo.toml +++ b/framework-crates/objc2-link-presentation/Cargo.toml @@ -58,6 +58,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] LPError = [ "objc2-foundation/NSError", diff --git a/framework-crates/objc2-link-presentation/src/lib.rs b/framework-crates/objc2-link-presentation/src/lib.rs index 2f92e578f..85aa7ce26 100644 --- a/framework-crates/objc2-link-presentation/src/lib.rs +++ b/framework-crates/objc2-link-presentation/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/linkpresentation/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-link-presentation/0.3.1")] diff --git a/framework-crates/objc2-local-authentication-embedded-ui/Cargo.toml b/framework-crates/objc2-local-authentication-embedded-ui/Cargo.toml index b0192ab6e..e0a6aeba0 100644 --- a/framework-crates/objc2-local-authentication-embedded-ui/Cargo.toml +++ b/framework-crates/objc2-local-authentication-embedded-ui/Cargo.toml @@ -58,6 +58,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] LAAuthenticationView = [ "objc2-foundation/NSCoder", diff --git a/framework-crates/objc2-local-authentication-embedded-ui/src/lib.rs b/framework-crates/objc2-local-authentication-embedded-ui/src/lib.rs index 6b925fdcc..00dba1c98 100644 --- a/framework-crates/objc2-local-authentication-embedded-ui/src/lib.rs +++ b/framework-crates/objc2-local-authentication-embedded-ui/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/localauthenticationembeddedui/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-local-authentication-embedded-ui/0.3.1")] diff --git a/framework-crates/objc2-local-authentication/Cargo.toml b/framework-crates/objc2-local-authentication/Cargo.toml index 8099d0a4d..0b08deaea 100644 --- a/framework-crates/objc2-local-authentication/Cargo.toml +++ b/framework-crates/objc2-local-authentication/Cargo.toml @@ -67,6 +67,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-security = ["dep:objc2-security"] +unstable-darwin-objc = [] LABase = [] LABiometryType = [] diff --git a/framework-crates/objc2-local-authentication/src/lib.rs b/framework-crates/objc2-local-authentication/src/lib.rs index 493c5eb53..48212e91b 100644 --- a/framework-crates/objc2-local-authentication/src/lib.rs +++ b/framework-crates/objc2-local-authentication/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/localauthentication/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-local-authentication/0.3.1")] diff --git a/framework-crates/objc2-mail-kit/Cargo.toml b/framework-crates/objc2-mail-kit/Cargo.toml index 21889a95d..3ef93e0c4 100644 --- a/framework-crates/objc2-mail-kit/Cargo.toml +++ b/framework-crates/objc2-mail-kit/Cargo.toml @@ -68,6 +68,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] MEAddressAnnotation = [ "objc2-foundation/NSObject", diff --git a/framework-crates/objc2-mail-kit/src/lib.rs b/framework-crates/objc2-mail-kit/src/lib.rs index 424ba4dbd..0cf94c83f 100644 --- a/framework-crates/objc2-mail-kit/src/lib.rs +++ b/framework-crates/objc2-mail-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/mailkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-mail-kit/0.3.1")] diff --git a/framework-crates/objc2-map-kit/Cargo.toml b/framework-crates/objc2-map-kit/Cargo.toml index fb4bb2155..12679df4c 100644 --- a/framework-crates/objc2-map-kit/Cargo.toml +++ b/framework-crates/objc2-map-kit/Cargo.toml @@ -170,6 +170,7 @@ objc2-contacts = ["dep:objc2-contacts"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-core-location = ["dep:objc2-core-location"] +unstable-darwin-objc = [] MKAddress = ["objc2-foundation/NSString"] MKAddressFilter = [ diff --git a/framework-crates/objc2-map-kit/src/lib.rs b/framework-crates/objc2-map-kit/src/lib.rs index 58ecfa7ab..ece9a2f12 100644 --- a/framework-crates/objc2-map-kit/src/lib.rs +++ b/framework-crates/objc2-map-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/mapkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-map-kit/0.3.1")] diff --git a/framework-crates/objc2-media-accessibility/Cargo.toml b/framework-crates/objc2-media-accessibility/Cargo.toml index 5211772ff..2090f2995 100644 --- a/framework-crates/objc2-media-accessibility/Cargo.toml +++ b/framework-crates/objc2-media-accessibility/Cargo.toml @@ -73,6 +73,7 @@ objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-core-text = ["dep:objc2-core-text"] objc2-foundation = ["dep:objc2-foundation"] objc2-io-surface = ["dep:objc2-io-surface"] +unstable-darwin-objc = [] MAAudibleMedia = ["objc2-core-foundation/CFArray"] MACaptionAppearance = [ diff --git a/framework-crates/objc2-media-accessibility/src/lib.rs b/framework-crates/objc2-media-accessibility/src/lib.rs index 983d4a262..dc0a3290a 100644 --- a/framework-crates/objc2-media-accessibility/src/lib.rs +++ b/framework-crates/objc2-media-accessibility/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/mediaaccessibility/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-media-accessibility/0.3.1")] diff --git a/framework-crates/objc2-media-extension/Cargo.toml b/framework-crates/objc2-media-extension/Cargo.toml index fa3af2322..b5723913d 100644 --- a/framework-crates/objc2-media-extension/Cargo.toml +++ b/framework-crates/objc2-media-extension/Cargo.toml @@ -77,6 +77,7 @@ objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-media = ["dep:objc2-core-media"] objc2-core-video = ["dep:objc2-core-video"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] MEError = [ "objc2-foundation/NSError", diff --git a/framework-crates/objc2-media-extension/src/lib.rs b/framework-crates/objc2-media-extension/src/lib.rs index 46dabe494..4e56a828b 100644 --- a/framework-crates/objc2-media-extension/src/lib.rs +++ b/framework-crates/objc2-media-extension/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/mediaextension/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-media-extension/0.3.1")] diff --git a/framework-crates/objc2-media-player/Cargo.toml b/framework-crates/objc2-media-player/Cargo.toml index 9c7e70bf5..d3c0f215f 100644 --- a/framework-crates/objc2-media-player/Cargo.toml +++ b/framework-crates/objc2-media-player/Cargo.toml @@ -102,6 +102,7 @@ objc2-app-kit = ["dep:objc2-app-kit"] objc2-av-foundation = ["dep:objc2-av-foundation"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-media = ["dep:objc2-core-media"] +unstable-darwin-objc = [] AVFoundation_MPNowPlayingInfoLanguageOptionAdditions = [] AVPlayerItem_MediaPlayerAdditions = [ diff --git a/framework-crates/objc2-media-player/src/lib.rs b/framework-crates/objc2-media-player/src/lib.rs index 605dce670..1461fb833 100644 --- a/framework-crates/objc2-media-player/src/lib.rs +++ b/framework-crates/objc2-media-player/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/mediaplayer/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-media-player/0.3.1")] diff --git a/framework-crates/objc2-media-setup/Cargo.toml b/framework-crates/objc2-media-setup/Cargo.toml index 2fac044c0..a42366f08 100644 --- a/framework-crates/objc2-media-setup/Cargo.toml +++ b/framework-crates/objc2-media-setup/Cargo.toml @@ -44,6 +44,7 @@ default = [ std = ["alloc"] alloc = [] objc2-ui-kit = ["dep:objc2-ui-kit"] +unstable-darwin-objc = [] MSServiceAccount = [ "objc2-foundation/NSString", diff --git a/framework-crates/objc2-media-setup/src/lib.rs b/framework-crates/objc2-media-setup/src/lib.rs index 640d2813b..19e41de1a 100644 --- a/framework-crates/objc2-media-setup/src/lib.rs +++ b/framework-crates/objc2-media-setup/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/mediasetup/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-media-setup/0.3.1")] diff --git a/framework-crates/objc2-media-toolbox/Cargo.toml b/framework-crates/objc2-media-toolbox/Cargo.toml index 5f2e8b74a..308817c29 100644 --- a/framework-crates/objc2-media-toolbox/Cargo.toml +++ b/framework-crates/objc2-media-toolbox/Cargo.toml @@ -58,6 +58,7 @@ objc2 = [ ] objc2-core-audio-types = ["dep:objc2-core-audio-types"] objc2-core-media = ["dep:objc2-core-media"] +unstable-darwin-objc = [] MTAudioProcessingTap = [] MTFormatNames = [] diff --git a/framework-crates/objc2-media-toolbox/src/lib.rs b/framework-crates/objc2-media-toolbox/src/lib.rs index e0daf12bb..7c6fe859c 100644 --- a/framework-crates/objc2-media-toolbox/src/lib.rs +++ b/framework-crates/objc2-media-toolbox/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/mediatoolbox/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-media-toolbox/0.3.1")] diff --git a/framework-crates/objc2-message-ui/Cargo.toml b/framework-crates/objc2-message-ui/Cargo.toml index bdb8a3037..b21ff0af8 100644 --- a/framework-crates/objc2-message-ui/Cargo.toml +++ b/framework-crates/objc2-message-ui/Cargo.toml @@ -57,6 +57,7 @@ alloc = [] block2 = ["dep:block2"] objc2-messages = ["dep:objc2-messages"] objc2-ui-kit = ["dep:objc2-ui-kit"] +unstable-darwin-objc = [] MFMailComposeControllerDeferredAction = [] MFMailComposeViewController = [ diff --git a/framework-crates/objc2-message-ui/src/lib.rs b/framework-crates/objc2-message-ui/src/lib.rs index 8fc6b9071..45c65f089 100644 --- a/framework-crates/objc2-message-ui/src/lib.rs +++ b/framework-crates/objc2-message-ui/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/messageui/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-message-ui/0.3.1")] diff --git a/framework-crates/objc2-messages/Cargo.toml b/framework-crates/objc2-messages/Cargo.toml index 5d2aa06b4..4ebccf0a0 100644 --- a/framework-crates/objc2-messages/Cargo.toml +++ b/framework-crates/objc2-messages/Cargo.toml @@ -75,6 +75,7 @@ block2 = ["dep:block2"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-quartz-core = ["dep:objc2-quartz-core"] objc2-ui-kit = ["dep:objc2-ui-kit"] +unstable-darwin-objc = [] MSConversation = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-messages/src/lib.rs b/framework-crates/objc2-messages/src/lib.rs index 31c972a8e..324c8a283 100644 --- a/framework-crates/objc2-messages/src/lib.rs +++ b/framework-crates/objc2-messages/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/messages/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-messages/0.3.1")] diff --git a/framework-crates/objc2-metal-fx/Cargo.toml b/framework-crates/objc2-metal-fx/Cargo.toml index f3154af30..c7c9121d9 100644 --- a/framework-crates/objc2-metal-fx/Cargo.toml +++ b/framework-crates/objc2-metal-fx/Cargo.toml @@ -46,6 +46,7 @@ default = [ ] std = ["alloc"] alloc = [] +unstable-darwin-objc = [] MTL4FXFrameInterpolator = ["objc2-metal/MTL4CommandBuffer"] MTL4FXSpatialScaler = ["objc2-metal/MTL4CommandBuffer"] diff --git a/framework-crates/objc2-metal-fx/src/lib.rs b/framework-crates/objc2-metal-fx/src/lib.rs index 392eacda2..62ad7f43e 100644 --- a/framework-crates/objc2-metal-fx/src/lib.rs +++ b/framework-crates/objc2-metal-fx/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/metalfx/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-metal-fx/0.3.1")] diff --git a/framework-crates/objc2-metal-kit/Cargo.toml b/framework-crates/objc2-metal-kit/Cargo.toml index 1ff819395..b81e8f56c 100644 --- a/framework-crates/objc2-metal-kit/Cargo.toml +++ b/framework-crates/objc2-metal-kit/Cargo.toml @@ -89,6 +89,7 @@ objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-model-io = ["dep:objc2-model-io"] objc2-quartz-core = ["dep:objc2-quartz-core"] +unstable-darwin-objc = [] MTKDefines = [] MTKModel = [ diff --git a/framework-crates/objc2-metal-kit/src/lib.rs b/framework-crates/objc2-metal-kit/src/lib.rs index 402f15f94..df0389df8 100644 --- a/framework-crates/objc2-metal-kit/src/lib.rs +++ b/framework-crates/objc2-metal-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/metalkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-metal-kit/0.3.1")] diff --git a/framework-crates/objc2-metal-performance-shaders-graph/Cargo.toml b/framework-crates/objc2-metal-performance-shaders-graph/Cargo.toml index 8bfb57768..929311ae6 100644 --- a/framework-crates/objc2-metal-performance-shaders-graph/Cargo.toml +++ b/framework-crates/objc2-metal-performance-shaders-graph/Cargo.toml @@ -102,6 +102,7 @@ bitflags = ["dep:bitflags"] block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] objc2-metal-performance-shaders = ["dep:objc2-metal-performance-shaders"] +unstable-darwin-objc = [] MPSGraph = [ "bitflags", diff --git a/framework-crates/objc2-metal-performance-shaders-graph/src/lib.rs b/framework-crates/objc2-metal-performance-shaders-graph/src/lib.rs index c68b1f270..93dbd8f5c 100644 --- a/framework-crates/objc2-metal-performance-shaders-graph/src/lib.rs +++ b/framework-crates/objc2-metal-performance-shaders-graph/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/metalperformanceshadersgraph/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-metal-performance-shaders-graph/0.3.1")] diff --git a/framework-crates/objc2-metal-performance-shaders/Cargo.toml b/framework-crates/objc2-metal-performance-shaders/Cargo.toml index 44e2769e0..439330706 100644 --- a/framework-crates/objc2-metal-performance-shaders/Cargo.toml +++ b/framework-crates/objc2-metal-performance-shaders/Cargo.toml @@ -148,6 +148,7 @@ alloc = [] block2 = ["dep:block2"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] +unstable-darwin-objc = [] MPSAccelerationStructure = [ "objc2-foundation/NSCoder", diff --git a/framework-crates/objc2-metal-performance-shaders/src/lib.rs b/framework-crates/objc2-metal-performance-shaders/src/lib.rs index 9618e3449..ea295751e 100644 --- a/framework-crates/objc2-metal-performance-shaders/src/lib.rs +++ b/framework-crates/objc2-metal-performance-shaders/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/metalperformanceshaders/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-metal-performance-shaders/0.3.1")] diff --git a/framework-crates/objc2-metal/Cargo.toml b/framework-crates/objc2-metal/Cargo.toml index a2be4cbc1..595142580 100644 --- a/framework-crates/objc2-metal/Cargo.toml +++ b/framework-crates/objc2-metal/Cargo.toml @@ -200,6 +200,7 @@ block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-io-surface = ["dep:objc2-io-surface"] +unstable-darwin-objc = [] MTL4AccelerationStructure = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-metal/src/lib.rs b/framework-crates/objc2-metal/src/lib.rs index ecf8dc621..ca47db6e6 100644 --- a/framework-crates/objc2-metal/src/lib.rs +++ b/framework-crates/objc2-metal/src/lib.rs @@ -26,6 +26,7 @@ #![recursion_limit = "256"] #![allow(non_snake_case)] #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-metal/0.3.1")] diff --git a/framework-crates/objc2-metric-kit/Cargo.toml b/framework-crates/objc2-metric-kit/Cargo.toml index a43931c49..1a5f69d0b 100644 --- a/framework-crates/objc2-metric-kit/Cargo.toml +++ b/framework-crates/objc2-metric-kit/Cargo.toml @@ -74,6 +74,7 @@ default = [ std = ["alloc"] alloc = [] libc = ["dep:libc"] +unstable-darwin-objc = [] MXAnimationMetric = [ "objc2-foundation/NSMeasurement", diff --git a/framework-crates/objc2-metric-kit/src/lib.rs b/framework-crates/objc2-metric-kit/src/lib.rs index cc9a0adc2..094cf836e 100644 --- a/framework-crates/objc2-metric-kit/src/lib.rs +++ b/framework-crates/objc2-metric-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/metrickit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-metric-kit/0.3.1")] diff --git a/framework-crates/objc2-ml-compute/Cargo.toml b/framework-crates/objc2-ml-compute/Cargo.toml index 711454cc1..85a7ecf60 100644 --- a/framework-crates/objc2-ml-compute/Cargo.toml +++ b/framework-crates/objc2-ml-compute/Cargo.toml @@ -103,6 +103,7 @@ alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-metal = ["dep:objc2-metal"] +unstable-darwin-objc = [] MLCActivationDescriptor = ["objc2-foundation/NSObject"] MLCActivationLayer = [] diff --git a/framework-crates/objc2-ml-compute/src/lib.rs b/framework-crates/objc2-ml-compute/src/lib.rs index 391d81be5..b47b07294 100644 --- a/framework-crates/objc2-ml-compute/src/lib.rs +++ b/framework-crates/objc2-ml-compute/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/mlcompute/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-ml-compute/0.3.1")] diff --git a/framework-crates/objc2-model-io/Cargo.toml b/framework-crates/objc2-model-io/Cargo.toml index 3237c4b12..26be89c3f 100644 --- a/framework-crates/objc2-model-io/Cargo.toml +++ b/framework-crates/objc2-model-io/Cargo.toml @@ -70,6 +70,7 @@ alloc = [] block2 = ["dep:block2"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] +unstable-darwin-objc = [] MDLAnimatedValueTypes = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-model-io/src/lib.rs b/framework-crates/objc2-model-io/src/lib.rs index c7f95e5ef..f2d95b5bc 100644 --- a/framework-crates/objc2-model-io/src/lib.rs +++ b/framework-crates/objc2-model-io/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/modelio/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-model-io/0.3.1")] diff --git a/framework-crates/objc2-multipeer-connectivity/Cargo.toml b/framework-crates/objc2-multipeer-connectivity/Cargo.toml index 5b273b935..7264fa65b 100644 --- a/framework-crates/objc2-multipeer-connectivity/Cargo.toml +++ b/framework-crates/objc2-multipeer-connectivity/Cargo.toml @@ -60,6 +60,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] MCAdvertiserAssistant = [ "objc2-foundation/NSDictionary", diff --git a/framework-crates/objc2-multipeer-connectivity/src/lib.rs b/framework-crates/objc2-multipeer-connectivity/src/lib.rs index f2690ec7a..20bd6d3e0 100644 --- a/framework-crates/objc2-multipeer-connectivity/src/lib.rs +++ b/framework-crates/objc2-multipeer-connectivity/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/multipeerconnectivity/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-multipeer-connectivity/0.3.1")] diff --git a/framework-crates/objc2-natural-language/Cargo.toml b/framework-crates/objc2-natural-language/Cargo.toml index 8b03d5424..1c510b73b 100644 --- a/framework-crates/objc2-natural-language/Cargo.toml +++ b/framework-crates/objc2-natural-language/Cargo.toml @@ -57,6 +57,7 @@ alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-core-ml = ["dep:objc2-core-ml"] +unstable-darwin-objc = [] NLContextualEmbedding = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-natural-language/src/lib.rs b/framework-crates/objc2-natural-language/src/lib.rs index 75774585d..2283d4966 100644 --- a/framework-crates/objc2-natural-language/src/lib.rs +++ b/framework-crates/objc2-natural-language/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/naturallanguage/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-natural-language/0.3.1")] diff --git a/framework-crates/objc2-nearby-interaction/Cargo.toml b/framework-crates/objc2-nearby-interaction/Cargo.toml index f3d887918..32c0489ff 100644 --- a/framework-crates/objc2-nearby-interaction/Cargo.toml +++ b/framework-crates/objc2-nearby-interaction/Cargo.toml @@ -58,6 +58,7 @@ std = ["alloc"] alloc = [] dispatch2 = ["dep:dispatch2"] objc2-ar-kit = ["dep:objc2-ar-kit"] +unstable-darwin-objc = [] NIAlgorithmConvergenceStatusReason = ["objc2-foundation/NSString"] NIConfiguration = [ diff --git a/framework-crates/objc2-nearby-interaction/src/lib.rs b/framework-crates/objc2-nearby-interaction/src/lib.rs index 0a4a25579..cbecda192 100644 --- a/framework-crates/objc2-nearby-interaction/src/lib.rs +++ b/framework-crates/objc2-nearby-interaction/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/nearbyinteraction/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-nearby-interaction/0.3.1")] diff --git a/framework-crates/objc2-network-extension/Cargo.toml b/framework-crates/objc2-network-extension/Cargo.toml index 58c5999bf..661bd43aa 100644 --- a/framework-crates/objc2-network-extension/Cargo.toml +++ b/framework-crates/objc2-network-extension/Cargo.toml @@ -78,3 +78,4 @@ dispatch2 = ["dep:dispatch2"] libc = ["dep:libc"] objc2-accessory-setup-kit = ["dep:objc2-accessory-setup-kit"] objc2-security = ["dep:objc2-security"] +unstable-darwin-objc = [] diff --git a/framework-crates/objc2-network-extension/src/lib.rs b/framework-crates/objc2-network-extension/src/lib.rs index 3d3145261..cb8a9a5fe 100644 --- a/framework-crates/objc2-network-extension/src/lib.rs +++ b/framework-crates/objc2-network-extension/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/networkextension/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-network-extension/0.3.1")] diff --git a/framework-crates/objc2-notification-center/Cargo.toml b/framework-crates/objc2-notification-center/Cargo.toml index b37c79a60..f0a195712 100644 --- a/framework-crates/objc2-notification-center/Cargo.toml +++ b/framework-crates/objc2-notification-center/Cargo.toml @@ -54,6 +54,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] NCWidgetController = ["objc2-foundation/NSString"] NCWidgetListViewController = [ diff --git a/framework-crates/objc2-notification-center/src/lib.rs b/framework-crates/objc2-notification-center/src/lib.rs index 67eb7d186..539156929 100644 --- a/framework-crates/objc2-notification-center/src/lib.rs +++ b/framework-crates/objc2-notification-center/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/notificationcenter/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-notification-center/0.3.1")] diff --git a/framework-crates/objc2-open-directory/Cargo.toml b/framework-crates/objc2-open-directory/Cargo.toml index 4bff90b3c..36f813085 100644 --- a/framework-crates/objc2-open-directory/Cargo.toml +++ b/framework-crates/objc2-open-directory/Cargo.toml @@ -72,6 +72,7 @@ alloc = [] dispatch2 = ["dep:dispatch2"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-security-foundation = ["dep:objc2-security-foundation"] +unstable-darwin-objc = [] CFODContext = [] CFODNode = ["objc2-foundation/NSString"] diff --git a/framework-crates/objc2-open-directory/src/lib.rs b/framework-crates/objc2-open-directory/src/lib.rs index d67607629..e8df84773 100644 --- a/framework-crates/objc2-open-directory/src/lib.rs +++ b/framework-crates/objc2-open-directory/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/opendirectory/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-open-directory/0.3.1")] diff --git a/framework-crates/objc2-open-gl-es/Cargo.toml b/framework-crates/objc2-open-gl-es/Cargo.toml index 6f76ae274..a7ac028ff 100644 --- a/framework-crates/objc2-open-gl-es/Cargo.toml +++ b/framework-crates/objc2-open-gl-es/Cargo.toml @@ -50,6 +50,7 @@ std = ["alloc"] alloc = [] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-io-surface = ["dep:objc2-io-surface"] +unstable-darwin-objc = [] EAGL = ["objc2-foundation/NSString"] EAGLDrawable = [ diff --git a/framework-crates/objc2-open-gl-es/src/lib.rs b/framework-crates/objc2-open-gl-es/src/lib.rs index cdc906772..7fa4fba48 100644 --- a/framework-crates/objc2-open-gl-es/src/lib.rs +++ b/framework-crates/objc2-open-gl-es/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/opengles/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-open-gl-es/0.3.1")] diff --git a/framework-crates/objc2-open-gl/Cargo.toml b/framework-crates/objc2-open-gl/Cargo.toml index 1ae37e8d4..e7e2ce398 100644 --- a/framework-crates/objc2-open-gl/Cargo.toml +++ b/framework-crates/objc2-open-gl/Cargo.toml @@ -43,6 +43,7 @@ default = [ std = ["alloc"] alloc = [] objc2-io-surface = ["dep:objc2-io-surface"] +unstable-darwin-objc = [] CGLCurrent = [] CGLDevice = [] diff --git a/framework-crates/objc2-open-gl/src/lib.rs b/framework-crates/objc2-open-gl/src/lib.rs index 96cdc9d44..93b09b773 100644 --- a/framework-crates/objc2-open-gl/src/lib.rs +++ b/framework-crates/objc2-open-gl/src/lib.rs @@ -9,6 +9,7 @@ //! [opengl-docs]: https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_intro/opengl_intro.html //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-opengl/0.3.1")] diff --git a/framework-crates/objc2-os-log/Cargo.toml b/framework-crates/objc2-os-log/Cargo.toml index d22640813..91d14dfaa 100644 --- a/framework-crates/objc2-os-log/Cargo.toml +++ b/framework-crates/objc2-os-log/Cargo.toml @@ -54,3 +54,4 @@ default = [ std = ["alloc"] alloc = [] libc = ["dep:libc"] +unstable-darwin-objc = [] diff --git a/framework-crates/objc2-os-log/src/lib.rs b/framework-crates/objc2-os-log/src/lib.rs index fecaa399c..ba7cbb325 100644 --- a/framework-crates/objc2-os-log/src/lib.rs +++ b/framework-crates/objc2-os-log/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/oslog/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-os-log/0.3.1")] diff --git a/framework-crates/objc2-osa-kit/Cargo.toml b/framework-crates/objc2-osa-kit/Cargo.toml index e37b9e265..9578223e4 100644 --- a/framework-crates/objc2-osa-kit/Cargo.toml +++ b/framework-crates/objc2-osa-kit/Cargo.toml @@ -42,6 +42,7 @@ default = [ std = ["alloc"] alloc = [] bitflags = ["dep:bitflags"] +unstable-darwin-objc = [] OSALanguage = [ "bitflags", diff --git a/framework-crates/objc2-osa-kit/src/lib.rs b/framework-crates/objc2-osa-kit/src/lib.rs index 81aee2cc1..495c1de84 100644 --- a/framework-crates/objc2-osa-kit/src/lib.rs +++ b/framework-crates/objc2-osa-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/osakit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-osa-kit/0.3.1")] diff --git a/framework-crates/objc2-paravirtualized-graphics/Cargo.toml b/framework-crates/objc2-paravirtualized-graphics/Cargo.toml index ff9ecf8b2..76a042ee7 100644 --- a/framework-crates/objc2-paravirtualized-graphics/Cargo.toml +++ b/framework-crates/objc2-paravirtualized-graphics/Cargo.toml @@ -63,6 +63,7 @@ block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-metal = ["dep:objc2-metal"] +unstable-darwin-objc = [] PGDefines = [] PGDevice = [ diff --git a/framework-crates/objc2-paravirtualized-graphics/src/lib.rs b/framework-crates/objc2-paravirtualized-graphics/src/lib.rs index 18e27b49e..087724747 100644 --- a/framework-crates/objc2-paravirtualized-graphics/src/lib.rs +++ b/framework-crates/objc2-paravirtualized-graphics/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/paravirtualizedgraphics/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-paravirtualized-graphics/0.3.1")] diff --git a/framework-crates/objc2-pass-kit/Cargo.toml b/framework-crates/objc2-pass-kit/Cargo.toml index 89c5e1249..ff81ddff7 100644 --- a/framework-crates/objc2-pass-kit/Cargo.toml +++ b/framework-crates/objc2-pass-kit/Cargo.toml @@ -149,6 +149,7 @@ objc2-app-kit = ["dep:objc2-app-kit"] objc2-contacts = ["dep:objc2-contacts"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] +unstable-darwin-objc = [] PKAddCarKeyPassConfiguration = ["objc2-foundation/NSString"] PKAddIdentityDocumentConfiguration = [ diff --git a/framework-crates/objc2-pass-kit/src/lib.rs b/framework-crates/objc2-pass-kit/src/lib.rs index 43874866c..ce4bc9615 100644 --- a/framework-crates/objc2-pass-kit/src/lib.rs +++ b/framework-crates/objc2-pass-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/passkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-pass-kit/0.3.1")] diff --git a/framework-crates/objc2-pdf-kit/Cargo.toml b/framework-crates/objc2-pdf-kit/Cargo.toml index 9320af392..cb67aad91 100644 --- a/framework-crates/objc2-pdf-kit/Cargo.toml +++ b/framework-crates/objc2-pdf-kit/Cargo.toml @@ -107,6 +107,7 @@ bitflags = ["dep:bitflags"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] +unstable-darwin-objc = [] PDFAction = [ "objc2-foundation/NSObject", diff --git a/framework-crates/objc2-pdf-kit/src/lib.rs b/framework-crates/objc2-pdf-kit/src/lib.rs index 2411a0c6a..028022a56 100644 --- a/framework-crates/objc2-pdf-kit/src/lib.rs +++ b/framework-crates/objc2-pdf-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/pdfkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-pdf-kit/0.3.1")] diff --git a/framework-crates/objc2-pencil-kit/Cargo.toml b/framework-crates/objc2-pencil-kit/Cargo.toml index 93c8cd780..e400befea 100644 --- a/framework-crates/objc2-pencil-kit/Cargo.toml +++ b/framework-crates/objc2-pencil-kit/Cargo.toml @@ -75,6 +75,7 @@ block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] +unstable-darwin-objc = [] PKContentVersion = [] PKDrawing = [ diff --git a/framework-crates/objc2-pencil-kit/src/lib.rs b/framework-crates/objc2-pencil-kit/src/lib.rs index e2c4add13..7274e35c4 100644 --- a/framework-crates/objc2-pencil-kit/src/lib.rs +++ b/framework-crates/objc2-pencil-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/pencilkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-pencil-kit/0.3.1")] diff --git a/framework-crates/objc2-phase/Cargo.toml b/framework-crates/objc2-phase/Cargo.toml index 2a6dbb6bc..8f8476786 100644 --- a/framework-crates/objc2-phase/Cargo.toml +++ b/framework-crates/objc2-phase/Cargo.toml @@ -86,6 +86,7 @@ block2 = ["dep:block2"] objc2-avf-audio = ["dep:objc2-avf-audio"] objc2-core-audio-types = ["dep:objc2-core-audio-types"] objc2-model-io = ["dep:objc2-model-io"] +unstable-darwin-objc = [] PHASEAssetRegistry = [ "objc2-foundation/NSData", diff --git a/framework-crates/objc2-phase/src/lib.rs b/framework-crates/objc2-phase/src/lib.rs index 5af486d08..15eea4807 100644 --- a/framework-crates/objc2-phase/src/lib.rs +++ b/framework-crates/objc2-phase/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/phase/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-phase/0.3.1")] diff --git a/framework-crates/objc2-photos-ui/Cargo.toml b/framework-crates/objc2-photos-ui/Cargo.toml index 297d86125..49e0b5158 100644 --- a/framework-crates/objc2-photos-ui/Cargo.toml +++ b/framework-crates/objc2-photos-ui/Cargo.toml @@ -105,6 +105,7 @@ objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-location = ["dep:objc2-core-location"] objc2-map-kit = ["dep:objc2-map-kit"] objc2-photos = ["dep:objc2-photos"] +unstable-darwin-objc = [] PHContentEditingController = [] PHLivePhotoView = [ diff --git a/framework-crates/objc2-photos-ui/src/lib.rs b/framework-crates/objc2-photos-ui/src/lib.rs index 33be0469e..0b30ad022 100644 --- a/framework-crates/objc2-photos-ui/src/lib.rs +++ b/framework-crates/objc2-photos-ui/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/photosui/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-photos-ui/0.3.1")] diff --git a/framework-crates/objc2-photos/Cargo.toml b/framework-crates/objc2-photos/Cargo.toml index 827145dfc..46ada99d3 100644 --- a/framework-crates/objc2-photos/Cargo.toml +++ b/framework-crates/objc2-photos/Cargo.toml @@ -124,6 +124,7 @@ objc2-core-location = ["dep:objc2-core-location"] objc2-core-media = ["dep:objc2-core-media"] objc2-image-io = ["dep:objc2-image-io"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] PHAdjustmentData = [ "objc2-foundation/NSData", diff --git a/framework-crates/objc2-photos/src/lib.rs b/framework-crates/objc2-photos/src/lib.rs index 5c9f96685..5d240338d 100644 --- a/framework-crates/objc2-photos/src/lib.rs +++ b/framework-crates/objc2-photos/src/lib.rs @@ -8,6 +8,7 @@ //! This actually lives in the `Photos` framework, but `PhotoKit` is the name //! that people use to refer to it. #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-photos/0.3.1")] diff --git a/framework-crates/objc2-preference-panes/Cargo.toml b/framework-crates/objc2-preference-panes/Cargo.toml index 3541fedd9..a48d35768 100644 --- a/framework-crates/objc2-preference-panes/Cargo.toml +++ b/framework-crates/objc2-preference-panes/Cargo.toml @@ -41,6 +41,7 @@ default = [ std = ["alloc"] alloc = [] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] NSPreferencePane = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-preference-panes/src/lib.rs b/framework-crates/objc2-preference-panes/src/lib.rs index f314b7d22..985d4d896 100644 --- a/framework-crates/objc2-preference-panes/src/lib.rs +++ b/framework-crates/objc2-preference-panes/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/preferencepanes/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-preference-panes/0.3.1")] diff --git a/framework-crates/objc2-push-kit/Cargo.toml b/framework-crates/objc2-push-kit/Cargo.toml index f78d276e4..6a3fcb409 100644 --- a/framework-crates/objc2-push-kit/Cargo.toml +++ b/framework-crates/objc2-push-kit/Cargo.toml @@ -50,6 +50,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] +unstable-darwin-objc = [] PKDefines = ["objc2-foundation/NSString"] PKPushCredentials = [ diff --git a/framework-crates/objc2-push-kit/src/lib.rs b/framework-crates/objc2-push-kit/src/lib.rs index d78aa24e0..afa1a36c1 100644 --- a/framework-crates/objc2-push-kit/src/lib.rs +++ b/framework-crates/objc2-push-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/pushkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-push-kit/0.3.1")] diff --git a/framework-crates/objc2-push-to-talk/Cargo.toml b/framework-crates/objc2-push-to-talk/Cargo.toml index 76cec360a..0eea6be12 100644 --- a/framework-crates/objc2-push-to-talk/Cargo.toml +++ b/framework-crates/objc2-push-to-talk/Cargo.toml @@ -51,6 +51,7 @@ alloc = [] block2 = ["dep:block2"] objc2-avf-audio = ["dep:objc2-avf-audio"] objc2-ui-kit = ["dep:objc2-ui-kit"] +unstable-darwin-objc = [] PTBase = [] PTChannelDescriptor = ["objc2-foundation/NSString"] diff --git a/framework-crates/objc2-push-to-talk/src/lib.rs b/framework-crates/objc2-push-to-talk/src/lib.rs index 60eef7254..26e166363 100644 --- a/framework-crates/objc2-push-to-talk/src/lib.rs +++ b/framework-crates/objc2-push-to-talk/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/pushtotalk/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-push-to-talk/0.3.1")] diff --git a/framework-crates/objc2-quartz-core/Cargo.toml b/framework-crates/objc2-quartz-core/Cargo.toml index ba28ba1c4..b00cdfe28 100644 --- a/framework-crates/objc2-quartz-core/Cargo.toml +++ b/framework-crates/objc2-quartz-core/Cargo.toml @@ -118,6 +118,7 @@ objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-core-video = ["dep:objc2-core-video"] objc2-metal = ["dep:objc2-metal"] objc2-open-gl = ["dep:objc2-open-gl"] +unstable-darwin-objc = [] CAAnimation = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-quartz-core/src/lib.rs b/framework-crates/objc2-quartz-core/src/lib.rs index d8f3bf246..2c4a8adf8 100644 --- a/framework-crates/objc2-quartz-core/src/lib.rs +++ b/framework-crates/objc2-quartz-core/src/lib.rs @@ -9,6 +9,7 @@ //! the name that people use to refer to it. #![recursion_limit = "256"] #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-quartz-core/0.3.1")] diff --git a/framework-crates/objc2-quartz/Cargo.toml b/framework-crates/objc2-quartz/Cargo.toml index 22b84383d..ed71c1b7d 100644 --- a/framework-crates/objc2-quartz/Cargo.toml +++ b/framework-crates/objc2-quartz/Cargo.toml @@ -83,6 +83,7 @@ objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-core-image = ["dep:objc2-core-image"] objc2-image-capture-core = ["dep:objc2-image-capture-core"] objc2-quartz-core = ["dep:objc2-quartz-core"] +unstable-darwin-objc = [] IKCameraDeviceView = [ "objc2-app-kit/NSAccessibilityProtocols", diff --git a/framework-crates/objc2-quartz/src/lib.rs b/framework-crates/objc2-quartz/src/lib.rs index 0f3f0b46e..7c38669b5 100644 --- a/framework-crates/objc2-quartz/src/lib.rs +++ b/framework-crates/objc2-quartz/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/quartz/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-quartz/0.3.1")] diff --git a/framework-crates/objc2-quick-look-thumbnailing/Cargo.toml b/framework-crates/objc2-quick-look-thumbnailing/Cargo.toml index d76d720ef..f7ab72cb1 100644 --- a/framework-crates/objc2-quick-look-thumbnailing/Cargo.toml +++ b/framework-crates/objc2-quick-look-thumbnailing/Cargo.toml @@ -76,6 +76,7 @@ objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-ui-kit = ["dep:objc2-ui-kit"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] QLThumbnailErrors = [ "objc2-foundation/NSError", diff --git a/framework-crates/objc2-quick-look-thumbnailing/src/lib.rs b/framework-crates/objc2-quick-look-thumbnailing/src/lib.rs index 84f2e3128..f7345af6f 100644 --- a/framework-crates/objc2-quick-look-thumbnailing/src/lib.rs +++ b/framework-crates/objc2-quick-look-thumbnailing/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/quicklookthumbnailing/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-quick-look-thumbnailing/0.3.1")] diff --git a/framework-crates/objc2-quick-look-ui/Cargo.toml b/framework-crates/objc2-quick-look-ui/Cargo.toml index c55a33cff..a766e3a57 100644 --- a/framework-crates/objc2-quick-look-ui/Cargo.toml +++ b/framework-crates/objc2-quick-look-ui/Cargo.toml @@ -80,6 +80,7 @@ objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-pdf-kit = ["dep:objc2-pdf-kit"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] QLFilePreviewRequest = ["objc2-foundation/NSURL"] QLPreviewItem = [ diff --git a/framework-crates/objc2-quick-look-ui/src/lib.rs b/framework-crates/objc2-quick-look-ui/src/lib.rs index c1624fb14..84905e1ee 100644 --- a/framework-crates/objc2-quick-look-ui/src/lib.rs +++ b/framework-crates/objc2-quick-look-ui/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/quicklookui/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-quick-look-ui/0.3.1")] diff --git a/framework-crates/objc2-quick-look/Cargo.toml b/framework-crates/objc2-quick-look/Cargo.toml index 9eda88213..a7e96fa8d 100644 --- a/framework-crates/objc2-quick-look/Cargo.toml +++ b/framework-crates/objc2-quick-look/Cargo.toml @@ -59,6 +59,7 @@ objc2 = [ "objc2-core-graphics?/objc2", ] objc2-core-graphics = ["dep:objc2-core-graphics"] +unstable-darwin-objc = [] QLBase = [] QLGenerator = [ diff --git a/framework-crates/objc2-quick-look/src/lib.rs b/framework-crates/objc2-quick-look/src/lib.rs index c510daabc..be1199142 100644 --- a/framework-crates/objc2-quick-look/src/lib.rs +++ b/framework-crates/objc2-quick-look/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/quicklook/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-quick-look/0.3.1")] diff --git a/framework-crates/objc2-replay-kit/Cargo.toml b/framework-crates/objc2-replay-kit/Cargo.toml index bbcf5d503..76f5eb672 100644 --- a/framework-crates/objc2-replay-kit/Cargo.toml +++ b/framework-crates/objc2-replay-kit/Cargo.toml @@ -73,6 +73,7 @@ block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-media = ["dep:objc2-core-media"] +unstable-darwin-objc = [] RPBroadcast = [ "objc2-foundation/NSDictionary", diff --git a/framework-crates/objc2-replay-kit/src/lib.rs b/framework-crates/objc2-replay-kit/src/lib.rs index 8c31fd5f6..11f4a2226 100644 --- a/framework-crates/objc2-replay-kit/src/lib.rs +++ b/framework-crates/objc2-replay-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/replaykit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-replay-kit/0.3.1")] diff --git a/framework-crates/objc2-safari-services/Cargo.toml b/framework-crates/objc2-safari-services/Cargo.toml index 6c2736714..e25986d1a 100644 --- a/framework-crates/objc2-safari-services/Cargo.toml +++ b/framework-crates/objc2-safari-services/Cargo.toml @@ -70,6 +70,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] SFContentBlockerManager = [ "objc2-foundation/NSError", diff --git a/framework-crates/objc2-safari-services/src/lib.rs b/framework-crates/objc2-safari-services/src/lib.rs index f18661815..99e88debb 100644 --- a/framework-crates/objc2-safari-services/src/lib.rs +++ b/framework-crates/objc2-safari-services/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/safariservices/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-safari-services/0.3.1")] diff --git a/framework-crates/objc2-safety-kit/Cargo.toml b/framework-crates/objc2-safety-kit/Cargo.toml index 3bf3066ed..5bf47b21b 100644 --- a/framework-crates/objc2-safety-kit/Cargo.toml +++ b/framework-crates/objc2-safety-kit/Cargo.toml @@ -48,6 +48,7 @@ std = ["alloc"] alloc = [] block2 = ["dep:block2"] objc2-core-location = ["dep:objc2-core-location"] +unstable-darwin-objc = [] SAAuthorizationStatus = [] SABase = [] diff --git a/framework-crates/objc2-safety-kit/src/lib.rs b/framework-crates/objc2-safety-kit/src/lib.rs index 799c49af0..a3bcc05db 100644 --- a/framework-crates/objc2-safety-kit/src/lib.rs +++ b/framework-crates/objc2-safety-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/safetykit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-safety-kit/0.3.1")] diff --git a/framework-crates/objc2-scene-kit/Cargo.toml b/framework-crates/objc2-scene-kit/Cargo.toml index 1f5af4b5d..1a2bec5ca 100644 --- a/framework-crates/objc2-scene-kit/Cargo.toml +++ b/framework-crates/objc2-scene-kit/Cargo.toml @@ -189,6 +189,7 @@ objc2-metal = ["dep:objc2-metal"] objc2-model-io = ["dep:objc2-model-io"] objc2-open-gl = ["dep:objc2-open-gl"] objc2-quartz-core = ["dep:objc2-quartz-core"] +unstable-darwin-objc = [] ModelIO = [] SCNAction = [ diff --git a/framework-crates/objc2-scene-kit/src/lib.rs b/framework-crates/objc2-scene-kit/src/lib.rs index e99298f98..ba8e8c64f 100644 --- a/framework-crates/objc2-scene-kit/src/lib.rs +++ b/framework-crates/objc2-scene-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/scenekit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-scene-kit/0.3.1")] diff --git a/framework-crates/objc2-screen-capture-kit/Cargo.toml b/framework-crates/objc2-screen-capture-kit/Cargo.toml index 5c76fa477..053d51c6e 100644 --- a/framework-crates/objc2-screen-capture-kit/Cargo.toml +++ b/framework-crates/objc2-screen-capture-kit/Cargo.toml @@ -86,6 +86,7 @@ objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-core-media = ["dep:objc2-core-media"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] SCContentSharingPicker = [ "bitflags", diff --git a/framework-crates/objc2-screen-capture-kit/src/lib.rs b/framework-crates/objc2-screen-capture-kit/src/lib.rs index 284dbc582..4c2f2fa8d 100644 --- a/framework-crates/objc2-screen-capture-kit/src/lib.rs +++ b/framework-crates/objc2-screen-capture-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/screencapturekit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-screen-capture-kit/0.3.1")] diff --git a/framework-crates/objc2-screen-saver/Cargo.toml b/framework-crates/objc2-screen-saver/Cargo.toml index 033a1c8c4..01df335d1 100644 --- a/framework-crates/objc2-screen-saver/Cargo.toml +++ b/framework-crates/objc2-screen-saver/Cargo.toml @@ -48,6 +48,7 @@ default = [ std = ["alloc"] alloc = [] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] ScreenSaverDefaults = [ "objc2-foundation/NSString", diff --git a/framework-crates/objc2-screen-saver/src/lib.rs b/framework-crates/objc2-screen-saver/src/lib.rs index e48f16802..e06ada648 100644 --- a/framework-crates/objc2-screen-saver/src/lib.rs +++ b/framework-crates/objc2-screen-saver/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/screensaver/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-screen-saver/0.3.1")] diff --git a/framework-crates/objc2-screen-time/Cargo.toml b/framework-crates/objc2-screen-time/Cargo.toml index d25b99eae..72265173c 100644 --- a/framework-crates/objc2-screen-time/Cargo.toml +++ b/framework-crates/objc2-screen-time/Cargo.toml @@ -58,6 +58,7 @@ alloc = [] block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] STScreenTimeConfiguration = [] STWebHistory = [ diff --git a/framework-crates/objc2-screen-time/src/lib.rs b/framework-crates/objc2-screen-time/src/lib.rs index 4c4478318..d4cceb906 100644 --- a/framework-crates/objc2-screen-time/src/lib.rs +++ b/framework-crates/objc2-screen-time/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/screentime/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-screen-time/0.3.1")] diff --git a/framework-crates/objc2-scripting-bridge/Cargo.toml b/framework-crates/objc2-scripting-bridge/Cargo.toml index 68db3cc3e..7224850b7 100644 --- a/framework-crates/objc2-scripting-bridge/Cargo.toml +++ b/framework-crates/objc2-scripting-bridge/Cargo.toml @@ -49,6 +49,7 @@ std = ["alloc"] alloc = [] libc = ["dep:libc"] objc2-core-services = ["dep:objc2-core-services"] +unstable-darwin-objc = [] SBApplication = [ "objc2-foundation/NSDictionary", diff --git a/framework-crates/objc2-scripting-bridge/src/lib.rs b/framework-crates/objc2-scripting-bridge/src/lib.rs index bb394f1dc..8531c69bb 100644 --- a/framework-crates/objc2-scripting-bridge/src/lib.rs +++ b/framework-crates/objc2-scripting-bridge/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/scriptingbridge/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-scripting-bridge/0.3.1")] diff --git a/framework-crates/objc2-security-foundation/Cargo.toml b/framework-crates/objc2-security-foundation/Cargo.toml index f79e5f2ca..86788eb56 100644 --- a/framework-crates/objc2-security-foundation/Cargo.toml +++ b/framework-crates/objc2-security-foundation/Cargo.toml @@ -42,6 +42,7 @@ default = [ std = ["alloc"] alloc = [] objc2-security = ["dep:objc2-security"] +unstable-darwin-objc = [] SFAuthorization = [ "objc2-foundation/NSError", diff --git a/framework-crates/objc2-security-foundation/src/lib.rs b/framework-crates/objc2-security-foundation/src/lib.rs index 779d7d1db..6c7184a27 100644 --- a/framework-crates/objc2-security-foundation/src/lib.rs +++ b/framework-crates/objc2-security-foundation/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/securityfoundation/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-security-foundation/0.3.1")] diff --git a/framework-crates/objc2-security-interface/Cargo.toml b/framework-crates/objc2-security-interface/Cargo.toml index 64096815d..2a6d1c31d 100644 --- a/framework-crates/objc2-security-interface/Cargo.toml +++ b/framework-crates/objc2-security-interface/Cargo.toml @@ -57,6 +57,7 @@ std = ["alloc"] alloc = [] objc2-security = ["dep:objc2-security"] objc2-security-foundation = ["dep:objc2-security-foundation"] +unstable-darwin-objc = [] SFAuthorizationPluginView = [ "objc2-app-kit/NSResponder", diff --git a/framework-crates/objc2-security-interface/src/lib.rs b/framework-crates/objc2-security-interface/src/lib.rs index 9648c37b6..0f91014e4 100644 --- a/framework-crates/objc2-security-interface/src/lib.rs +++ b/framework-crates/objc2-security-interface/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/securityinterface/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-security-interface/0.3.1")] diff --git a/framework-crates/objc2-security/Cargo.toml b/framework-crates/objc2-security/Cargo.toml index 54d66fed9..354ee2715 100644 --- a/framework-crates/objc2-security/Cargo.toml +++ b/framework-crates/objc2-security/Cargo.toml @@ -133,6 +133,7 @@ objc2 = [ "dep:objc2", "objc2-core-foundation/objc2", ] +unstable-darwin-objc = [] AuthSession = ["bitflags"] Authorization = ["bitflags"] diff --git a/framework-crates/objc2-security/src/lib.rs b/framework-crates/objc2-security/src/lib.rs index 9b31e6ba4..6b5bdc548 100644 --- a/framework-crates/objc2-security/src/lib.rs +++ b/framework-crates/objc2-security/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/security/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-security/0.3.1")] diff --git a/framework-crates/objc2-sensitive-content-analysis/Cargo.toml b/framework-crates/objc2-sensitive-content-analysis/Cargo.toml index 7426d2324..a1dcfbe47 100644 --- a/framework-crates/objc2-sensitive-content-analysis/Cargo.toml +++ b/framework-crates/objc2-sensitive-content-analysis/Cargo.toml @@ -64,6 +64,7 @@ objc2-av-foundation = ["dep:objc2-av-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-core-video = ["dep:objc2-core-video"] objc2-video-toolbox = ["dep:objc2-video-toolbox"] +unstable-darwin-objc = [] SCSensitivityAnalysis = [] SCSensitivityAnalyzer = [ diff --git a/framework-crates/objc2-sensitive-content-analysis/src/lib.rs b/framework-crates/objc2-sensitive-content-analysis/src/lib.rs index a559343dc..3b43e42ba 100644 --- a/framework-crates/objc2-sensitive-content-analysis/src/lib.rs +++ b/framework-crates/objc2-sensitive-content-analysis/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/sensitivecontentanalysis/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-sensitive-content-analysis/0.3.1")] diff --git a/framework-crates/objc2-sensor-kit/Cargo.toml b/framework-crates/objc2-sensor-kit/Cargo.toml index 30c859f04..bb8bd5053 100644 --- a/framework-crates/objc2-sensor-kit/Cargo.toml +++ b/framework-crates/objc2-sensor-kit/Cargo.toml @@ -82,3 +82,4 @@ objc2-core-location = ["dep:objc2-core-location"] objc2-core-media = ["dep:objc2-core-media"] objc2-sound-analysis = ["dep:objc2-sound-analysis"] objc2-speech = ["dep:objc2-speech"] +unstable-darwin-objc = [] diff --git a/framework-crates/objc2-sensor-kit/src/lib.rs b/framework-crates/objc2-sensor-kit/src/lib.rs index e5a810dc4..28467f4f2 100644 --- a/framework-crates/objc2-sensor-kit/src/lib.rs +++ b/framework-crates/objc2-sensor-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/sensorkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-sensor-kit/0.3.1")] diff --git a/framework-crates/objc2-service-management/Cargo.toml b/framework-crates/objc2-service-management/Cargo.toml index 12fd87e32..1afbadd98 100644 --- a/framework-crates/objc2-service-management/Cargo.toml +++ b/framework-crates/objc2-service-management/Cargo.toml @@ -63,6 +63,7 @@ objc2 = [ objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-foundation = ["dep:objc2-foundation"] objc2-security = ["dep:objc2-security"] +unstable-darwin-objc = [] SMAppService = [] SMErrors = [] diff --git a/framework-crates/objc2-service-management/src/lib.rs b/framework-crates/objc2-service-management/src/lib.rs index 9eac4d3f2..edfcbc135 100644 --- a/framework-crates/objc2-service-management/src/lib.rs +++ b/framework-crates/objc2-service-management/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/servicemanagement/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-service-management/0.3.1")] diff --git a/framework-crates/objc2-shared-with-you-core/Cargo.toml b/framework-crates/objc2-shared-with-you-core/Cargo.toml index 0c5b9eb69..07f485929 100644 --- a/framework-crates/objc2-shared-with-you-core/Cargo.toml +++ b/framework-crates/objc2-shared-with-you-core/Cargo.toml @@ -51,6 +51,7 @@ default = [ ] std = ["alloc"] alloc = [] +unstable-darwin-objc = [] SWAction = [ "objc2-foundation/NSObject", diff --git a/framework-crates/objc2-shared-with-you-core/src/lib.rs b/framework-crates/objc2-shared-with-you-core/src/lib.rs index 3395f3271..5542a7529 100644 --- a/framework-crates/objc2-shared-with-you-core/src/lib.rs +++ b/framework-crates/objc2-shared-with-you-core/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/sharedwithyoucore/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-shared-with-you-core/0.3.1")] diff --git a/framework-crates/objc2-shared-with-you/Cargo.toml b/framework-crates/objc2-shared-with-you/Cargo.toml index cf431c58f..2a1ceb829 100644 --- a/framework-crates/objc2-shared-with-you/Cargo.toml +++ b/framework-crates/objc2-shared-with-you/Cargo.toml @@ -91,6 +91,7 @@ objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-shared-with-you-core = ["dep:objc2-shared-with-you-core"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] NSItemProvider_SWCollaborationMetadata = ["objc2-foundation/NSString"] NSPasteboardItem_SWCollaborationMetadata = [] diff --git a/framework-crates/objc2-shared-with-you/src/lib.rs b/framework-crates/objc2-shared-with-you/src/lib.rs index b78e47233..27e826873 100644 --- a/framework-crates/objc2-shared-with-you/src/lib.rs +++ b/framework-crates/objc2-shared-with-you/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/sharedwithyou/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-shared-with-you/0.3.1")] diff --git a/framework-crates/objc2-shazam-kit/Cargo.toml b/framework-crates/objc2-shazam-kit/Cargo.toml index 2d260c55b..ee8c1f4a9 100644 --- a/framework-crates/objc2-shazam-kit/Cargo.toml +++ b/framework-crates/objc2-shazam-kit/Cargo.toml @@ -66,6 +66,7 @@ block2 = ["dep:block2"] objc2-av-foundation = ["dep:objc2-av-foundation"] objc2-avf-audio = ["dep:objc2-avf-audio"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] +unstable-darwin-objc = [] SHCatalog = ["objc2-foundation/NSDate"] SHCustomCatalog = [ diff --git a/framework-crates/objc2-shazam-kit/src/lib.rs b/framework-crates/objc2-shazam-kit/src/lib.rs index 97fe20a96..3f1c74a99 100644 --- a/framework-crates/objc2-shazam-kit/src/lib.rs +++ b/framework-crates/objc2-shazam-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/shazamkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-shazam-kit/0.3.1")] diff --git a/framework-crates/objc2-social/Cargo.toml b/framework-crates/objc2-social/Cargo.toml index dea4a750e..2b54a2564 100644 --- a/framework-crates/objc2-social/Cargo.toml +++ b/framework-crates/objc2-social/Cargo.toml @@ -60,6 +60,7 @@ alloc = [] block2 = ["dep:block2"] objc2-accounts = ["dep:objc2-accounts"] objc2-app-kit = ["dep:objc2-app-kit"] +unstable-darwin-objc = [] SLComposeServiceViewController = [ "objc2-foundation/NSBundle", diff --git a/framework-crates/objc2-social/src/lib.rs b/framework-crates/objc2-social/src/lib.rs index 279849c6e..0c592fa81 100644 --- a/framework-crates/objc2-social/src/lib.rs +++ b/framework-crates/objc2-social/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/social/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-social/0.3.1")] diff --git a/framework-crates/objc2-sound-analysis/Cargo.toml b/framework-crates/objc2-sound-analysis/Cargo.toml index 02835fe58..3671575f8 100644 --- a/framework-crates/objc2-sound-analysis/Cargo.toml +++ b/framework-crates/objc2-sound-analysis/Cargo.toml @@ -67,6 +67,7 @@ block2 = ["dep:block2"] objc2-avf-audio = ["dep:objc2-avf-audio"] objc2-core-media = ["dep:objc2-core-media"] objc2-core-ml = ["dep:objc2-core-ml"] +unstable-darwin-objc = [] SNAnalyzer = [ "objc2-foundation/NSError", diff --git a/framework-crates/objc2-sound-analysis/src/lib.rs b/framework-crates/objc2-sound-analysis/src/lib.rs index 23ac6c0f3..645ab3ca0 100644 --- a/framework-crates/objc2-sound-analysis/src/lib.rs +++ b/framework-crates/objc2-sound-analysis/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/soundanalysis/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-sound-analysis/0.3.1")] diff --git a/framework-crates/objc2-speech/Cargo.toml b/framework-crates/objc2-speech/Cargo.toml index 4edecd6c1..9c5b27d0f 100644 --- a/framework-crates/objc2-speech/Cargo.toml +++ b/framework-crates/objc2-speech/Cargo.toml @@ -62,6 +62,7 @@ alloc = [] block2 = ["dep:block2"] objc2-avf-audio = ["dep:objc2-avf-audio"] objc2-core-media = ["dep:objc2-core-media"] +unstable-darwin-objc = [] SFErrors = [ "objc2-foundation/NSError", diff --git a/framework-crates/objc2-speech/src/lib.rs b/framework-crates/objc2-speech/src/lib.rs index 945103a7d..5f40fd39f 100644 --- a/framework-crates/objc2-speech/src/lib.rs +++ b/framework-crates/objc2-speech/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/speech/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-speech/0.3.1")] diff --git a/framework-crates/objc2-sprite-kit/Cargo.toml b/framework-crates/objc2-sprite-kit/Cargo.toml index 8ab2902cf..0e5deb7f8 100644 --- a/framework-crates/objc2-sprite-kit/Cargo.toml +++ b/framework-crates/objc2-sprite-kit/Cargo.toml @@ -151,6 +151,7 @@ objc2-core-graphics = ["dep:objc2-core-graphics"] objc2-core-image = ["dep:objc2-core-image"] objc2-gl-kit = ["dep:objc2-gl-kit"] objc2-metal = ["dep:objc2-metal"] +unstable-darwin-objc = [] SK3DNode = [ "objc2-foundation/NSCoder", diff --git a/framework-crates/objc2-sprite-kit/src/lib.rs b/framework-crates/objc2-sprite-kit/src/lib.rs index c5abab408..fda91d8d8 100644 --- a/framework-crates/objc2-sprite-kit/src/lib.rs +++ b/framework-crates/objc2-sprite-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/spritekit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-sprite-kit/0.3.1")] diff --git a/framework-crates/objc2-store-kit/Cargo.toml b/framework-crates/objc2-store-kit/Cargo.toml index 8652ab634..d9c80b361 100644 --- a/framework-crates/objc2-store-kit/Cargo.toml +++ b/framework-crates/objc2-store-kit/Cargo.toml @@ -96,6 +96,7 @@ block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-background-assets = ["dep:objc2-background-assets"] objc2-core-foundation = ["dep:objc2-core-foundation"] +unstable-darwin-objc = [] SKANError = ["objc2-foundation/NSString"] SKAdImpression = [ diff --git a/framework-crates/objc2-store-kit/src/lib.rs b/framework-crates/objc2-store-kit/src/lib.rs index bb34b2ee6..337f0c65d 100644 --- a/framework-crates/objc2-store-kit/src/lib.rs +++ b/framework-crates/objc2-store-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/storekit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-store-kit/0.3.1")] diff --git a/framework-crates/objc2-symbols/Cargo.toml b/framework-crates/objc2-symbols/Cargo.toml index 86459193b..83f2decd7 100644 --- a/framework-crates/objc2-symbols/Cargo.toml +++ b/framework-crates/objc2-symbols/Cargo.toml @@ -39,5 +39,6 @@ default = [ ] std = ["alloc"] alloc = [] +unstable-darwin-objc = [] NSSymbolEffect = ["objc2-foundation/NSObject"] diff --git a/framework-crates/objc2-symbols/src/lib.rs b/framework-crates/objc2-symbols/src/lib.rs index 199bc110a..244dff081 100644 --- a/framework-crates/objc2-symbols/src/lib.rs +++ b/framework-crates/objc2-symbols/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/symbols/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-symbols/0.3.1")] diff --git a/framework-crates/objc2-system-configuration/Cargo.toml b/framework-crates/objc2-system-configuration/Cargo.toml index a5a85a72f..f9f022879 100644 --- a/framework-crates/objc2-system-configuration/Cargo.toml +++ b/framework-crates/objc2-system-configuration/Cargo.toml @@ -70,6 +70,7 @@ objc2 = [ "objc2-security?/objc2", ] objc2-security = ["dep:objc2-security"] +unstable-darwin-objc = [] CaptiveNetwork = [ "objc2-core-foundation/CFArray", diff --git a/framework-crates/objc2-system-configuration/src/lib.rs b/framework-crates/objc2-system-configuration/src/lib.rs index 38107022e..071efb694 100644 --- a/framework-crates/objc2-system-configuration/src/lib.rs +++ b/framework-crates/objc2-system-configuration/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/systemconfiguration/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-system-configuration/0.3.1")] diff --git a/framework-crates/objc2-system-extensions/Cargo.toml b/framework-crates/objc2-system-extensions/Cargo.toml index 55256e19d..4c305a705 100644 --- a/framework-crates/objc2-system-extensions/Cargo.toml +++ b/framework-crates/objc2-system-extensions/Cargo.toml @@ -46,3 +46,4 @@ default = [ std = ["alloc"] alloc = [] dispatch2 = ["dep:dispatch2"] +unstable-darwin-objc = [] diff --git a/framework-crates/objc2-system-extensions/src/lib.rs b/framework-crates/objc2-system-extensions/src/lib.rs index 5ebd58f2e..9bc3f7a80 100644 --- a/framework-crates/objc2-system-extensions/src/lib.rs +++ b/framework-crates/objc2-system-extensions/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/systemextensions/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-system-extensions/0.3.1")] diff --git a/framework-crates/objc2-thread-network/Cargo.toml b/framework-crates/objc2-thread-network/Cargo.toml index c43b14cfc..41550f170 100644 --- a/framework-crates/objc2-thread-network/Cargo.toml +++ b/framework-crates/objc2-thread-network/Cargo.toml @@ -41,6 +41,7 @@ default = [ std = ["alloc"] alloc = [] block2 = ["dep:block2"] +unstable-darwin-objc = [] THClient = [ "objc2-foundation/NSData", diff --git a/framework-crates/objc2-thread-network/src/lib.rs b/framework-crates/objc2-thread-network/src/lib.rs index cd47371cd..85008ab99 100644 --- a/framework-crates/objc2-thread-network/src/lib.rs +++ b/framework-crates/objc2-thread-network/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/threadnetwork/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-thread-network/0.3.1")] diff --git a/framework-crates/objc2-tv-ml-kit/Cargo.toml b/framework-crates/objc2-tv-ml-kit/Cargo.toml index 866769333..67750d473 100644 --- a/framework-crates/objc2-tv-ml-kit/Cargo.toml +++ b/framework-crates/objc2-tv-ml-kit/Cargo.toml @@ -84,6 +84,7 @@ objc2-av-foundation = ["dep:objc2-av-foundation"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-javascript-core = ["dep:objc2-javascript-core"] objc2-ui-kit = ["dep:objc2-ui-kit"] +unstable-darwin-objc = [] TVApplicationController = [ "objc2-foundation/NSDictionary", diff --git a/framework-crates/objc2-tv-ml-kit/src/lib.rs b/framework-crates/objc2-tv-ml-kit/src/lib.rs index 7f76f07cb..8e913bc5b 100644 --- a/framework-crates/objc2-tv-ml-kit/src/lib.rs +++ b/framework-crates/objc2-tv-ml-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/tvmlkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-tv-ml-kit/0.3.1")] diff --git a/framework-crates/objc2-tv-services/Cargo.toml b/framework-crates/objc2-tv-services/Cargo.toml index b3222e831..917c7b1d7 100644 --- a/framework-crates/objc2-tv-services/Cargo.toml +++ b/framework-crates/objc2-tv-services/Cargo.toml @@ -67,6 +67,7 @@ TVTopShelfItemCollection = [ bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-core-foundation = ["dep:objc2-core-foundation"] +unstable-darwin-objc = [] NSUserActivity_TVServices = ["objc2-foundation/NSString"] TVAppProfileDescriptor = [ diff --git a/framework-crates/objc2-tv-services/src/lib.rs b/framework-crates/objc2-tv-services/src/lib.rs index 55724a8f3..65388b3e5 100644 --- a/framework-crates/objc2-tv-services/src/lib.rs +++ b/framework-crates/objc2-tv-services/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/tvservices/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-tv-services/0.3.1")] diff --git a/framework-crates/objc2-tv-ui-kit/Cargo.toml b/framework-crates/objc2-tv-ui-kit/Cargo.toml index 28fa148f6..04412d58b 100644 --- a/framework-crates/objc2-tv-ui-kit/Cargo.toml +++ b/framework-crates/objc2-tv-ui-kit/Cargo.toml @@ -57,6 +57,7 @@ alloc = [] block2 = ["dep:block2"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-quartz-core = ["dep:objc2-quartz-core"] +unstable-darwin-objc = [] TVCaptionButtonView = [ "objc2-foundation/NSCoder", diff --git a/framework-crates/objc2-tv-ui-kit/src/lib.rs b/framework-crates/objc2-tv-ui-kit/src/lib.rs index e9794b7e4..9773f461a 100644 --- a/framework-crates/objc2-tv-ui-kit/src/lib.rs +++ b/framework-crates/objc2-tv-ui-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/tvuikit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-tv-ui-kit/0.3.1")] diff --git a/framework-crates/objc2-ui-kit/Cargo.toml b/framework-crates/objc2-ui-kit/Cargo.toml index 31030ade2..a65517883 100644 --- a/framework-crates/objc2-ui-kit/Cargo.toml +++ b/framework-crates/objc2-ui-kit/Cargo.toml @@ -566,6 +566,7 @@ objc2-quartz-core = ["dep:objc2-quartz-core"] objc2-symbols = ["dep:objc2-symbols"] objc2-uniform-type-identifiers = ["dep:objc2-uniform-type-identifiers"] objc2-user-notifications = ["dep:objc2-user-notifications"] +unstable-darwin-objc = [] DocumentManager = [] NSAdaptiveImageGlyph = [ diff --git a/framework-crates/objc2-ui-kit/src/lib.rs b/framework-crates/objc2-ui-kit/src/lib.rs index 28947b2fc..97c626fc3 100644 --- a/framework-crates/objc2-ui-kit/src/lib.rs +++ b/framework-crates/objc2-ui-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/uikit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-ui-kit/0.3.1")] diff --git a/framework-crates/objc2-uniform-type-identifiers/Cargo.toml b/framework-crates/objc2-uniform-type-identifiers/Cargo.toml index 7263d6f3d..4a819c05e 100644 --- a/framework-crates/objc2-uniform-type-identifiers/Cargo.toml +++ b/framework-crates/objc2-uniform-type-identifiers/Cargo.toml @@ -47,6 +47,7 @@ default = [ std = ["alloc"] alloc = [] block2 = ["dep:block2"] +unstable-darwin-objc = [] NSItemProvider_UTType = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-uniform-type-identifiers/src/lib.rs b/framework-crates/objc2-uniform-type-identifiers/src/lib.rs index 845c2bd29..e0c16dcf9 100644 --- a/framework-crates/objc2-uniform-type-identifiers/src/lib.rs +++ b/framework-crates/objc2-uniform-type-identifiers/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/uniformtypeidentifiers/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-uniform-type-identifiers/0.3.1")] diff --git a/framework-crates/objc2-user-notifications-ui/Cargo.toml b/framework-crates/objc2-user-notifications-ui/Cargo.toml index 4ea71a723..bf00d4988 100644 --- a/framework-crates/objc2-user-notifications-ui/Cargo.toml +++ b/framework-crates/objc2-user-notifications-ui/Cargo.toml @@ -58,6 +58,7 @@ block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-user-notifications = ["dep:objc2-user-notifications"] +unstable-darwin-objc = [] UNNotificationContentExtension = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-user-notifications-ui/src/lib.rs b/framework-crates/objc2-user-notifications-ui/src/lib.rs index a26733920..683268bda 100644 --- a/framework-crates/objc2-user-notifications-ui/src/lib.rs +++ b/framework-crates/objc2-user-notifications-ui/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/usernotificationsui/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-user-notifications-ui/0.3.1")] diff --git a/framework-crates/objc2-user-notifications/Cargo.toml b/framework-crates/objc2-user-notifications/Cargo.toml index 670479318..2b511a77a 100644 --- a/framework-crates/objc2-user-notifications/Cargo.toml +++ b/framework-crates/objc2-user-notifications/Cargo.toml @@ -63,6 +63,7 @@ alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-core-location = ["dep:objc2-core-location"] +unstable-darwin-objc = [] NSString_UserNotifications = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-user-notifications/src/lib.rs b/framework-crates/objc2-user-notifications/src/lib.rs index a473d9d6a..c8b231ac0 100644 --- a/framework-crates/objc2-user-notifications/src/lib.rs +++ b/framework-crates/objc2-user-notifications/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/usernotifications/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-user-notifications/0.3.1")] diff --git a/framework-crates/objc2-video-subscriber-account/Cargo.toml b/framework-crates/objc2-video-subscriber-account/Cargo.toml index ddeae3c88..f215d05f9 100644 --- a/framework-crates/objc2-video-subscriber-account/Cargo.toml +++ b/framework-crates/objc2-video-subscriber-account/Cargo.toml @@ -63,6 +63,7 @@ alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] objc2-ui-kit = ["dep:objc2-ui-kit"] +unstable-darwin-objc = [] VSAccountApplicationProvider = ["objc2-foundation/NSString"] VSAccountManager = [ diff --git a/framework-crates/objc2-video-subscriber-account/src/lib.rs b/framework-crates/objc2-video-subscriber-account/src/lib.rs index 90755c644..c4aac6b71 100644 --- a/framework-crates/objc2-video-subscriber-account/src/lib.rs +++ b/framework-crates/objc2-video-subscriber-account/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/videosubscriberaccount/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-video-subscriber-account/0.3.1")] diff --git a/framework-crates/objc2-video-toolbox/Cargo.toml b/framework-crates/objc2-video-toolbox/Cargo.toml index 4286fbed4..6c0785510 100644 --- a/framework-crates/objc2-video-toolbox/Cargo.toml +++ b/framework-crates/objc2-video-toolbox/Cargo.toml @@ -119,6 +119,7 @@ objc2-core-media = ["dep:objc2-core-media"] objc2-core-video = ["dep:objc2-core-video"] objc2-foundation = ["dep:objc2-foundation"] objc2-metal = ["dep:objc2-metal"] +unstable-darwin-objc = [] VTBase = [] VTCompressionProperties = [] diff --git a/framework-crates/objc2-video-toolbox/src/lib.rs b/framework-crates/objc2-video-toolbox/src/lib.rs index fec02251e..d0fe559fc 100644 --- a/framework-crates/objc2-video-toolbox/src/lib.rs +++ b/framework-crates/objc2-video-toolbox/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/videotoolbox/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-video-toolbox/0.3.1")] diff --git a/framework-crates/objc2-virtualization/Cargo.toml b/framework-crates/objc2-virtualization/Cargo.toml index 5984f1ec3..7a3b7b260 100644 --- a/framework-crates/objc2-virtualization/Cargo.toml +++ b/framework-crates/objc2-virtualization/Cargo.toml @@ -179,6 +179,7 @@ block2 = ["dep:block2"] dispatch2 = ["dep:dispatch2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation"] +unstable-darwin-objc = [] VZAudioDeviceConfiguration = ["objc2-foundation/NSObject"] VZAudioInputStreamSource = [] diff --git a/framework-crates/objc2-virtualization/src/lib.rs b/framework-crates/objc2-virtualization/src/lib.rs index 3e42203d5..328b24eef 100644 --- a/framework-crates/objc2-virtualization/src/lib.rs +++ b/framework-crates/objc2-virtualization/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/virtualization/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-virtualization/0.3.1")] diff --git a/framework-crates/objc2-vision/Cargo.toml b/framework-crates/objc2-vision/Cargo.toml index a622d6b72..f972f6ee5 100644 --- a/framework-crates/objc2-vision/Cargo.toml +++ b/framework-crates/objc2-vision/Cargo.toml @@ -159,6 +159,7 @@ objc2-core-media = ["dep:objc2-core-media"] objc2-core-ml = ["dep:objc2-core-ml"] objc2-core-video = ["dep:objc2-core-video"] objc2-image-io = ["dep:objc2-image-io"] +unstable-darwin-objc = [] VNCalculateImageAestheticsScoresRequest = [ "objc2-foundation/NSArray", diff --git a/framework-crates/objc2-vision/src/lib.rs b/framework-crates/objc2-vision/src/lib.rs index 5dac625aa..6ec486b12 100644 --- a/framework-crates/objc2-vision/src/lib.rs +++ b/framework-crates/objc2-vision/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/vision/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-vision/0.3.1")] diff --git a/framework-crates/objc2-watch-connectivity/Cargo.toml b/framework-crates/objc2-watch-connectivity/Cargo.toml index f6d4efc85..a0d1aa9f6 100644 --- a/framework-crates/objc2-watch-connectivity/Cargo.toml +++ b/framework-crates/objc2-watch-connectivity/Cargo.toml @@ -44,6 +44,7 @@ default = [ std = ["alloc"] alloc = [] block2 = ["dep:block2"] +unstable-darwin-objc = [] WCDefines = [] WCError = ["objc2-foundation/NSString"] diff --git a/framework-crates/objc2-watch-connectivity/src/lib.rs b/framework-crates/objc2-watch-connectivity/src/lib.rs index a1da58d79..d1f8e2ad2 100644 --- a/framework-crates/objc2-watch-connectivity/src/lib.rs +++ b/framework-crates/objc2-watch-connectivity/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/watchconnectivity/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-watch-connectivity/0.3.1")] diff --git a/framework-crates/objc2-watch-kit/Cargo.toml b/framework-crates/objc2-watch-kit/Cargo.toml index 382d28ba0..324e34493 100644 --- a/framework-crates/objc2-watch-kit/Cargo.toml +++ b/framework-crates/objc2-watch-kit/Cargo.toml @@ -134,6 +134,7 @@ objc2-map-kit = ["dep:objc2-map-kit"] objc2-scene-kit = ["dep:objc2-scene-kit"] objc2-ui-kit = ["dep:objc2-ui-kit"] objc2-user-notifications = ["dep:objc2-user-notifications"] +unstable-darwin-objc = [] WKAccessibility = ["objc2-foundation/NSString"] WKAlertAction = ["objc2-foundation/NSString"] diff --git a/framework-crates/objc2-watch-kit/src/lib.rs b/framework-crates/objc2-watch-kit/src/lib.rs index d778458b4..502844ded 100644 --- a/framework-crates/objc2-watch-kit/src/lib.rs +++ b/framework-crates/objc2-watch-kit/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/watchkit/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-watch-kit/0.3.1")] diff --git a/framework-crates/objc2-web-kit/Cargo.toml b/framework-crates/objc2-web-kit/Cargo.toml index c2995f078..0ee327431 100644 --- a/framework-crates/objc2-web-kit/Cargo.toml +++ b/framework-crates/objc2-web-kit/Cargo.toml @@ -302,6 +302,7 @@ objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-javascript-core = ["dep:objc2-javascript-core"] objc2-security = ["dep:objc2-security"] +unstable-darwin-objc = [] DOM = [] DOMAbstractView = ["objc2-foundation/NSObject"] diff --git a/framework-crates/objc2-web-kit/src/lib.rs b/framework-crates/objc2-web-kit/src/lib.rs index 681f3c824..02f002654 100644 --- a/framework-crates/objc2-web-kit/src/lib.rs +++ b/framework-crates/objc2-web-kit/src/lib.rs @@ -7,6 +7,7 @@ #![recursion_limit = "512"] #![allow(non_snake_case)] #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-web-kit/0.3.1")] diff --git a/framework-crates/objc2-xc-test/Cargo.toml b/framework-crates/objc2-xc-test/Cargo.toml index e91903fdb..d5007a622 100644 --- a/framework-crates/objc2-xc-test/Cargo.toml +++ b/framework-crates/objc2-xc-test/Cargo.toml @@ -71,3 +71,4 @@ alloc = [] block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-xc-ui-automation = ["dep:objc2-xc-ui-automation"] +unstable-darwin-objc = [] diff --git a/framework-crates/objc2-xc-test/src/lib.rs b/framework-crates/objc2-xc-test/src/lib.rs index b4b63c38c..898978522 100644 --- a/framework-crates/objc2-xc-test/src/lib.rs +++ b/framework-crates/objc2-xc-test/src/lib.rs @@ -18,6 +18,7 @@ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html //! [examples-testing]: https://github.com/madsmtm/objc2/tree/main/examples/testing-helper #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-xc-test/0.3.1")] diff --git a/framework-crates/objc2-xc-ui-automation/Cargo.toml b/framework-crates/objc2-xc-ui-automation/Cargo.toml index 6481e37a4..b3f692232 100644 --- a/framework-crates/objc2-xc-ui-automation/Cargo.toml +++ b/framework-crates/objc2-xc-ui-automation/Cargo.toml @@ -67,3 +67,4 @@ block2 = ["dep:block2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation"] objc2-core-location = ["dep:objc2-core-location"] +unstable-darwin-objc = [] diff --git a/framework-crates/objc2-xc-ui-automation/src/lib.rs b/framework-crates/objc2-xc-ui-automation/src/lib.rs index 27ea67711..b80f8307f 100644 --- a/framework-crates/objc2-xc-ui-automation/src/lib.rs +++ b/framework-crates/objc2-xc-ui-automation/src/lib.rs @@ -5,6 +5,7 @@ //! [apple-doc]: https://developer.apple.com/documentation/xcuiautomation/ //! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html #![no_std] +#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Update in Cargo.toml as well. #![doc(html_root_url = "https://docs.rs/objc2-xc-ui-automation/0.3.1")]