From ce0a269df7faf0c622978c0212d5e0108f6058b9 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Tue, 21 Jan 2025 21:56:31 +0100 Subject: [PATCH] Prepare for objc2 frameworks v0.3 (#420) These will have a bunch of default features enabled, so let's pre-emptively disable them. --- Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e3c5fb92..718186a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,7 +47,8 @@ jni-utils = "0.1.1" [target.'cfg(target_vendor = "apple")'.dependencies] objc2 = "0.5.2" -objc2-foundation = { version = "0.2.2", features = [ +objc2-foundation = { version = "0.2.2", default-features = false, features = [ + "std", "block2", "NSArray", "NSData", @@ -59,7 +60,8 @@ objc2-foundation = { version = "0.2.2", features = [ "NSUUID", "NSValue", ] } -objc2-core-bluetooth = { version = "0.2.2", features = [ +objc2-core-bluetooth = { version = "0.2.2", default-features = false, features = [ + "std", "CBAdvertisementData", "CBAttribute", "CBCentralManager",