From 74d3254676058d3c9fcf6d837108b060ef3e0c45 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Wed, 25 Dec 2024 12:39:17 +0100 Subject: [PATCH] Don't automatically enable std and alloc features of dependencies Unless it's currently required. Part of https://github.com/madsmtm/objc2/issues/656. --- crates/block2/Cargo.toml | 8 ++--- crates/block2/src/lib.rs | 7 +++-- crates/block2/src/rc_block.rs | 4 +-- crates/block2/src/stack.rs | 4 +-- crates/block2/src/traits.rs | 15 +++++---- crates/dispatch2/CHANGELOG.md | 1 + crates/dispatch2/Cargo.toml | 10 +++--- .../header-translator/src/default_cargo.toml | 2 -- crates/header-translator/src/library.rs | 31 +++++++++++++------ crates/objc2-encode/src/lib.rs | 4 +-- crates/objc2/Cargo.toml | 7 +++-- .../src/topics/about_generated/CHANGELOG.md | 3 ++ .../crates/test_define_class/Cargo.toml | 20 ++++++------ crates/test-ui/Cargo.toml | 4 +-- crates/tests/Cargo.toml | 2 +- .../objc2-accessibility/Cargo.toml | 12 +++---- framework-crates/objc2-accounts/Cargo.toml | 12 +++---- framework-crates/objc2-ad-services/Cargo.toml | 10 +++--- framework-crates/objc2-ad-support/Cargo.toml | 10 +++--- framework-crates/objc2-app-kit/Cargo.toml | 12 +++---- .../Cargo.toml | 10 +++--- .../objc2-audio-toolbox/Cargo.toml | 12 +++---- .../objc2-authentication-services/Cargo.toml | 12 +++---- .../Cargo.toml | 10 +++--- framework-crates/objc2-automator/Cargo.toml | 10 +++--- .../objc2-av-foundation/Cargo.toml | 12 +++---- framework-crates/objc2-av-kit/Cargo.toml | 12 +++---- framework-crates/objc2-avf-audio/Cargo.toml | 12 +++---- .../objc2-background-assets/Cargo.toml | 12 +++---- .../objc2-background-tasks/Cargo.toml | 12 +++---- .../objc2-business-chat/Cargo.toml | 10 +++--- framework-crates/objc2-call-kit/Cargo.toml | 12 +++---- framework-crates/objc2-class-kit/Cargo.toml | 12 +++---- framework-crates/objc2-cloud-kit/Cargo.toml | 12 +++---- framework-crates/objc2-contacts-ui/Cargo.toml | 10 +++--- framework-crates/objc2-contacts/Cargo.toml | 12 +++---- .../objc2-core-audio-types/Cargo.toml | 8 ++--- .../objc2-core-bluetooth/Cargo.toml | 10 +++--- framework-crates/objc2-core-data/Cargo.toml | 12 +++---- .../objc2-core-foundation/Cargo.toml | 10 +++--- .../objc2-core-graphics/Cargo.toml | 10 +++--- framework-crates/objc2-core-image/Cargo.toml | 12 +++---- .../objc2-core-location/Cargo.toml | 12 +++---- framework-crates/objc2-core-media/Cargo.toml | 10 +++--- framework-crates/objc2-core-ml/Cargo.toml | 12 +++---- framework-crates/objc2-core-motion/Cargo.toml | 12 +++---- framework-crates/objc2-core-text/Cargo.toml | 10 +++--- framework-crates/objc2-core-video/Cargo.toml | 10 +++--- framework-crates/objc2-core-wlan/Cargo.toml | 10 +++--- .../objc2-data-detection/Cargo.toml | 10 +++--- .../objc2-device-check/Cargo.toml | 12 +++---- .../objc2-event-kit-ui/Cargo.toml | 10 +++--- framework-crates/objc2-event-kit/Cargo.toml | 12 +++---- .../objc2-exception-handling/Cargo.toml | 10 +++--- .../objc2-extension-kit/Cargo.toml | 10 +++--- .../objc2-external-accessory/Cargo.toml | 12 +++---- .../objc2-file-provider-ui/Cargo.toml | 12 +++---- .../objc2-file-provider/Cargo.toml | 12 +++---- framework-crates/objc2-finder-sync/Cargo.toml | 12 +++---- framework-crates/objc2-foundation/Cargo.toml | 10 +++--- .../objc2-game-controller/Cargo.toml | 12 +++---- framework-crates/objc2-game-kit/Cargo.toml | 12 +++---- framework-crates/objc2-health-kit/Cargo.toml | 12 +++---- .../objc2-identity-lookup/Cargo.toml | 12 +++---- .../objc2-input-method-kit/Cargo.toml | 10 +++--- framework-crates/objc2-io-surface/Cargo.toml | 10 +++--- .../objc2-link-presentation/Cargo.toml | 12 +++---- .../Cargo.toml | 12 +++---- .../objc2-local-authentication/Cargo.toml | 12 +++---- framework-crates/objc2-mail-kit/Cargo.toml | 12 +++---- framework-crates/objc2-map-kit/Cargo.toml | 12 +++---- .../objc2-media-player/Cargo.toml | 12 +++---- framework-crates/objc2-metal-fx/Cargo.toml | 10 +++--- framework-crates/objc2-metal-kit/Cargo.toml | 12 +++---- .../Cargo.toml | 12 +++---- .../Cargo.toml | 12 +++---- framework-crates/objc2-metal/Cargo.toml | 12 +++---- framework-crates/objc2-metal/src/packed.rs | 1 + framework-crates/objc2-metric-kit/Cargo.toml | 10 +++--- framework-crates/objc2-ml-compute/Cargo.toml | 12 +++---- .../objc2-multipeer-connectivity/Cargo.toml | 12 +++---- .../objc2-natural-language/Cargo.toml | 12 +++---- .../objc2-nearby-interaction/Cargo.toml | 10 +++--- .../objc2-network-extension/Cargo.toml | 12 +++---- .../objc2-open-directory/Cargo.toml | 10 +++--- framework-crates/objc2-osa-kit/Cargo.toml | 10 +++--- framework-crates/objc2-photos-ui/Cargo.toml | 12 +++---- framework-crates/objc2-photos/Cargo.toml | 12 +++---- framework-crates/objc2-quartz-core/Cargo.toml | 12 +++---- .../objc2-screen-capture-kit/Cargo.toml | 12 +++---- .../objc2-screen-saver/Cargo.toml | 10 +++--- .../Cargo.toml | 12 +++---- .../objc2-service-management/Cargo.toml | 12 +++---- framework-crates/objc2-social/Cargo.toml | 12 +++---- .../objc2-sound-analysis/Cargo.toml | 12 +++---- framework-crates/objc2-speech/Cargo.toml | 12 +++---- framework-crates/objc2-store-kit/Cargo.toml | 12 +++---- framework-crates/objc2-symbols/Cargo.toml | 10 +++--- .../objc2-system-extensions/Cargo.toml | 10 +++--- framework-crates/objc2-ui-kit/Cargo.toml | 12 +++---- .../objc2-uniform-type-identifiers/Cargo.toml | 12 +++---- .../objc2-user-notifications/Cargo.toml | 12 +++---- .../objc2-virtualization/Cargo.toml | 12 +++---- framework-crates/objc2-vision/Cargo.toml | 12 +++---- framework-crates/objc2-web-kit/Cargo.toml | 12 +++---- 105 files changed, 481 insertions(+), 648 deletions(-) diff --git a/crates/block2/Cargo.toml b/crates/block2/Cargo.toml index 764949609..399564a2e 100644 --- a/crates/block2/Cargo.toml +++ b/crates/block2/Cargo.toml @@ -22,8 +22,8 @@ workspace = true default = ["std"] # Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std"] -alloc = ["objc2/alloc"] +std = ["alloc"] +alloc = [] # Deprecated; this is the default on Apple platforms, and not applicable on other platforms. apple = [] @@ -48,12 +48,12 @@ unstable-objfw = [] unstable-private = [] [dependencies] -objc2 = { path = "../objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../objc2", version = "0.5.2", default-features = false, features = ["std"] } [dev-dependencies.objc2-foundation] path = "../../framework-crates/objc2-foundation" default-features = false -features = ["NSError"] +features = ["std", "NSError"] [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" diff --git a/crates/block2/src/lib.rs b/crates/block2/src/lib.rs index 5d2df7974..5ccf99a35 100644 --- a/crates/block2/src/lib.rs +++ b/crates/block2/src/lib.rs @@ -304,12 +304,13 @@ #![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg_hide))] #![cfg_attr(docsrs, doc(cfg_hide(doc)))] +#[cfg(not(feature = "alloc"))] +compile_error!("The `alloc` feature currently must be enabled."); + extern crate alloc; +#[cfg(feature = "std")] extern crate std; -#[cfg(not(feature = "std"))] -compile_error!("The `std` feature currently must be enabled."); - #[cfg(all( not(docsrs), not(any( diff --git a/crates/block2/src/rc_block.rs b/crates/block2/src/rc_block.rs index 143901796..4a6a2fb6d 100644 --- a/crates/block2/src/rc_block.rs +++ b/crates/block2/src/rc_block.rs @@ -154,7 +154,7 @@ impl RcBlock { /// # Example /// /// ``` - /// # use std::ffi::CStr; + /// # use core::ffi::CStr; /// # use block2::{Block, ManualBlockEncoding, RcBlock}; /// # use objc2_foundation::NSError; /// # @@ -173,7 +173,7 @@ impl RcBlock { /// let my_block = RcBlock::with_encoding::<_, _, _, MyBlockEncoding>(|_err: *mut NSError| { /// 42i32 /// }); - /// assert_eq!(my_block.call((std::ptr::null_mut(),)), 42); + /// assert_eq!(my_block.call((core::ptr::null_mut(),)), 42); /// ``` #[inline] pub fn with_encoding<'f, A, R, Closure, E>(closure: Closure) -> Self diff --git a/crates/block2/src/stack.rs b/crates/block2/src/stack.rs index 3c948fe5b..3674bab90 100644 --- a/crates/block2/src/stack.rs +++ b/crates/block2/src/stack.rs @@ -205,7 +205,7 @@ where /// # Example /// /// ``` - /// # use std::ffi::CStr; + /// # use core::ffi::CStr; /// # use block2::{Block, ManualBlockEncoding, StackBlock}; /// # use objc2_foundation::NSError; /// # @@ -224,7 +224,7 @@ where /// let my_block = StackBlock::with_encoding::(|_err: *mut NSError| { /// 42i32 /// }); - /// assert_eq!(my_block.call((std::ptr::null_mut(),)), 42); + /// assert_eq!(my_block.call((core::ptr::null_mut(),)), 42); /// ``` #[inline] pub fn with_encoding(closure: Closure) -> Self diff --git a/crates/block2/src/traits.rs b/crates/block2/src/traits.rs index 62b01a3e7..d0cf44386 100644 --- a/crates/block2/src/traits.rs +++ b/crates/block2/src/traits.rs @@ -1,8 +1,7 @@ +use core::ffi::CStr; use core::marker::PhantomData; use core::mem; use core::ptr; -// TODO: use `core` when the MSRV is at least 1.64. -use std::ffi::CStr; use objc2::encode::EncodeArguments; use objc2::encode::{EncodeArgument, EncodeReturn}; @@ -347,7 +346,7 @@ mod tests { unsafe { CStr::from_bytes_with_nul_unchecked(b"C12@?0i4f8\0") }; } // HACK: use `identity` in order to circumvent a Clippy warning. - assert!(!std::convert::identity(UserSpecified::::IS_NONE)); + assert!(!core::convert::identity(UserSpecified::::IS_NONE)); // No input + no output case. struct Enc2; @@ -361,7 +360,7 @@ mod tests { const ENCODING_CSTR: &'static CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"v4@?0\0") }; } - assert!(!std::convert::identity(UserSpecified::::IS_NONE)); + assert!(!core::convert::identity(UserSpecified::::IS_NONE)); // Ensure we don't rely on the encoding string's emptiness. struct Enc3; @@ -371,14 +370,14 @@ mod tests { const ENCODING_CSTR: &'static CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\0") }; } - assert!(!std::convert::identity(UserSpecified::::IS_NONE)); + assert!(!core::convert::identity(UserSpecified::::IS_NONE)); // Only `NoBlockEncoding` should be `IS_NONE`. - assert!(std::convert::identity(NoBlockEncoding::<(), ()>::IS_NONE)); - assert!(std::convert::identity( + assert!(core::convert::identity(NoBlockEncoding::<(), ()>::IS_NONE)); + assert!(core::convert::identity( NoBlockEncoding::<(i32, f32), u8>::IS_NONE )); - assert!(std::convert::identity( + assert!(core::convert::identity( NoBlockEncoding::<(*const u8,), *const c_char>::IS_NONE )); } diff --git a/crates/dispatch2/CHANGELOG.md b/crates/dispatch2/CHANGELOG.md index ef58af8e6..978ad5ce4 100644 --- a/crates/dispatch2/CHANGELOG.md +++ b/crates/dispatch2/CHANGELOG.md @@ -50,6 +50,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). crate. - Added `Once`, a wrapper over `dispatch_once_f` which works similarly to `std::sync::Once`. +- Added `#![no_std]` support ### Changed - Moved to the `objc2` project. diff --git a/crates/dispatch2/Cargo.toml b/crates/dispatch2/Cargo.toml index ceea6d376..6b5a3a5a5 100644 --- a/crates/dispatch2/Cargo.toml +++ b/crates/dispatch2/Cargo.toml @@ -18,9 +18,9 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false } -block2 = { path = "../block2", version = "0.5.1", default-features = false, optional = true } +block2 = { path = "../block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } libc = { version = "0.2.80", default-features = false, optional = true } -objc2 = { path = "../objc2", version = "0.5.2", default-features = false, optional = true } +objc2 = { path = "../objc2", version = "0.5.2", default-features = false, optional = true, features = ["std"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -39,10 +39,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags/std", "block2?/std", "libc?/std", "objc2?/std"] -alloc = ["block2?/alloc", "objc2?/alloc"] +std = ["alloc", "bitflags/std"] +alloc = [] block2 = ["dep:block2"] libc = ["dep:libc"] objc2 = ["dep:objc2"] diff --git a/crates/header-translator/src/default_cargo.toml b/crates/header-translator/src/default_cargo.toml index 8e1483fd6..c9f323c67 100644 --- a/crates/header-translator/src/default_cargo.toml +++ b/crates/header-translator/src/default_cargo.toml @@ -26,7 +26,5 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. std = ["alloc"] alloc = [] diff --git a/crates/header-translator/src/library.rs b/crates/header-translator/src/library.rs index 9c9efac79..e04c85270 100644 --- a/crates/header-translator/src/library.rs +++ b/crates/header-translator/src/library.rs @@ -116,6 +116,17 @@ impl Library { } } + for (krate, (_, _, krate_features)) in &mut dependencies { + // std is currently required for objc2 + if *krate == "objc2" { + krate_features.insert("std".into()); + } + // alloc is currently required for these crates + if matches!(*krate, "block2" | "dispatch2" | "objc2-foundation") { + krate_features.insert("alloc".into()); + } + } + dependencies } @@ -273,6 +284,10 @@ see that for related crates.", self.data.krate)?; (false, false) => format!("../{krate}"), }; let mut table = match *krate { + "dispatch2" => InlineTable::from_iter([ + ("path", Value::from(path)), + ("version", Value::from("0.1.0")), + ]), "objc2" => InlineTable::from_iter([ ("path", Value::from(path)), ("version", Value::from("0.5.2")), @@ -327,19 +342,15 @@ see that for related crates.", self.data.krate)?; .entry(krate) .or_insert(Item::Value(Value::InlineTable(table))); - cargo_toml["features"]["std"] - .as_array_mut() - .unwrap() - .push(Value::from(format!( - "{krate}{}/std", - if *required { "" } else { "?" }, - ))); - if *krate != "bitflags" && *krate != "libc" { - cargo_toml["features"]["alloc"] + // Bitflags is more of an "internal" dependency, just like + // objc2-encode is mostly an internal dependency to objc2, so it's + // fine to special-case std for that here. + if *krate == "bitflags" { + cargo_toml["features"]["std"] .as_array_mut() .unwrap() .push(Value::from(format!( - "{krate}{}/alloc", + "{krate}{}/std", if *required { "" } else { "?" }, ))); } diff --git a/crates/objc2-encode/src/lib.rs b/crates/objc2-encode/src/lib.rs index a50ab688d..58e11ff03 100644 --- a/crates/objc2-encode/src/lib.rs +++ b/crates/objc2-encode/src/lib.rs @@ -45,12 +45,10 @@ #[cfg(not(feature = "alloc"))] compile_error!("the `alloc` feature currently must be enabled"); +extern crate alloc; #[cfg(any(feature = "std", doc))] extern crate std; -#[cfg(any(feature = "alloc", test))] -extern crate alloc; - mod encoding; mod encoding_box; mod helper; diff --git a/crates/objc2/Cargo.toml b/crates/objc2/Cargo.toml index fbff87ff9..0911f31b8 100644 --- a/crates/objc2/Cargo.toml +++ b/crates/objc2/Cargo.toml @@ -25,8 +25,8 @@ workspace = true default = ["std"] # Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2-encode/std", "block2/std", "objc2-foundation/std", "objc2-exception-helper?/std"] -alloc = ["objc2-encode/alloc", "block2/alloc", "objc2-foundation/alloc", "objc2-exception-helper?/alloc"] +std = ["alloc", "objc2-encode/std"] +alloc = ["objc2-encode/alloc"] # Enables `objc2::exception::throw` and `objc2::exception::catch` exception = ["dep:objc2-exception-helper"] @@ -125,11 +125,12 @@ objc2-exception-helper = { path = "../objc2-exception-helper", version = "0.1.0" iai = { version = "0.1", git = "https://github.com/madsmtm/iai", branch = "callgrind" } static_assertions = "1.1.0" memoffset = "0.9.0" -block2 = { path = "../block2", default-features = false } +block2 = { path = "../block2" } objc2-core-foundation = { path = "../../framework-crates/objc2-core-foundation", default-features = false, features = [ "CFCGTypes", ] } objc2-foundation = { path = "../../framework-crates/objc2-foundation", default-features = false, features = [ + "std", "NSArray", "NSDate", "NSDictionary", diff --git a/crates/objc2/src/topics/about_generated/CHANGELOG.md b/crates/objc2/src/topics/about_generated/CHANGELOG.md index 2b271be4a..af55004bd 100644 --- a/crates/objc2/src/topics/about_generated/CHANGELOG.md +++ b/crates/objc2/src/topics/about_generated/CHANGELOG.md @@ -105,6 +105,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). * **BREAKING**: The feature flag guarding `SCSensitivityAnalysis` changed. * **BREAKING**: `-[NSSavePanel beginSheetForDirectory:file:modalForWindow:modalDelegate:didEndSelector:contextInfo:]` now takes an optional value as the file path. +* **BREAKING**: No longer automatically enable `std` and `alloc` features of + dependencies. If you want a certain framework crate to use `std` or `alloc` + features, you cannot rely on a higher-level crate to enable that for you. ### Deprecated * Moved `MainThreadMarker` from `objc2-foundation` to `objc2`. diff --git a/crates/test-assembly/crates/test_define_class/Cargo.toml b/crates/test-assembly/crates/test_define_class/Cargo.toml index 965560087..0eb2a9861 100644 --- a/crates/test-assembly/crates/test_define_class/Cargo.toml +++ b/crates/test-assembly/crates/test_define_class/Cargo.toml @@ -8,22 +8,22 @@ publish = false path = "lib.rs" [dependencies] -objc2 = { path = "../../../objc2", optional = true } -objc2-foundation = { path = "../../../../framework-crates/objc2-foundation", optional = true } +objc2 = { path = "../../../objc2" } +objc2-foundation = { path = "../../../../framework-crates/objc2-foundation" } [features] -default = ["all", "objc2", "objc2-foundation"] +default = ["all"] # Runtime -gnustep-1-7 = ["objc2?/gnustep-1-7", "objc2-foundation?/gnustep-1-7"] -gnustep-1-8 = ["gnustep-1-7", "objc2?/gnustep-1-8", "objc2-foundation?/gnustep-1-8"] -gnustep-1-9 = ["gnustep-1-8", "objc2?/gnustep-1-9", "objc2-foundation?/gnustep-1-9"] -gnustep-2-0 = ["gnustep-1-9", "objc2?/gnustep-2-0", "objc2-foundation?/gnustep-2-0"] -gnustep-2-1 = ["gnustep-2-0", "objc2?/gnustep-2-1", "objc2-foundation?/gnustep-2-1"] +gnustep-1-7 = ["objc2/gnustep-1-7", "objc2-foundation/gnustep-1-7"] +gnustep-1-8 = ["gnustep-1-7", "objc2/gnustep-1-8", "objc2-foundation/gnustep-1-8"] +gnustep-1-9 = ["gnustep-1-8", "objc2/gnustep-1-9", "objc2-foundation/gnustep-1-9"] +gnustep-2-0 = ["gnustep-1-9", "objc2/gnustep-2-0", "objc2-foundation/gnustep-2-0"] +gnustep-2-1 = ["gnustep-2-0", "objc2/gnustep-2-1", "objc2-foundation/gnustep-2-1"] -all = ["objc2-foundation?/block2", "objc2-foundation?/NSObject", "objc2-foundation?/NSZone"] +all = ["objc2-foundation/block2", "objc2-foundation/NSObject", "objc2-foundation/NSZone"] # Hack to prevent the feature flag from being enabled in the entire project -assembly-features = ["all", "objc2?/unstable-static-sel-inlined", "objc2?/unstable-static-class-inlined"] +assembly-features = ["all", "objc2/unstable-static-sel-inlined", "objc2/unstable-static-class-inlined"] [package.metadata.release] release = false diff --git a/crates/test-ui/Cargo.toml b/crates/test-ui/Cargo.toml index c30046bba..3bbb1d78c 100644 --- a/crates/test-ui/Cargo.toml +++ b/crates/test-ui/Cargo.toml @@ -39,13 +39,13 @@ gnustep-2-1 = ["gnustep-2-0", "block2/gnustep-2-1", "objc2/gnustep-2-1", "objc2- trybuild = { version = "1.0.72", optional = true } block2 = { path = "../block2" } objc2 = { path = "../objc2" } -objc2-foundation = { path = "../../framework-crates/objc2-foundation" } +objc2-foundation = { path = "../../framework-crates/objc2-foundation", default-features = false, features = ["std"] } # To make CI work [target.'cfg(not(target_vendor = "apple"))'.dependencies] block2 = { path = "../block2", features = ["gnustep-1-7"] } objc2 = { path = "../objc2", features = ["gnustep-1-7"] } -objc2-foundation = { path = "../../framework-crates/objc2-foundation", features = ["gnustep-1-7"] } +objc2-foundation = { path = "../../framework-crates/objc2-foundation", default-features = false, features = ["std", "gnustep-1-7"] } [[bin]] name = "test-ui" diff --git a/crates/tests/Cargo.toml b/crates/tests/Cargo.toml index eef1ec8c6..8f453d987 100644 --- a/crates/tests/Cargo.toml +++ b/crates/tests/Cargo.toml @@ -38,7 +38,7 @@ unstable-objfw = ["block2/unstable-objfw", "objc2/unstable-objfw"] [dependencies] block2 = { path = "../block2" } objc2 = { path = "../objc2" } -objc2-foundation = { path = "../../framework-crates/objc2-foundation" } +objc2-foundation = { path = "../../framework-crates/objc2-foundation", default-features = false, features = ["std"] } [build-dependencies] cc = "1.0" diff --git a/framework-crates/objc2-accessibility/Cargo.toml b/framework-crates/objc2-accessibility/Cargo.toml index 9b06f1ac3..88051f13b 100644 --- a/framework-crates/objc2-accessibility/Cargo.toml +++ b/framework-crates/objc2-accessibility/Cargo.toml @@ -17,11 +17,11 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -38,10 +38,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-core-foundation?/std", "objc2-core-graphics?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-foundation?/alloc", "objc2-core-graphics?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-core-foundation?/bitflags", "objc2-core-graphics?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-core-foundation?/block2", "objc2-core-graphics?/block2", "objc2-foundation/block2"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-core-graphics?/objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] diff --git a/framework-crates/objc2-accounts/Cargo.toml b/framework-crates/objc2-accounts/Cargo.toml index b21d4b29d..7f22191fc 100644 --- a/framework-crates/objc2-accounts/Cargo.toml +++ b/framework-crates/objc2-accounts/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -33,10 +33,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-foundation/block2"] ACAccount = ["objc2-foundation/NSString"] diff --git a/framework-crates/objc2-ad-services/Cargo.toml b/framework-crates/objc2-ad-services/Cargo.toml index d89e4a976..24f27b5e8 100644 --- a/framework-crates/objc2-ad-services/Cargo.toml +++ b/framework-crates/objc2-ad-services/Cargo.toml @@ -16,8 +16,8 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -32,10 +32,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] AAAttribution = [ "objc2-foundation/NSError", diff --git a/framework-crates/objc2-ad-support/Cargo.toml b/framework-crates/objc2-ad-support/Cargo.toml index e828315c8..8b15340d9 100644 --- a/framework-crates/objc2-ad-support/Cargo.toml +++ b/framework-crates/objc2-ad-support/Cargo.toml @@ -16,8 +16,8 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -33,10 +33,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] ASIdentifierManager = ["objc2-foundation/NSUUID"] all = ["ASIdentifierManager"] diff --git a/framework-crates/objc2-app-kit/Cargo.toml b/framework-crates/objc2-app-kit/Cargo.toml index 3b35e6690..4ab33358e 100644 --- a/framework-crates/objc2-app-kit/Cargo.toml +++ b/framework-crates/objc2-app-kit/Cargo.toml @@ -17,11 +17,11 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } libc = { version = "0.2.80", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_vendor = "apple")'.dependencies] objc2-cloud-kit = { path = "../objc2-cloud-kit", version = "0.2.2", default-features = false, optional = true } @@ -45,10 +45,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "libc?/std", "objc2/std", "objc2-cloud-kit?/std", "objc2-core-data?/std", "objc2-core-foundation?/std", "objc2-core-graphics?/std", "objc2-core-image?/std", "objc2-foundation/std", "objc2-quartz-core?/std", "objc2-uniform-type-identifiers?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-cloud-kit?/alloc", "objc2-core-data?/alloc", "objc2-core-foundation?/alloc", "objc2-core-graphics?/alloc", "objc2-core-image?/alloc", "objc2-foundation/alloc", "objc2-quartz-core?/alloc", "objc2-uniform-type-identifiers?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] apple = [] gnustep-1-7 = ["objc2/gnustep-1-7", "block2?/gnustep-1-7", "objc2-foundation/gnustep-1-7", "objc2-core-data?/gnustep-1-7", "objc2-quartz-core?/gnustep-1-7"] gnustep-1-8 = ["gnustep-1-7", "objc2/gnustep-1-8", "block2?/gnustep-1-8", "objc2-foundation/gnustep-1-8", "objc2-core-data?/gnustep-1-8", "objc2-quartz-core?/gnustep-1-8"] diff --git a/framework-crates/objc2-app-tracking-transparency/Cargo.toml b/framework-crates/objc2-app-tracking-transparency/Cargo.toml index 569e210f3..a557a55c8 100644 --- a/framework-crates/objc2-app-tracking-transparency/Cargo.toml +++ b/framework-crates/objc2-app-tracking-transparency/Cargo.toml @@ -16,8 +16,8 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -33,10 +33,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std"] -alloc = ["block2?/alloc", "objc2/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2"] all = ["block2"] diff --git a/framework-crates/objc2-audio-toolbox/Cargo.toml b/framework-crates/objc2-audio-toolbox/Cargo.toml index 327a55132..c552dda01 100644 --- a/framework-crates/objc2-audio-toolbox/Cargo.toml +++ b/framework-crates/objc2-audio-toolbox/Cargo.toml @@ -17,12 +17,12 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } libc = { version = "0.2.80", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-audio-types = { path = "../objc2-core-audio-types", version = "0.2.2", default-features = false, optional = true, features = ["CoreAudioBaseTypes", "objc2"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["CFArray", "CFBase", "CFURL", "objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -38,10 +38,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "libc?/std", "objc2/std", "objc2-core-audio-types?/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-audio-types?/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-core-audio-types?/bitflags", "objc2-core-foundation?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-core-foundation?/block2", "objc2-foundation/block2"] libc = ["dep:libc", "objc2-core-foundation?/libc", "objc2-foundation/libc"] diff --git a/framework-crates/objc2-authentication-services/Cargo.toml b/framework-crates/objc2-authentication-services/Cargo.toml index ec0c9d73c..521a3ca1c 100644 --- a/framework-crates/objc2-authentication-services/Cargo.toml +++ b/framework-crates/objc2-authentication-services/Cargo.toml @@ -17,10 +17,10 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false } @@ -40,10 +40,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-app-kit/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-app-kit/bitflags", "objc2-core-foundation?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-app-kit/block2", "objc2-core-foundation?/block2", "objc2-foundation/block2"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-app-kit/objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] diff --git a/framework-crates/objc2-automatic-assessment-configuration/Cargo.toml b/framework-crates/objc2-automatic-assessment-configuration/Cargo.toml index cf02882da..e6be0626b 100644 --- a/framework-crates/objc2-automatic-assessment-configuration/Cargo.toml +++ b/framework-crates/objc2-automatic-assessment-configuration/Cargo.toml @@ -17,8 +17,8 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["NSDictionary", "NSError", "NSObject", "NSString"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["NSDictionary", "NSError", "NSObject", "NSString", "alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -33,9 +33,7 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags/std", "objc2/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags/std"] +alloc = [] all = [] diff --git a/framework-crates/objc2-automator/Cargo.toml b/framework-crates/objc2-automator/Cargo.toml index 7f2142270..b6b4e5bac 100644 --- a/framework-crates/objc2-automator/Cargo.toml +++ b/framework-crates/objc2-automator/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-osa-kit = { path = "../objc2-osa-kit", version = "0.2.2", default-features = false, optional = true } [package.metadata.docs.rs] @@ -34,10 +34,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-app-kit?/std", "objc2-core-foundation?/std", "objc2-foundation/std", "objc2-osa-kit?/std"] -alloc = ["objc2/alloc", "objc2-app-kit?/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc", "objc2-osa-kit?/alloc"] +std = ["alloc"] +alloc = [] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-app-kit?/objc2-core-foundation", "objc2-foundation/objc2-core-foundation", "objc2-osa-kit?/objc2-core-foundation"] objc2-osa-kit = ["dep:objc2-osa-kit"] diff --git a/framework-crates/objc2-av-foundation/Cargo.toml b/framework-crates/objc2-av-foundation/Cargo.toml index bf88da54e..c90dabbe6 100644 --- a/framework-crates/objc2-av-foundation/Cargo.toml +++ b/framework-crates/objc2-av-foundation/Cargo.toml @@ -17,14 +17,14 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-avf-audio = { path = "../objc2-avf-audio", version = "0.2.2", default-features = false, optional = true } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-media = { path = "../objc2-core-media", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-video = { path = "../objc2-core-video", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-uniform-type-identifiers = { path = "../objc2-uniform-type-identifiers", version = "0.2.2", default-features = false, optional = true } [target.'cfg(not(target_os = "watchos"))'.dependencies] @@ -46,10 +46,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-avf-audio?/std", "objc2-core-foundation?/std", "objc2-core-graphics?/std", "objc2-core-image?/std", "objc2-core-media?/std", "objc2-core-video?/std", "objc2-foundation/std", "objc2-quartz-core?/std", "objc2-uniform-type-identifiers?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-avf-audio?/alloc", "objc2-core-foundation?/alloc", "objc2-core-graphics?/alloc", "objc2-core-image?/alloc", "objc2-core-media?/alloc", "objc2-core-video?/alloc", "objc2-foundation/alloc", "objc2-quartz-core?/alloc", "objc2-uniform-type-identifiers?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-avf-audio?/bitflags", "objc2-core-foundation?/bitflags", "objc2-core-graphics?/bitflags", "objc2-core-media?/bitflags", "objc2-core-video?/bitflags", "objc2-foundation/bitflags", "objc2-quartz-core?/bitflags"] block2 = ["dep:block2", "objc2-avf-audio?/block2", "objc2-core-foundation?/block2", "objc2-core-graphics?/block2", "objc2-core-image?/block2", "objc2-core-media?/block2", "objc2-core-video?/block2", "objc2-foundation/block2", "objc2-quartz-core?/block2", "objc2-uniform-type-identifiers?/block2"] objc2-avf-audio = ["dep:objc2-avf-audio"] diff --git a/framework-crates/objc2-av-kit/Cargo.toml b/framework-crates/objc2-av-kit/Cargo.toml index 879e0d284..8f4c1a36e 100644 --- a/framework-crates/objc2-av-kit/Cargo.toml +++ b/framework-crates/objc2-av-kit/Cargo.toml @@ -17,12 +17,12 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-av-foundation = { path = "../objc2-av-foundation", version = "0.2.2", default-features = false, optional = true } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-media = { path = "../objc2-core-media", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } @@ -45,10 +45,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-av-foundation?/std", "objc2-core-foundation?/std", "objc2-core-media?/std", "objc2-foundation/std", "objc2-quartz-core?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-av-foundation?/alloc", "objc2-core-foundation?/alloc", "objc2-core-media?/alloc", "objc2-foundation/alloc", "objc2-quartz-core?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-app-kit?/bitflags", "objc2-av-foundation?/bitflags", "objc2-core-foundation?/bitflags", "objc2-core-media?/bitflags", "objc2-foundation/bitflags", "objc2-quartz-core?/bitflags"] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-av-foundation?/block2", "objc2-core-foundation?/block2", "objc2-core-media?/block2", "objc2-foundation/block2", "objc2-quartz-core?/block2"] objc2-app-kit = ["dep:objc2-app-kit"] diff --git a/framework-crates/objc2-avf-audio/Cargo.toml b/framework-crates/objc2-avf-audio/Cargo.toml index 64dd9c335..7448e2d60 100644 --- a/framework-crates/objc2-avf-audio/Cargo.toml +++ b/framework-crates/objc2-avf-audio/Cargo.toml @@ -17,11 +17,11 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-audio-types = { path = "../objc2-core-audio-types", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-media = { path = "../objc2-core-media", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(not(target_os = "watchos"))'.dependencies] objc2-audio-toolbox = { path = "../objc2-audio-toolbox", version = "0.2.2", default-features = false, optional = true } @@ -41,10 +41,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-audio-toolbox?/std", "objc2-core-audio-types?/std", "objc2-core-media?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-audio-toolbox?/alloc", "objc2-core-audio-types?/alloc", "objc2-core-media?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-audio-toolbox?/bitflags", "objc2-core-audio-types?/bitflags", "objc2-core-media?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-audio-toolbox?/block2", "objc2-core-media?/block2", "objc2-foundation/block2"] objc2-audio-toolbox = ["dep:objc2-audio-toolbox"] diff --git a/framework-crates/objc2-background-assets/Cargo.toml b/framework-crates/objc2-background-assets/Cargo.toml index e2261c92b..e49ec4e7c 100644 --- a/framework-crates/objc2-background-assets/Cargo.toml +++ b/framework-crates/objc2-background-assets/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -33,10 +33,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-foundation/block2"] BAAppExtensionInfo = [ diff --git a/framework-crates/objc2-background-tasks/Cargo.toml b/framework-crates/objc2-background-tasks/Cargo.toml index 26ba2ebcd..98bd9739d 100644 --- a/framework-crates/objc2-background-tasks/Cargo.toml +++ b/framework-crates/objc2-background-tasks/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-ios" @@ -33,10 +33,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-foundation/block2"] BGDefines = [] diff --git a/framework-crates/objc2-business-chat/Cargo.toml b/framework-crates/objc2-business-chat/Cargo.toml index c47f4d2b8..4a4d40789 100644 --- a/framework-crates/objc2-business-chat/Cargo.toml +++ b/framework-crates/objc2-business-chat/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false } @@ -36,10 +36,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-app-kit/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-app-kit/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-app-kit/objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] BCChatAction = [ diff --git a/framework-crates/objc2-call-kit/Cargo.toml b/framework-crates/objc2-call-kit/Cargo.toml index dc1487819..7bbb0c047 100644 --- a/framework-crates/objc2-call-kit/Cargo.toml +++ b/framework-crates/objc2-call-kit/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-avf-audio = { path = "../objc2-avf-audio", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -35,10 +35,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-avf-audio?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-avf-audio?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-avf-audio?/block2", "objc2-foundation/block2"] objc2-avf-audio = ["dep:objc2-avf-audio"] diff --git a/framework-crates/objc2-class-kit/Cargo.toml b/framework-crates/objc2-class-kit/Cargo.toml index 506080f24..1f7b960c0 100644 --- a/framework-crates/objc2-class-kit/Cargo.toml +++ b/framework-crates/objc2-class-kit/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -34,10 +34,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-core-graphics?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-graphics?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-core-graphics?/block2", "objc2-foundation/block2"] objc2-core-graphics = ["dep:objc2-core-graphics"] diff --git a/framework-crates/objc2-cloud-kit/Cargo.toml b/framework-crates/objc2-cloud-kit/Cargo.toml index 6d33b7e8f..88f85841e 100644 --- a/framework-crates/objc2-cloud-kit/Cargo.toml +++ b/framework-crates/objc2-cloud-kit/Cargo.toml @@ -17,10 +17,10 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-location = { path = "../objc2-core-location", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -37,10 +37,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-core-location?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-location?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-core-location?/block2", "objc2-foundation/block2"] objc2-core-location = ["dep:objc2-core-location"] diff --git a/framework-crates/objc2-contacts-ui/Cargo.toml b/framework-crates/objc2-contacts-ui/Cargo.toml index e11f2816f..f6c26d39c 100644 --- a/framework-crates/objc2-contacts-ui/Cargo.toml +++ b/framework-crates/objc2-contacts-ui/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-contacts = { path = "../objc2-contacts", version = "0.2.2", default-features = false, optional = true } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } @@ -37,10 +37,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-app-kit?/std", "objc2-contacts?/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-app-kit?/alloc", "objc2-contacts?/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] objc2-app-kit = ["dep:objc2-app-kit"] objc2-contacts = ["dep:objc2-contacts"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-app-kit?/objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] diff --git a/framework-crates/objc2-contacts/Cargo.toml b/framework-crates/objc2-contacts/Cargo.toml index e068505a9..3ea1832f9 100644 --- a/framework-crates/objc2-contacts/Cargo.toml +++ b/framework-crates/objc2-contacts/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -34,10 +34,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-foundation/block2"] CNChangeHistoryEvent = [ diff --git a/framework-crates/objc2-core-audio-types/Cargo.toml b/framework-crates/objc2-core-audio-types/Cargo.toml index 27a7d4724..f13c4a939 100644 --- a/framework-crates/objc2-core-audio-types/Cargo.toml +++ b/framework-crates/objc2-core-audio-types/Cargo.toml @@ -17,7 +17,7 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true, features = ["std"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -34,10 +34,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "objc2?/std"] -alloc = ["objc2?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags"] objc2 = ["dep:objc2"] diff --git a/framework-crates/objc2-core-bluetooth/Cargo.toml b/framework-crates/objc2-core-bluetooth/Cargo.toml index c83199edf..d2476a8f4 100644 --- a/framework-crates/objc2-core-bluetooth/Cargo.toml +++ b/framework-crates/objc2-core-bluetooth/Cargo.toml @@ -17,9 +17,9 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -36,10 +36,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "objc2/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-core-foundation?/bitflags", "objc2-foundation/bitflags"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] diff --git a/framework-crates/objc2-core-data/Cargo.toml b/framework-crates/objc2-core-data/Cargo.toml index 19113a23c..c59b81653 100644 --- a/framework-crates/objc2-core-data/Cargo.toml +++ b/framework-crates/objc2-core-data/Cargo.toml @@ -17,10 +17,10 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-cloud-kit = { path = "../objc2-cloud-kit", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -37,10 +37,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-cloud-kit?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-cloud-kit?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] apple = [] gnustep-1-7 = [] gnustep-1-8 = [] diff --git a/framework-crates/objc2-core-foundation/Cargo.toml b/framework-crates/objc2-core-foundation/Cargo.toml index 5e1a6f0e7..25a82f764 100644 --- a/framework-crates/objc2-core-foundation/Cargo.toml +++ b/framework-crates/objc2-core-foundation/Cargo.toml @@ -17,9 +17,9 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } libc = { version = "0.2.80", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true, features = ["std"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -38,10 +38,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "libc?/std", "objc2?/std"] -alloc = ["block2?/alloc", "objc2?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags"] block2 = ["dep:block2"] libc = ["dep:libc"] diff --git a/framework-crates/objc2-core-graphics/Cargo.toml b/framework-crates/objc2-core-graphics/Cargo.toml index 0c70c5f22..b9e6b07e5 100644 --- a/framework-crates/objc2-core-graphics/Cargo.toml +++ b/framework-crates/objc2-core-graphics/Cargo.toml @@ -17,9 +17,9 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } libc = { version = "0.2.80", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true } [target.'cfg(not(target_os = "watchos"))'.dependencies] @@ -41,10 +41,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "libc?/std", "objc2?/std", "objc2-core-foundation?/std", "objc2-io-surface?/std", "objc2-metal?/std"] -alloc = ["block2?/alloc", "objc2?/alloc", "objc2-core-foundation?/alloc", "objc2-io-surface?/alloc", "objc2-metal?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-core-foundation?/bitflags", "objc2-io-surface?/bitflags", "objc2-metal?/bitflags"] block2 = ["dep:block2", "objc2-core-foundation?/block2", "objc2-metal?/block2"] libc = ["dep:libc", "objc2-core-foundation?/libc", "objc2-io-surface?/libc"] diff --git a/framework-crates/objc2-core-image/Cargo.toml b/framework-crates/objc2-core-image/Cargo.toml index 30f1480a0..ce5b74062 100644 --- a/framework-crates/objc2-core-image/Cargo.toml +++ b/framework-crates/objc2-core-image/Cargo.toml @@ -16,13 +16,13 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-ml = { path = "../objc2-core-ml", version = "0.2.2", default-features = false, optional = true } objc2-core-video = { path = "../objc2-core-video", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-io-surface = { path = "../objc2-io-surface", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = false, optional = true } @@ -40,10 +40,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-core-foundation?/std", "objc2-core-graphics?/std", "objc2-core-ml?/std", "objc2-core-video?/std", "objc2-foundation/std", "objc2-io-surface?/std", "objc2-metal?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-foundation?/alloc", "objc2-core-graphics?/alloc", "objc2-core-ml?/alloc", "objc2-core-video?/alloc", "objc2-foundation/alloc", "objc2-io-surface?/alloc", "objc2-metal?/alloc"] +std = ["alloc"] +alloc = [] apple = [] gnustep-1-7 = ["objc2/gnustep-1-7", "block2?/gnustep-1-7", "objc2-foundation/gnustep-1-7"] gnustep-1-8 = ["gnustep-1-7", "objc2/gnustep-1-8", "block2?/gnustep-1-8", "objc2-foundation/gnustep-1-8"] diff --git a/framework-crates/objc2-core-location/Cargo.toml b/framework-crates/objc2-core-location/Cargo.toml index 849018324..1fc9b6253 100644 --- a/framework-crates/objc2-core-location/Cargo.toml +++ b/framework-crates/objc2-core-location/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(not(target_os = "tvos"))'.dependencies] objc2-contacts = { path = "../objc2-contacts", version = "0.2.2", default-features = false, optional = true } @@ -38,10 +38,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-contacts?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-contacts?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-contacts?/block2", "objc2-foundation/block2"] objc2-contacts = ["dep:objc2-contacts"] diff --git a/framework-crates/objc2-core-media/Cargo.toml b/framework-crates/objc2-core-media/Cargo.toml index eef0c0ed1..861cf5372 100644 --- a/framework-crates/objc2-core-media/Cargo.toml +++ b/framework-crates/objc2-core-media/Cargo.toml @@ -17,8 +17,8 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true, features = ["std"] } objc2-core-audio-types = { path = "../objc2-core-audio-types", version = "0.2.2", default-features = false, optional = true } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true } objc2-core-video = { path = "../objc2-core-video", version = "0.2.2", default-features = false, optional = true } @@ -38,10 +38,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2?/std", "objc2-core-audio-types?/std", "objc2-core-foundation?/std", "objc2-core-video?/std"] -alloc = ["block2?/alloc", "objc2?/alloc", "objc2-core-audio-types?/alloc", "objc2-core-foundation?/alloc", "objc2-core-video?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-core-audio-types?/bitflags", "objc2-core-foundation?/bitflags", "objc2-core-video?/bitflags"] block2 = ["dep:block2", "objc2-core-foundation?/block2", "objc2-core-video?/block2"] objc2 = ["dep:objc2", "objc2-core-audio-types?/objc2", "objc2-core-foundation?/objc2", "objc2-core-video?/objc2"] diff --git a/framework-crates/objc2-core-ml/Cargo.toml b/framework-crates/objc2-core-ml/Cargo.toml index 70927b0b2..39aad3c28 100644 --- a/framework-crates/objc2-core-ml/Cargo.toml +++ b/framework-crates/objc2-core-ml/Cargo.toml @@ -17,11 +17,11 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-video = { path = "../objc2-core-video", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(not(target_os = "watchos"))'.dependencies] objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = false, optional = true } @@ -41,10 +41,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-core-graphics?/std", "objc2-core-video?/std", "objc2-foundation/std", "objc2-metal?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-graphics?/alloc", "objc2-core-video?/alloc", "objc2-foundation/alloc", "objc2-metal?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-core-graphics?/bitflags", "objc2-core-video?/bitflags", "objc2-foundation/bitflags", "objc2-metal?/bitflags"] block2 = ["dep:block2", "objc2-core-graphics?/block2", "objc2-core-video?/block2", "objc2-foundation/block2", "objc2-metal?/block2"] objc2-core-graphics = ["dep:objc2-core-graphics", "objc2-core-video?/objc2-core-graphics"] diff --git a/framework-crates/objc2-core-motion/Cargo.toml b/framework-crates/objc2-core-motion/Cargo.toml index f8c93077b..2af550079 100644 --- a/framework-crates/objc2-core-motion/Cargo.toml +++ b/framework-crates/objc2-core-motion/Cargo.toml @@ -17,10 +17,10 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-location = { path = "../objc2-core-location", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -36,10 +36,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-core-location?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-location?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-core-location?/block2", "objc2-foundation/block2"] objc2-core-location = ["dep:objc2-core-location"] diff --git a/framework-crates/objc2-core-text/Cargo.toml b/framework-crates/objc2-core-text/Cargo.toml index bd169cf00..ab04777c2 100644 --- a/framework-crates/objc2-core-text/Cargo.toml +++ b/framework-crates/objc2-core-text/Cargo.toml @@ -17,9 +17,9 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } libc = { version = "0.2.80", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true } @@ -38,10 +38,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "libc?/std", "objc2?/std", "objc2-core-foundation?/std", "objc2-core-graphics?/std"] -alloc = ["block2?/alloc", "objc2?/alloc", "objc2-core-foundation?/alloc", "objc2-core-graphics?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-core-foundation?/bitflags", "objc2-core-graphics?/bitflags"] block2 = ["dep:block2", "objc2-core-foundation?/block2", "objc2-core-graphics?/block2"] libc = ["dep:libc", "objc2-core-foundation?/libc", "objc2-core-graphics?/libc"] diff --git a/framework-crates/objc2-core-video/Cargo.toml b/framework-crates/objc2-core-video/Cargo.toml index 5adc7f745..0353b4dc1 100644 --- a/framework-crates/objc2-core-video/Cargo.toml +++ b/framework-crates/objc2-core-video/Cargo.toml @@ -17,8 +17,8 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true } @@ -41,10 +41,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2?/std", "objc2-core-foundation?/std", "objc2-core-graphics?/std", "objc2-io-surface?/std", "objc2-metal?/std"] -alloc = ["block2?/alloc", "objc2?/alloc", "objc2-core-foundation?/alloc", "objc2-core-graphics?/alloc", "objc2-io-surface?/alloc", "objc2-metal?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-core-foundation?/bitflags", "objc2-core-graphics?/bitflags", "objc2-io-surface?/bitflags", "objc2-metal?/bitflags"] block2 = ["dep:block2", "objc2-core-foundation?/block2", "objc2-core-graphics?/block2", "objc2-metal?/block2"] objc2 = ["dep:objc2", "objc2-core-foundation?/objc2", "objc2-core-graphics?/objc2", "objc2-io-surface?/objc2"] diff --git a/framework-crates/objc2-core-wlan/Cargo.toml b/framework-crates/objc2-core-wlan/Cargo.toml index 3b75d2680..7e84183b2 100644 --- a/framework-crates/objc2-core-wlan/Cargo.toml +++ b/framework-crates/objc2-core-wlan/Cargo.toml @@ -17,9 +17,9 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -33,10 +33,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "objc2/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-core-foundation?/bitflags", "objc2-foundation/bitflags"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] diff --git a/framework-crates/objc2-data-detection/Cargo.toml b/framework-crates/objc2-data-detection/Cargo.toml index e91facbf3..25e439391 100644 --- a/framework-crates/objc2-data-detection/Cargo.toml +++ b/framework-crates/objc2-data-detection/Cargo.toml @@ -16,8 +16,8 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -34,10 +34,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] DDMatch = [ "objc2-foundation/NSDate", diff --git a/framework-crates/objc2-device-check/Cargo.toml b/framework-crates/objc2-device-check/Cargo.toml index 9996023b2..fb600ad46 100644 --- a/framework-crates/objc2-device-check/Cargo.toml +++ b/framework-crates/objc2-device-check/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -35,10 +35,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-foundation/block2"] DCAppAttestService = [ diff --git a/framework-crates/objc2-event-kit-ui/Cargo.toml b/framework-crates/objc2-event-kit-ui/Cargo.toml index 216a3e26b..6f1906baa 100644 --- a/framework-crates/objc2-event-kit-ui/Cargo.toml +++ b/framework-crates/objc2-event-kit-ui/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-event-kit = { path = "../objc2-event-kit", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-ui-kit = { path = "../objc2-ui-kit", version = "0.2.2", default-features = false, optional = true } [package.metadata.docs.rs] @@ -33,10 +33,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-event-kit?/std", "objc2-foundation/std", "objc2-ui-kit?/std"] -alloc = ["objc2/alloc", "objc2-event-kit?/alloc", "objc2-foundation/alloc", "objc2-ui-kit?/alloc"] +std = ["alloc"] +alloc = [] objc2-event-kit = ["dep:objc2-event-kit"] objc2-ui-kit = ["dep:objc2-ui-kit"] diff --git a/framework-crates/objc2-event-kit/Cargo.toml b/framework-crates/objc2-event-kit/Cargo.toml index 4c8320ad2..de6de0fb2 100644 --- a/framework-crates/objc2-event-kit/Cargo.toml +++ b/framework-crates/objc2-event-kit/Cargo.toml @@ -17,11 +17,11 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-location = { path = "../objc2-core-location", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-map-kit = { path = "../objc2-map-kit", version = "0.2.2", default-features = false, optional = true } [target.'cfg(target_os = "macos")'.dependencies] @@ -41,10 +41,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-core-graphics?/std", "objc2-core-location?/std", "objc2-foundation/std", "objc2-map-kit?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-core-graphics?/alloc", "objc2-core-location?/alloc", "objc2-foundation/alloc", "objc2-map-kit?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-app-kit?/bitflags", "objc2-core-graphics?/bitflags", "objc2-foundation/bitflags", "objc2-map-kit?/bitflags"] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-core-graphics?/block2", "objc2-core-location?/block2", "objc2-foundation/block2", "objc2-map-kit?/block2"] objc2-app-kit = ["dep:objc2-app-kit", "objc2-map-kit?/objc2-app-kit"] diff --git a/framework-crates/objc2-exception-handling/Cargo.toml b/framework-crates/objc2-exception-handling/Cargo.toml index 290dac6b5..08d6d4e00 100644 --- a/framework-crates/objc2-exception-handling/Cargo.toml +++ b/framework-crates/objc2-exception-handling/Cargo.toml @@ -16,8 +16,8 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -31,10 +31,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] ExceptionHandlingDefines = [] NSExceptionHandler = [ diff --git a/framework-crates/objc2-extension-kit/Cargo.toml b/framework-crates/objc2-extension-kit/Cargo.toml index f258a62ec..899d1cef4 100644 --- a/framework-crates/objc2-extension-kit/Cargo.toml +++ b/framework-crates/objc2-extension-kit/Cargo.toml @@ -16,8 +16,8 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } @@ -37,10 +37,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-app-kit?/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-app-kit?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] objc2-app-kit = ["dep:objc2-app-kit"] EXAppExtensionBrowserViewController = [ diff --git a/framework-crates/objc2-external-accessory/Cargo.toml b/framework-crates/objc2-external-accessory/Cargo.toml index 5f768d1fd..bc7cc20a0 100644 --- a/framework-crates/objc2-external-accessory/Cargo.toml +++ b/framework-crates/objc2-external-accessory/Cargo.toml @@ -17,9 +17,9 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -35,10 +35,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-foundation/block2"] diff --git a/framework-crates/objc2-file-provider-ui/Cargo.toml b/framework-crates/objc2-file-provider-ui/Cargo.toml index 795651d2e..836546310 100644 --- a/framework-crates/objc2-file-provider-ui/Cargo.toml +++ b/framework-crates/objc2-file-provider-ui/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-file-provider = { path = "../objc2-file-provider", version = "0.2.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } @@ -37,10 +37,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-file-provider/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-file-provider/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-file-provider/block2", "objc2-foundation/block2"] objc2-app-kit = ["dep:objc2-app-kit"] diff --git a/framework-crates/objc2-file-provider/Cargo.toml b/framework-crates/objc2-file-provider/Cargo.toml index 32b70da75..d55d2a15c 100644 --- a/framework-crates/objc2-file-provider/Cargo.toml +++ b/framework-crates/objc2-file-provider/Cargo.toml @@ -17,10 +17,10 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-uniform-type-identifiers = { path = "../objc2-uniform-type-identifiers", version = "0.2.2", default-features = false, optional = true } [package.metadata.docs.rs] @@ -35,10 +35,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-core-foundation?/std", "objc2-foundation/std", "objc2-uniform-type-identifiers?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc", "objc2-uniform-type-identifiers?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-core-foundation?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-core-foundation?/block2", "objc2-foundation/block2", "objc2-uniform-type-identifiers?/block2"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] diff --git a/framework-crates/objc2-finder-sync/Cargo.toml b/framework-crates/objc2-finder-sync/Cargo.toml index 457f2479a..15f5c9ea2 100644 --- a/framework-crates/objc2-finder-sync/Cargo.toml +++ b/framework-crates/objc2-finder-sync/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true, features = ["NSImage", "NSMenu"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["NSArray", "NSData", "NSDate", "NSDictionary", "NSError", "NSExtensionContext", "NSExtensionRequestHandling", "NSFileManager", "NSSet", "NSString", "NSURL", "NSXPCConnection"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["NSArray", "NSData", "NSDate", "NSDictionary", "NSError", "NSExtensionContext", "NSExtensionRequestHandling", "NSFileManager", "NSSet", "NSString", "NSURL", "NSXPCConnection", "alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -32,10 +32,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-foundation/block2"] objc2-app-kit = ["dep:objc2-app-kit"] diff --git a/framework-crates/objc2-foundation/Cargo.toml b/framework-crates/objc2-foundation/Cargo.toml index 5c4d38623..85264586f 100644 --- a/framework-crates/objc2-foundation/Cargo.toml +++ b/framework-crates/objc2-foundation/Cargo.toml @@ -17,9 +17,9 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } libc = { version = "0.2.80", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } [package.metadata.docs.rs] @@ -39,10 +39,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "libc?/std", "objc2/std", "objc2-core-foundation?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-foundation?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] apple = [] gnustep-1-7 = ["objc2/gnustep-1-7", "block2?/gnustep-1-7"] gnustep-1-8 = ["gnustep-1-7", "objc2/gnustep-1-8", "block2?/gnustep-1-8"] diff --git a/framework-crates/objc2-game-controller/Cargo.toml b/framework-crates/objc2-game-controller/Cargo.toml index f67510cb5..d36b3a12a 100644 --- a/framework-crates/objc2-game-controller/Cargo.toml +++ b/framework-crates/objc2-game-controller/Cargo.toml @@ -17,10 +17,10 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } @@ -39,10 +39,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-app-kit?/bitflags", "objc2-core-foundation?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-core-foundation?/block2", "objc2-foundation/block2"] objc2-app-kit = ["dep:objc2-app-kit"] diff --git a/framework-crates/objc2-game-kit/Cargo.toml b/framework-crates/objc2-game-kit/Cargo.toml index 5f65116c0..16d083628 100644 --- a/framework-crates/objc2-game-kit/Cargo.toml +++ b/framework-crates/objc2-game-kit/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } @@ -39,10 +39,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-core-foundation?/block2", "objc2-foundation/block2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-app-kit?/objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] diff --git a/framework-crates/objc2-health-kit/Cargo.toml b/framework-crates/objc2-health-kit/Cargo.toml index 1cece3d23..9c5dc8a8b 100644 --- a/framework-crates/objc2-health-kit/Cargo.toml +++ b/framework-crates/objc2-health-kit/Cargo.toml @@ -17,10 +17,10 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-location = { path = "../objc2-core-location", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-uniform-type-identifiers = { path = "../objc2-uniform-type-identifiers", version = "0.2.2", default-features = false, optional = true } [package.metadata.docs.rs] @@ -37,10 +37,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-core-location?/std", "objc2-foundation/std", "objc2-uniform-type-identifiers?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-location?/alloc", "objc2-foundation/alloc", "objc2-uniform-type-identifiers?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-core-location?/block2", "objc2-foundation/block2", "objc2-uniform-type-identifiers?/block2"] objc2-core-location = ["dep:objc2-core-location"] diff --git a/framework-crates/objc2-identity-lookup/Cargo.toml b/framework-crates/objc2-identity-lookup/Cargo.toml index 2c40cbb96..57e41d790 100644 --- a/framework-crates/objc2-identity-lookup/Cargo.toml +++ b/framework-crates/objc2-identity-lookup/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -33,10 +33,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-foundation/block2"] ILBase = [] diff --git a/framework-crates/objc2-input-method-kit/Cargo.toml b/framework-crates/objc2-input-method-kit/Cargo.toml index 99fb38b73..8851125be 100644 --- a/framework-crates/objc2-input-method-kit/Cargo.toml +++ b/framework-crates/objc2-input-method-kit/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -32,10 +32,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-app-kit?/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-app-kit?/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-app-kit?/objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] diff --git a/framework-crates/objc2-io-surface/Cargo.toml b/framework-crates/objc2-io-surface/Cargo.toml index 3b57b7d55..6b686a3f4 100644 --- a/framework-crates/objc2-io-surface/Cargo.toml +++ b/framework-crates/objc2-io-surface/Cargo.toml @@ -18,9 +18,9 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } libc = { version = "0.2.80", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, optional = true, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, optional = true } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, optional = true, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -36,10 +36,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "libc?/std", "objc2?/std", "objc2-core-foundation?/std", "objc2-foundation?/std"] -alloc = ["objc2?/alloc", "objc2-core-foundation?/alloc", "objc2-foundation?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-core-foundation?/bitflags", "objc2-foundation?/bitflags"] libc = ["dep:libc", "objc2-core-foundation?/libc", "objc2-foundation?/libc"] objc2 = ["dep:objc2", "objc2-core-foundation?/objc2"] diff --git a/framework-crates/objc2-link-presentation/Cargo.toml b/framework-crates/objc2-link-presentation/Cargo.toml index 47afdf601..c36c686bd 100644 --- a/framework-crates/objc2-link-presentation/Cargo.toml +++ b/framework-crates/objc2-link-presentation/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } @@ -38,10 +38,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-core-foundation?/block2", "objc2-foundation/block2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-app-kit?/objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] diff --git a/framework-crates/objc2-local-authentication-embedded-ui/Cargo.toml b/framework-crates/objc2-local-authentication-embedded-ui/Cargo.toml index d576e8f43..dec98aa54 100644 --- a/framework-crates/objc2-local-authentication-embedded-ui/Cargo.toml +++ b/framework-crates/objc2-local-authentication-embedded-ui/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-local-authentication = { path = "../objc2-local-authentication", version = "0.2.2", default-features = false } [target.'cfg(target_os = "macos")'.dependencies] @@ -38,10 +38,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-core-foundation?/std", "objc2-foundation/std", "objc2-local-authentication/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc", "objc2-local-authentication/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-core-foundation?/block2", "objc2-foundation/block2", "objc2-local-authentication/block2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-app-kit?/objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] diff --git a/framework-crates/objc2-local-authentication/Cargo.toml b/framework-crates/objc2-local-authentication/Cargo.toml index 5c246af33..311d091d6 100644 --- a/framework-crates/objc2-local-authentication/Cargo.toml +++ b/framework-crates/objc2-local-authentication/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -34,10 +34,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-foundation/block2"] LABase = [] diff --git a/framework-crates/objc2-mail-kit/Cargo.toml b/framework-crates/objc2-mail-kit/Cargo.toml index 5006b50dd..6989ac33a 100644 --- a/framework-crates/objc2-mail-kit/Cargo.toml +++ b/framework-crates/objc2-mail-kit/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -32,10 +32,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-foundation/block2"] objc2-app-kit = ["dep:objc2-app-kit"] diff --git a/framework-crates/objc2-map-kit/Cargo.toml b/framework-crates/objc2-map-kit/Cargo.toml index 534daf3cb..09e6c6005 100644 --- a/framework-crates/objc2-map-kit/Cargo.toml +++ b/framework-crates/objc2-map-kit/Cargo.toml @@ -17,12 +17,12 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-location = { path = "../objc2-core-location", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } @@ -45,10 +45,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-contacts?/std", "objc2-core-foundation?/std", "objc2-core-graphics?/std", "objc2-core-location?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-contacts?/alloc", "objc2-core-foundation?/alloc", "objc2-core-graphics?/alloc", "objc2-core-location?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-app-kit?/bitflags", "objc2-core-foundation?/bitflags", "objc2-core-graphics?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-contacts?/block2", "objc2-core-foundation?/block2", "objc2-core-graphics?/block2", "objc2-core-location?/block2", "objc2-foundation/block2"] objc2-app-kit = ["dep:objc2-app-kit"] diff --git a/framework-crates/objc2-media-player/Cargo.toml b/framework-crates/objc2-media-player/Cargo.toml index 92f194861..7a67aa29b 100644 --- a/framework-crates/objc2-media-player/Cargo.toml +++ b/framework-crates/objc2-media-player/Cargo.toml @@ -17,12 +17,12 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-av-foundation = { path = "../objc2-av-foundation", version = "0.2.2", default-features = false, optional = true } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-media = { path = "../objc2-core-media", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } @@ -42,10 +42,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-av-foundation?/std", "objc2-core-foundation?/std", "objc2-core-media?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-av-foundation?/alloc", "objc2-core-foundation?/alloc", "objc2-core-media?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-app-kit?/bitflags", "objc2-av-foundation?/bitflags", "objc2-core-foundation?/bitflags", "objc2-core-media?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-av-foundation?/block2", "objc2-core-foundation?/block2", "objc2-core-media?/block2", "objc2-foundation/block2"] objc2-app-kit = ["dep:objc2-app-kit"] diff --git a/framework-crates/objc2-metal-fx/Cargo.toml b/framework-crates/objc2-metal-fx/Cargo.toml index d8ec50c22..8c1c6ce01 100644 --- a/framework-crates/objc2-metal-fx/Cargo.toml +++ b/framework-crates/objc2-metal-fx/Cargo.toml @@ -16,8 +16,8 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = false } [package.metadata.docs.rs] @@ -33,10 +33,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-foundation/std", "objc2-metal/std"] -alloc = ["objc2/alloc", "objc2-foundation/alloc", "objc2-metal/alloc"] +std = ["alloc"] +alloc = [] MTLFXDefines = [] MTLFXSpatialScaler = [ diff --git a/framework-crates/objc2-metal-kit/Cargo.toml b/framework-crates/objc2-metal-kit/Cargo.toml index 3b4871418..5b177b2fa 100644 --- a/framework-crates/objc2-metal-kit/Cargo.toml +++ b/framework-crates/objc2-metal-kit/Cargo.toml @@ -16,11 +16,11 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = false } objc2-quartz-core = { path = "../objc2-quartz-core", version = "0.2.2", default-features = false, optional = true, features = ["objc2-metal"] } @@ -41,10 +41,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-core-foundation?/std", "objc2-core-graphics?/std", "objc2-foundation/std", "objc2-metal/std", "objc2-quartz-core?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-core-foundation?/alloc", "objc2-core-graphics?/alloc", "objc2-foundation/alloc", "objc2-metal/alloc", "objc2-quartz-core?/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-core-foundation?/block2", "objc2-core-graphics?/block2", "objc2-foundation/block2", "objc2-metal/block2", "objc2-quartz-core?/block2"] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-app-kit?/objc2-core-foundation", "objc2-core-graphics?/objc2-core-foundation", "objc2-foundation/objc2-core-foundation", "objc2-metal/objc2-core-foundation", "objc2-quartz-core?/objc2-core-foundation"] diff --git a/framework-crates/objc2-metal-performance-shaders-graph/Cargo.toml b/framework-crates/objc2-metal-performance-shaders-graph/Cargo.toml index 0458cb089..bbbfe5c30 100644 --- a/framework-crates/objc2-metal-performance-shaders-graph/Cargo.toml +++ b/framework-crates/objc2-metal-performance-shaders-graph/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = false } objc2-metal-performance-shaders = { path = "../objc2-metal-performance-shaders", version = "0.2.2", default-features = false, optional = true } @@ -36,10 +36,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-foundation/std", "objc2-metal/std", "objc2-metal-performance-shaders?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc", "objc2-metal/alloc", "objc2-metal-performance-shaders?/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-foundation/block2", "objc2-metal/block2", "objc2-metal-performance-shaders?/block2"] objc2-metal-performance-shaders = ["dep:objc2-metal-performance-shaders"] diff --git a/framework-crates/objc2-metal-performance-shaders/Cargo.toml b/framework-crates/objc2-metal-performance-shaders/Cargo.toml index 099055ebf..cd95c2b5d 100644 --- a/framework-crates/objc2-metal-performance-shaders/Cargo.toml +++ b/framework-crates/objc2-metal-performance-shaders/Cargo.toml @@ -17,11 +17,11 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = false, features = ["MTLCommandBuffer", "MTLDevice"] } [package.metadata.docs.rs] @@ -38,10 +38,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags/std", "block2?/std", "objc2/std", "objc2-core-foundation?/std", "objc2-core-graphics?/std", "objc2-foundation/std", "objc2-metal/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-foundation?/alloc", "objc2-core-graphics?/alloc", "objc2-foundation/alloc", "objc2-metal/alloc"] +std = ["alloc", "bitflags/std"] +alloc = [] MPSImage = ["objc2-foundation/NSArray"] block2 = ["dep:block2", "objc2-core-foundation?/block2", "objc2-core-graphics?/block2", "objc2-foundation/block2", "objc2-metal/block2"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-core-graphics?/objc2-core-foundation", "objc2-foundation/objc2-core-foundation", "objc2-metal/objc2-core-foundation"] diff --git a/framework-crates/objc2-metal/Cargo.toml b/framework-crates/objc2-metal/Cargo.toml index 75d12a5a9..b4ba35135 100644 --- a/framework-crates/objc2-metal/Cargo.toml +++ b/framework-crates/objc2-metal/Cargo.toml @@ -17,10 +17,10 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-io-surface = { path = "../objc2-io-surface", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } [package.metadata.docs.rs] @@ -37,10 +37,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-core-foundation?/std", "objc2-foundation/std", "objc2-io-surface?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc", "objc2-io-surface?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] unstable-private = [ "objc2-foundation/NSString", "objc2-foundation/NSError", diff --git a/framework-crates/objc2-metal/src/packed.rs b/framework-crates/objc2-metal/src/packed.rs index a87a7cd3b..228c331d4 100644 --- a/framework-crates/objc2-metal/src/packed.rs +++ b/framework-crates/objc2-metal/src/packed.rs @@ -36,6 +36,7 @@ unsafe impl RefEncode for MTLPackedFloat3 { } #[cfg(test)] +#[cfg(feature = "alloc")] mod tests { use alloc::string::ToString; use objc2::encode::Encode; diff --git a/framework-crates/objc2-metric-kit/Cargo.toml b/framework-crates/objc2-metric-kit/Cargo.toml index 9572349b1..a82aae742 100644 --- a/framework-crates/objc2-metric-kit/Cargo.toml +++ b/framework-crates/objc2-metric-kit/Cargo.toml @@ -17,8 +17,8 @@ workspace = true [dependencies] libc = { version = "0.2.80", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -33,10 +33,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "libc?/std", "objc2/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] libc = ["dep:libc", "objc2-foundation/libc"] MXAnimationMetric = [ diff --git a/framework-crates/objc2-ml-compute/Cargo.toml b/framework-crates/objc2-ml-compute/Cargo.toml index c2e087b48..1ca21508b 100644 --- a/framework-crates/objc2-ml-compute/Cargo.toml +++ b/framework-crates/objc2-ml-compute/Cargo.toml @@ -17,9 +17,9 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = false, optional = true } [package.metadata.docs.rs] @@ -36,10 +36,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-foundation/std", "objc2-metal?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc", "objc2-metal?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-foundation/bitflags", "objc2-metal?/bitflags"] block2 = ["dep:block2", "objc2-foundation/block2", "objc2-metal?/block2"] objc2-metal = ["dep:objc2-metal"] diff --git a/framework-crates/objc2-multipeer-connectivity/Cargo.toml b/framework-crates/objc2-multipeer-connectivity/Cargo.toml index f9e20746d..a347246e4 100644 --- a/framework-crates/objc2-multipeer-connectivity/Cargo.toml +++ b/framework-crates/objc2-multipeer-connectivity/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } @@ -37,10 +37,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-foundation/block2"] objc2-app-kit = ["dep:objc2-app-kit"] diff --git a/framework-crates/objc2-natural-language/Cargo.toml b/framework-crates/objc2-natural-language/Cargo.toml index 0f931ede8..7ce283959 100644 --- a/framework-crates/objc2-natural-language/Cargo.toml +++ b/framework-crates/objc2-natural-language/Cargo.toml @@ -17,10 +17,10 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-ml = { path = "../objc2-core-ml", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -37,10 +37,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-core-ml?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-ml?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-core-ml?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-core-ml?/block2", "objc2-foundation/block2"] objc2-core-ml = ["dep:objc2-core-ml"] diff --git a/framework-crates/objc2-nearby-interaction/Cargo.toml b/framework-crates/objc2-nearby-interaction/Cargo.toml index 17e67e422..52b03f347 100644 --- a/framework-crates/objc2-nearby-interaction/Cargo.toml +++ b/framework-crates/objc2-nearby-interaction/Cargo.toml @@ -16,8 +16,8 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -33,10 +33,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] NIAlgorithmConvergenceStatusReason = ["objc2-foundation/NSString"] NIConfiguration = [ diff --git a/framework-crates/objc2-network-extension/Cargo.toml b/framework-crates/objc2-network-extension/Cargo.toml index dd4e2e1e5..c3a0389be 100644 --- a/framework-crates/objc2-network-extension/Cargo.toml +++ b/framework-crates/objc2-network-extension/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } libc = { version = "0.2.80", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["NSArray", "NSData", "NSDate", "NSDictionary", "NSError", "NSObject", "NSSet", "NSString", "NSURL", "NSURLRequest", "NSURLResponse", "NSUUID", "NSValue"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["NSArray", "NSData", "NSDate", "NSDictionary", "NSError", "NSObject", "NSSet", "NSString", "NSURL", "NSURLRequest", "NSURLResponse", "NSUUID", "NSValue", "alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -36,10 +36,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "libc?/std", "objc2/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-foundation/block2"] libc = ["dep:libc", "objc2-foundation/libc"] diff --git a/framework-crates/objc2-open-directory/Cargo.toml b/framework-crates/objc2-open-directory/Cargo.toml index 1f18a4257..c896b490e 100644 --- a/framework-crates/objc2-open-directory/Cargo.toml +++ b/framework-crates/objc2-open-directory/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["NSString"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["NSString", "alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -32,10 +32,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] CFODContext = ["objc2-core-foundation?/CFBase"] diff --git a/framework-crates/objc2-osa-kit/Cargo.toml b/framework-crates/objc2-osa-kit/Cargo.toml index 2db52ad3a..7da4e8326 100644 --- a/framework-crates/objc2-osa-kit/Cargo.toml +++ b/framework-crates/objc2-osa-kit/Cargo.toml @@ -17,10 +17,10 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -33,10 +33,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "objc2/std", "objc2-app-kit/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-app-kit/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-app-kit/bitflags", "objc2-core-foundation?/bitflags", "objc2-foundation/bitflags"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-app-kit/objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] diff --git a/framework-crates/objc2-photos-ui/Cargo.toml b/framework-crates/objc2-photos-ui/Cargo.toml index e91d03bdb..30a56ba06 100644 --- a/framework-crates/objc2-photos-ui/Cargo.toml +++ b/framework-crates/objc2-photos-ui/Cargo.toml @@ -17,11 +17,11 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-location = { path = "../objc2-core-location", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-map-kit = { path = "../objc2-map-kit", version = "0.2.2", default-features = false, optional = true } [target.'cfg(target_os = "macos")'.dependencies] @@ -45,10 +45,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-core-foundation?/std", "objc2-core-location?/std", "objc2-foundation/std", "objc2-map-kit?/std", "objc2-photos?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-core-foundation?/alloc", "objc2-core-location?/alloc", "objc2-foundation/alloc", "objc2-map-kit?/alloc", "objc2-photos?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-app-kit?/bitflags", "objc2-core-foundation?/bitflags", "objc2-foundation/bitflags", "objc2-map-kit?/bitflags", "objc2-photos?/bitflags"] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-core-foundation?/block2", "objc2-core-location?/block2", "objc2-foundation/block2", "objc2-map-kit?/block2", "objc2-photos?/block2"] objc2-app-kit = ["dep:objc2-app-kit", "objc2-map-kit?/objc2-app-kit", "objc2-photos?/objc2-app-kit"] diff --git a/framework-crates/objc2-photos/Cargo.toml b/framework-crates/objc2-photos/Cargo.toml index 2f897b0a5..dfd8a8ed3 100644 --- a/framework-crates/objc2-photos/Cargo.toml +++ b/framework-crates/objc2-photos/Cargo.toml @@ -17,14 +17,14 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-av-foundation = { path = "../objc2-av-foundation", version = "0.2.2", default-features = false, optional = true } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-image = { path = "../objc2-core-image", version = "0.2.2", default-features = false, optional = true } objc2-core-location = { path = "../objc2-core-location", version = "0.2.2", default-features = false, optional = true } objc2-core-media = { path = "../objc2-core-media", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-uniform-type-identifiers = { path = "../objc2-uniform-type-identifiers", version = "0.2.2", default-features = false, optional = true } [target.'cfg(target_os = "macos")'.dependencies] @@ -44,10 +44,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-av-foundation?/std", "objc2-core-foundation?/std", "objc2-core-image?/std", "objc2-core-location?/std", "objc2-core-media?/std", "objc2-foundation/std", "objc2-uniform-type-identifiers?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-av-foundation?/alloc", "objc2-core-foundation?/alloc", "objc2-core-image?/alloc", "objc2-core-location?/alloc", "objc2-core-media?/alloc", "objc2-foundation/alloc", "objc2-uniform-type-identifiers?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-app-kit?/bitflags", "objc2-av-foundation?/bitflags", "objc2-core-foundation?/bitflags", "objc2-core-media?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-av-foundation?/block2", "objc2-core-foundation?/block2", "objc2-core-image?/block2", "objc2-core-location?/block2", "objc2-core-media?/block2", "objc2-foundation/block2", "objc2-uniform-type-identifiers?/block2"] objc2-app-kit = ["dep:objc2-app-kit"] diff --git a/framework-crates/objc2-quartz-core/Cargo.toml b/framework-crates/objc2-quartz-core/Cargo.toml index 6f9beab8a..5f09ba25f 100644 --- a/framework-crates/objc2-quartz-core/Cargo.toml +++ b/framework-crates/objc2-quartz-core/Cargo.toml @@ -17,13 +17,13 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } libc = { version = "0.2.80", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-video = { path = "../objc2-core-video", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = false, optional = true } [package.metadata.docs.rs] @@ -40,10 +40,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "libc?/std", "objc2/std", "objc2-core-foundation?/std", "objc2-core-graphics?/std", "objc2-core-video?/std", "objc2-foundation/std", "objc2-metal?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-foundation?/alloc", "objc2-core-graphics?/alloc", "objc2-core-video?/alloc", "objc2-foundation/alloc", "objc2-metal?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] apple = [] gnustep-1-7 = [] gnustep-1-8 = [] diff --git a/framework-crates/objc2-screen-capture-kit/Cargo.toml b/framework-crates/objc2-screen-capture-kit/Cargo.toml index 14043a1e5..a1bff7aa1 100644 --- a/framework-crates/objc2-screen-capture-kit/Cargo.toml +++ b/framework-crates/objc2-screen-capture-kit/Cargo.toml @@ -17,14 +17,14 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } libc = { version = "0.2.80", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-av-foundation = { path = "../objc2-av-foundation", version = "0.2.2", default-features = false, optional = true } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-media = { path = "../objc2-core-media", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -37,10 +37,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "libc?/std", "objc2/std", "objc2-av-foundation?/std", "objc2-core-foundation?/std", "objc2-core-graphics?/std", "objc2-core-media?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-av-foundation?/alloc", "objc2-core-foundation?/alloc", "objc2-core-graphics?/alloc", "objc2-core-media?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-av-foundation?/bitflags", "objc2-core-foundation?/bitflags", "objc2-core-graphics?/bitflags", "objc2-core-media?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-av-foundation?/block2", "objc2-core-foundation?/block2", "objc2-core-graphics?/block2", "objc2-core-media?/block2", "objc2-foundation/block2"] libc = ["dep:libc", "objc2-core-foundation?/libc", "objc2-core-graphics?/libc", "objc2-foundation/libc"] diff --git a/framework-crates/objc2-screen-saver/Cargo.toml b/framework-crates/objc2-screen-saver/Cargo.toml index 0fc7333a2..ac249111e 100644 --- a/framework-crates/objc2-screen-saver/Cargo.toml +++ b/framework-crates/objc2-screen-saver/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -32,10 +32,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-app-kit?/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-app-kit?/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] objc2-app-kit = ["dep:objc2-app-kit"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-app-kit?/objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] diff --git a/framework-crates/objc2-sensitive-content-analysis/Cargo.toml b/framework-crates/objc2-sensitive-content-analysis/Cargo.toml index 72bb4e176..9e41c5dd4 100644 --- a/framework-crates/objc2-sensitive-content-analysis/Cargo.toml +++ b/framework-crates/objc2-sensitive-content-analysis/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -34,10 +34,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-core-graphics?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-graphics?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-core-graphics?/block2", "objc2-foundation/block2"] objc2-core-graphics = ["dep:objc2-core-graphics"] diff --git a/framework-crates/objc2-service-management/Cargo.toml b/framework-crates/objc2-service-management/Cargo.toml index 39db722e5..2cc849052 100644 --- a/framework-crates/objc2-service-management/Cargo.toml +++ b/framework-crates/objc2-service-management/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -32,10 +32,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-foundation/block2"] SMAppService = [ diff --git a/framework-crates/objc2-social/Cargo.toml b/framework-crates/objc2-social/Cargo.toml index 34b26547a..a72812d14 100644 --- a/framework-crates/objc2-social/Cargo.toml +++ b/framework-crates/objc2-social/Cargo.toml @@ -16,10 +16,10 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-accounts = { path = "../objc2-accounts", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } @@ -37,10 +37,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-accounts?/std", "objc2-app-kit?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-accounts?/alloc", "objc2-app-kit?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-accounts?/block2", "objc2-app-kit?/block2", "objc2-foundation/block2"] objc2-accounts = ["dep:objc2-accounts"] objc2-app-kit = ["dep:objc2-app-kit"] diff --git a/framework-crates/objc2-sound-analysis/Cargo.toml b/framework-crates/objc2-sound-analysis/Cargo.toml index d3a9e8b8a..37a4c902c 100644 --- a/framework-crates/objc2-sound-analysis/Cargo.toml +++ b/framework-crates/objc2-sound-analysis/Cargo.toml @@ -16,12 +16,12 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-avf-audio = { path = "../objc2-avf-audio", version = "0.2.2", default-features = false, optional = true } objc2-core-media = { path = "../objc2-core-media", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-ml = { path = "../objc2-core-ml", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -38,10 +38,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-avf-audio?/std", "objc2-core-media?/std", "objc2-core-ml?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-avf-audio?/alloc", "objc2-core-media?/alloc", "objc2-core-ml?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-avf-audio?/block2", "objc2-core-media?/block2", "objc2-core-ml?/block2", "objc2-foundation/block2"] objc2-avf-audio = ["dep:objc2-avf-audio"] objc2-core-media = ["dep:objc2-core-media", "objc2-avf-audio?/objc2-core-media"] diff --git a/framework-crates/objc2-speech/Cargo.toml b/framework-crates/objc2-speech/Cargo.toml index b195d3e03..ee404b420 100644 --- a/framework-crates/objc2-speech/Cargo.toml +++ b/framework-crates/objc2-speech/Cargo.toml @@ -16,11 +16,11 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-avf-audio = { path = "../objc2-avf-audio", version = "0.2.2", default-features = false, optional = true } objc2-core-media = { path = "../objc2-core-media", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -35,10 +35,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-avf-audio?/std", "objc2-core-media?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-avf-audio?/alloc", "objc2-core-media?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-avf-audio?/block2", "objc2-core-media?/block2", "objc2-foundation/block2"] objc2-avf-audio = ["dep:objc2-avf-audio"] objc2-core-media = ["dep:objc2-core-media", "objc2-avf-audio?/objc2-core-media"] diff --git a/framework-crates/objc2-store-kit/Cargo.toml b/framework-crates/objc2-store-kit/Cargo.toml index 8e9a5a11d..a9c06774a 100644 --- a/framework-crates/objc2-store-kit/Cargo.toml +++ b/framework-crates/objc2-store-kit/Cargo.toml @@ -17,10 +17,10 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } @@ -40,10 +40,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-app-kit?/bitflags", "objc2-core-foundation?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-core-foundation?/block2", "objc2-foundation/block2"] objc2-app-kit = ["dep:objc2-app-kit"] diff --git a/framework-crates/objc2-symbols/Cargo.toml b/framework-crates/objc2-symbols/Cargo.toml index d34c2db96..0a0ab897b 100644 --- a/framework-crates/objc2-symbols/Cargo.toml +++ b/framework-crates/objc2-symbols/Cargo.toml @@ -16,8 +16,8 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -34,10 +34,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] NSSymbolEffect = ["objc2-foundation/NSObject"] all = ["NSSymbolEffect"] diff --git a/framework-crates/objc2-system-extensions/Cargo.toml b/framework-crates/objc2-system-extensions/Cargo.toml index 03cd727cd..c3827dd02 100644 --- a/framework-crates/objc2-system-extensions/Cargo.toml +++ b/framework-crates/objc2-system-extensions/Cargo.toml @@ -16,8 +16,8 @@ license.workspace = true workspace = true [dependencies] -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["NSArray", "NSError", "NSString", "NSURL"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["NSArray", "NSError", "NSString", "NSURL", "alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -30,9 +30,7 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "objc2/std", "objc2-foundation/std"] -alloc = ["objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] all = [] diff --git a/framework-crates/objc2-ui-kit/Cargo.toml b/framework-crates/objc2-ui-kit/Cargo.toml index a3b52186c..5b8dfecf0 100644 --- a/framework-crates/objc2-ui-kit/Cargo.toml +++ b/framework-crates/objc2-ui-kit/Cargo.toml @@ -17,14 +17,14 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-cloud-kit = { path = "../objc2-cloud-kit", version = "0.2.2", default-features = false, optional = true } objc2-core-data = { path = "../objc2-core-data", version = "0.2.2", default-features = false, optional = true } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-location = { path = "../objc2-core-location", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } objc2-symbols = { path = "../objc2-symbols", version = "0.2.2", default-features = false, optional = true } objc2-uniform-type-identifiers = { path = "../objc2-uniform-type-identifiers", version = "0.2.2", default-features = false, optional = true } objc2-user-notifications = { path = "../objc2-user-notifications", version = "0.2.2", default-features = false, optional = true } @@ -47,10 +47,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-cloud-kit?/std", "objc2-core-data?/std", "objc2-core-foundation?/std", "objc2-core-graphics?/std", "objc2-core-image?/std", "objc2-core-location?/std", "objc2-foundation/std", "objc2-quartz-core?/std", "objc2-symbols?/std", "objc2-uniform-type-identifiers?/std", "objc2-user-notifications?/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-cloud-kit?/alloc", "objc2-core-data?/alloc", "objc2-core-foundation?/alloc", "objc2-core-graphics?/alloc", "objc2-core-image?/alloc", "objc2-core-location?/alloc", "objc2-foundation/alloc", "objc2-quartz-core?/alloc", "objc2-symbols?/alloc", "objc2-uniform-type-identifiers?/alloc", "objc2-user-notifications?/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-cloud-kit?/bitflags", "objc2-core-data?/bitflags", "objc2-core-foundation?/bitflags", "objc2-core-graphics?/bitflags", "objc2-foundation/bitflags", "objc2-quartz-core?/bitflags", "objc2-user-notifications?/bitflags"] block2 = ["dep:block2", "objc2-cloud-kit?/block2", "objc2-core-data?/block2", "objc2-core-foundation?/block2", "objc2-core-graphics?/block2", "objc2-core-image?/block2", "objc2-core-location?/block2", "objc2-foundation/block2", "objc2-quartz-core?/block2", "objc2-uniform-type-identifiers?/block2", "objc2-user-notifications?/block2"] objc2-cloud-kit = ["dep:objc2-cloud-kit", "objc2-core-data?/objc2-cloud-kit"] diff --git a/framework-crates/objc2-uniform-type-identifiers/Cargo.toml b/framework-crates/objc2-uniform-type-identifiers/Cargo.toml index f59daa7a1..65848daed 100644 --- a/framework-crates/objc2-uniform-type-identifiers/Cargo.toml +++ b/framework-crates/objc2-uniform-type-identifiers/Cargo.toml @@ -16,9 +16,9 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -35,10 +35,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-foundation/block2"] NSItemProvider_UTType = [ diff --git a/framework-crates/objc2-user-notifications/Cargo.toml b/framework-crates/objc2-user-notifications/Cargo.toml index 23ede6730..70cbe84fb 100644 --- a/framework-crates/objc2-user-notifications/Cargo.toml +++ b/framework-crates/objc2-user-notifications/Cargo.toml @@ -17,10 +17,10 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-location = { path = "../objc2-core-location", version = "0.2.2", default-features = false, optional = true } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -37,10 +37,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-core-location?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-location?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-core-location?/block2", "objc2-foundation/block2"] objc2-core-location = ["dep:objc2-core-location"] diff --git a/framework-crates/objc2-virtualization/Cargo.toml b/framework-crates/objc2-virtualization/Cargo.toml index 167e24e8e..d69b0c996 100644 --- a/framework-crates/objc2-virtualization/Cargo.toml +++ b/framework-crates/objc2-virtualization/Cargo.toml @@ -17,11 +17,11 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -34,10 +34,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-app-kit?/bitflags", "objc2-core-foundation?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-core-foundation?/block2", "objc2-foundation/block2"] objc2-app-kit = ["dep:objc2-app-kit"] diff --git a/framework-crates/objc2-vision/Cargo.toml b/framework-crates/objc2-vision/Cargo.toml index 09b0796eb..e2f052940 100644 --- a/framework-crates/objc2-vision/Cargo.toml +++ b/framework-crates/objc2-vision/Cargo.toml @@ -16,15 +16,15 @@ license.workspace = true workspace = true [dependencies] -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-image = { path = "../objc2-core-image", version = "0.2.2", default-features = false, optional = true } objc2-core-media = { path = "../objc2-core-media", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } objc2-core-ml = { path = "../objc2-core-ml", version = "0.2.2", default-features = false, optional = true } objc2-core-video = { path = "../objc2-core-video", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" @@ -40,10 +40,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "block2?/std", "objc2/std", "objc2-core-foundation?/std", "objc2-core-graphics?/std", "objc2-core-image?/std", "objc2-core-media?/std", "objc2-core-ml?/std", "objc2-core-video?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-core-foundation?/alloc", "objc2-core-graphics?/alloc", "objc2-core-image?/alloc", "objc2-core-media?/alloc", "objc2-core-ml?/alloc", "objc2-core-video?/alloc", "objc2-foundation/alloc"] +std = ["alloc"] +alloc = [] block2 = ["dep:block2", "objc2-core-foundation?/block2", "objc2-core-graphics?/block2", "objc2-core-image?/block2", "objc2-core-media?/block2", "objc2-core-ml?/block2", "objc2-core-video?/block2", "objc2-foundation/block2"] objc2-core-foundation = ["dep:objc2-core-foundation", "objc2-core-graphics?/objc2-core-foundation", "objc2-core-image?/objc2-core-foundation", "objc2-core-media?/objc2-core-foundation", "objc2-core-video?/objc2-core-foundation", "objc2-foundation/objc2-core-foundation"] objc2-core-graphics = ["dep:objc2-core-graphics", "objc2-core-image?/objc2-core-graphics", "objc2-core-ml?/objc2-core-graphics", "objc2-core-video?/objc2-core-graphics"] diff --git a/framework-crates/objc2-web-kit/Cargo.toml b/framework-crates/objc2-web-kit/Cargo.toml index bbbadcafb..898765d40 100644 --- a/framework-crates/objc2-web-kit/Cargo.toml +++ b/framework-crates/objc2-web-kit/Cargo.toml @@ -17,10 +17,10 @@ workspace = true [dependencies] bitflags = { version = "2.5.0", default-features = false, optional = true } -block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true } -objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false } +block2 = { path = "../../crates/block2", version = "0.5.1", default-features = false, optional = true, features = ["alloc"] } +objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = false, features = ["std"] } objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", default-features = false, optional = true, features = ["objc2"] } -objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false } +objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-features = false, features = ["alloc"] } [target.'cfg(target_os = "macos")'.dependencies] objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features = false, optional = true } @@ -38,10 +38,8 @@ targets = [ [features] default = ["std"] - -# Currently not possible to turn off, put here for forwards compatibility. -std = ["alloc", "bitflags?/std", "block2?/std", "objc2/std", "objc2-app-kit?/std", "objc2-core-foundation?/std", "objc2-foundation/std"] -alloc = ["block2?/alloc", "objc2/alloc", "objc2-app-kit?/alloc", "objc2-core-foundation?/alloc", "objc2-foundation/alloc"] +std = ["alloc", "bitflags?/std"] +alloc = [] bitflags = ["dep:bitflags", "objc2-app-kit?/bitflags", "objc2-core-foundation?/bitflags", "objc2-foundation/bitflags"] block2 = ["dep:block2", "objc2-app-kit?/block2", "objc2-core-foundation?/block2", "objc2-foundation/block2"] objc2-app-kit = ["dep:objc2-app-kit"]