From 8cfb1cb962b88f329e430e80a98e13b1c01c5d24 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Sun, 27 Aug 2023 21:10:03 +0200 Subject: [PATCH] Fix build errors --- .../header-translator/translation-config.toml | 34 +++++++------------ crates/icrate/src/generated | 2 +- crates/icrate/src/lib.rs | 2 +- crates/objc2/src/message/mod.rs | 2 +- 4 files changed, 16 insertions(+), 24 deletions(-) diff --git a/crates/header-translator/translation-config.toml b/crates/header-translator/translation-config.toml index 83e32072e..0d74bd1a9 100644 --- a/crates/header-translator/translation-config.toml +++ b/crates/header-translator/translation-config.toml @@ -80,8 +80,8 @@ tvos = "13.0" [library.BusinessChat] imports = ["AppKit", "Foundation"] macos = "10.14" -maccatalyst = "13.0" # Unsure -ios = "11.0" # Unsure +maccatalyst = "13.0" # Unsure +ios = "11.0" # Unsure [library.CallKit] imports = ["Foundation"] @@ -98,9 +98,7 @@ ios = "11.4" [library.CloudKit] imports = ["CoreLocation", "Foundation"] -extra-features = [ - "CloudKit_CKShare", -] +extra-features = ["CloudKit_CKShare"] macos = "10.10" maccatalyst = "13.0" ios = "8.0" @@ -126,11 +124,9 @@ watchos = "2.0" [library.CoreLocation] imports = ["Contacts", "Foundation"] -extra-features = [ - "CoreLocation_CLPlacemark", -] +extra-features = ["CoreLocation_CLPlacemark"] # macos = "10.6" -macos = "10.11" # Temporarily raised since `CoreLocation` imports `Contacts` +macos = "10.11" # Temporarily raised since `CoreLocation` imports `Contacts` maccatalyst = "13.0" ios = "2.0" tvos = "9.0" @@ -154,9 +150,7 @@ watchos = "9.0" [library.EventKit] imports = ["AppKit", "CoreLocation", "Foundation", "MapKit"] -extra-features = [ - "EventKit_EKEvent", -] +extra-features = ["EventKit_EKEvent"] macos = "10.8" maccatalyst = "13.0" ios = "4.0" @@ -237,9 +231,7 @@ tvos = "9.0" [library.GameKit] imports = ["AppKit", "Foundation"] -extra-features = [ - "AppKit_NSViewController", -] +extra-features = ["AppKit_NSViewController"] macos = "10.8" maccatalyst = "13.0" ios = "3.0" @@ -273,9 +265,7 @@ watchos = "9.0" [library.LocalAuthenticationEmbeddedUI] imports = ["AppKit", "Foundation", "LocalAuthentication"] -extra-features = [ - "AppKit_NSWindow", -] +extra-features = ["AppKit_NSWindow"] macos = "12.0" maccatalyst = "16.0" ios = "16.0" @@ -389,9 +379,7 @@ watchos = "6.2" [library.UniformTypeIdentifiers] imports = ["Foundation"] -extra-features = [ - "UniformTypeIdentifiers_UTType", -] +extra-features = ["UniformTypeIdentifiers_UTType"] macos = "11.0" maccatalyst = "14.0" ios = "14.0" @@ -1229,6 +1217,10 @@ skipped = true skipped = true [class.MPAdTimeRange.methods.setTimeRange] skipped = true +# Uses LocalAuthentication framework +[protocol.ASAuthorizationWebBrowserExternallyAuthenticatableRequest.methods] +authenticatedContext = { skipped = true } +setAuthenticatedContext = { skipped = true } # Uses a pointer to SEL, which doesn't implement Encode yet [protocol.NSMenuDelegate.methods] diff --git a/crates/icrate/src/generated b/crates/icrate/src/generated index 8f7701c0f..68cbbd5e5 160000 --- a/crates/icrate/src/generated +++ b/crates/icrate/src/generated @@ -1 +1 @@ -Subproject commit 8f7701c0fef5975cb516aa523806ee8015341566 +Subproject commit 68cbbd5e5aff873e79244373663d86f85883e92e diff --git a/crates/icrate/src/lib.rs b/crates/icrate/src/lib.rs index 1e4dae41b..90b385350 100644 --- a/crates/icrate/src/lib.rs +++ b/crates/icrate/src/lib.rs @@ -149,7 +149,7 @@ pub mod UserNotifications; #[cfg(feature = "WebKit")] pub mod WebKit; -/// Deprecated alias of [`Foundation::ns_string`][crate::Foundation::ns_string]. +/// Deprecated alias of [`Foundation::ns_string`]. #[macro_export] #[deprecated = "use icrate::Foundation::ns_string instead"] #[cfg(feature = "Foundation_NSString")] diff --git a/crates/objc2/src/message/mod.rs b/crates/objc2/src/message/mod.rs index 3db849cff..68ba65f9f 100644 --- a/crates/objc2/src/message/mod.rs +++ b/crates/objc2/src/message/mod.rs @@ -482,7 +482,7 @@ unsafe impl<'a> MessageReceiver for &'a AnyClass { /// Types that may be used as the arguments of an Objective-C message. /// /// This is implemented for tuples of up to 16 arguments, where each argument -/// implements [`Encode`][crate::Encode] (or can be converted from one). +/// implements [`Encode`] (or can be converted from one). /// /// /// # Safety