From e6eda12c1eb0b3cbb7df104dc6a2c2a29656f86e Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Mon, 23 Dec 2024 16:35:08 +0100 Subject: [PATCH] Fix cross-crate documentation link to objc2::topics At least on docs.rs, the link is still broken when generating local documentation. --- crates/dispatch2/Cargo.toml | 1 + crates/header-translator/src/default_cargo.toml | 1 + crates/objc2/src/lib.rs | 2 +- framework-crates/objc2-accessibility/Cargo.toml | 1 + framework-crates/objc2-accounts/Cargo.toml | 1 + framework-crates/objc2-ad-services/Cargo.toml | 1 + framework-crates/objc2-ad-support/Cargo.toml | 1 + framework-crates/objc2-app-kit/Cargo.toml | 1 + framework-crates/objc2-app-tracking-transparency/Cargo.toml | 1 + framework-crates/objc2-audio-toolbox/Cargo.toml | 1 + framework-crates/objc2-authentication-services/Cargo.toml | 1 + .../objc2-automatic-assessment-configuration/Cargo.toml | 1 + framework-crates/objc2-automator/Cargo.toml | 1 + framework-crates/objc2-av-foundation/Cargo.toml | 1 + framework-crates/objc2-av-kit/Cargo.toml | 1 + framework-crates/objc2-avf-audio/Cargo.toml | 1 + framework-crates/objc2-background-assets/Cargo.toml | 1 + framework-crates/objc2-background-tasks/Cargo.toml | 1 + framework-crates/objc2-business-chat/Cargo.toml | 1 + framework-crates/objc2-call-kit/Cargo.toml | 1 + framework-crates/objc2-class-kit/Cargo.toml | 1 + framework-crates/objc2-cloud-kit/Cargo.toml | 1 + framework-crates/objc2-contacts-ui/Cargo.toml | 1 + framework-crates/objc2-contacts/Cargo.toml | 1 + framework-crates/objc2-core-audio-types/Cargo.toml | 1 + framework-crates/objc2-core-bluetooth/Cargo.toml | 1 + framework-crates/objc2-core-data/Cargo.toml | 1 + framework-crates/objc2-core-foundation/Cargo.toml | 1 + framework-crates/objc2-core-graphics/Cargo.toml | 1 + framework-crates/objc2-core-image/Cargo.toml | 1 + framework-crates/objc2-core-location/Cargo.toml | 1 + framework-crates/objc2-core-media/Cargo.toml | 1 + framework-crates/objc2-core-ml/Cargo.toml | 1 + framework-crates/objc2-core-motion/Cargo.toml | 1 + framework-crates/objc2-core-text/Cargo.toml | 1 + framework-crates/objc2-core-video/Cargo.toml | 1 + framework-crates/objc2-core-wlan/Cargo.toml | 1 + framework-crates/objc2-data-detection/Cargo.toml | 1 + framework-crates/objc2-device-check/Cargo.toml | 1 + framework-crates/objc2-event-kit-ui/Cargo.toml | 1 + framework-crates/objc2-event-kit/Cargo.toml | 1 + framework-crates/objc2-exception-handling/Cargo.toml | 1 + framework-crates/objc2-extension-kit/Cargo.toml | 1 + framework-crates/objc2-external-accessory/Cargo.toml | 1 + framework-crates/objc2-file-provider-ui/Cargo.toml | 1 + framework-crates/objc2-file-provider/Cargo.toml | 1 + framework-crates/objc2-finder-sync/Cargo.toml | 1 + framework-crates/objc2-foundation/Cargo.toml | 1 + framework-crates/objc2-game-controller/Cargo.toml | 1 + framework-crates/objc2-game-kit/Cargo.toml | 1 + framework-crates/objc2-health-kit/Cargo.toml | 1 + framework-crates/objc2-identity-lookup/Cargo.toml | 1 + framework-crates/objc2-input-method-kit/Cargo.toml | 1 + framework-crates/objc2-io-surface/Cargo.toml | 1 + framework-crates/objc2-link-presentation/Cargo.toml | 1 + .../objc2-local-authentication-embedded-ui/Cargo.toml | 1 + framework-crates/objc2-local-authentication/Cargo.toml | 1 + framework-crates/objc2-mail-kit/Cargo.toml | 1 + framework-crates/objc2-map-kit/Cargo.toml | 1 + framework-crates/objc2-media-player/Cargo.toml | 1 + framework-crates/objc2-metal-fx/Cargo.toml | 1 + framework-crates/objc2-metal-kit/Cargo.toml | 1 + .../objc2-metal-performance-shaders-graph/Cargo.toml | 1 + framework-crates/objc2-metal-performance-shaders/Cargo.toml | 1 + framework-crates/objc2-metal/Cargo.toml | 1 + framework-crates/objc2-metric-kit/Cargo.toml | 1 + framework-crates/objc2-ml-compute/Cargo.toml | 1 + framework-crates/objc2-multipeer-connectivity/Cargo.toml | 1 + framework-crates/objc2-natural-language/Cargo.toml | 1 + framework-crates/objc2-nearby-interaction/Cargo.toml | 1 + framework-crates/objc2-network-extension/Cargo.toml | 1 + framework-crates/objc2-open-directory/Cargo.toml | 1 + framework-crates/objc2-osa-kit/Cargo.toml | 1 + framework-crates/objc2-photos-ui/Cargo.toml | 1 + framework-crates/objc2-photos/Cargo.toml | 1 + framework-crates/objc2-quartz-core/Cargo.toml | 1 + framework-crates/objc2-screen-capture-kit/Cargo.toml | 1 + framework-crates/objc2-screen-saver/Cargo.toml | 1 + framework-crates/objc2-sensitive-content-analysis/Cargo.toml | 1 + framework-crates/objc2-service-management/Cargo.toml | 1 + framework-crates/objc2-social/Cargo.toml | 1 + framework-crates/objc2-sound-analysis/Cargo.toml | 1 + framework-crates/objc2-speech/Cargo.toml | 1 + framework-crates/objc2-store-kit/Cargo.toml | 1 + framework-crates/objc2-symbols/Cargo.toml | 1 + framework-crates/objc2-system-extensions/Cargo.toml | 1 + framework-crates/objc2-ui-kit/Cargo.toml | 1 + framework-crates/objc2-uniform-type-identifiers/Cargo.toml | 1 + framework-crates/objc2-user-notifications/Cargo.toml | 1 + framework-crates/objc2-virtualization/Cargo.toml | 1 + framework-crates/objc2-vision/Cargo.toml | 1 + framework-crates/objc2-web-kit/Cargo.toml | 1 + 92 files changed, 92 insertions(+), 1 deletion(-) diff --git a/crates/dispatch2/Cargo.toml b/crates/dispatch2/Cargo.toml index 74d4b980c..ceea6d376 100644 --- a/crates/dispatch2/Cargo.toml +++ b/crates/dispatch2/Cargo.toml @@ -25,6 +25,7 @@ objc2 = { path = "../objc2", version = "0.5.2", default-features = false, option [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/crates/header-translator/src/default_cargo.toml b/crates/header-translator/src/default_cargo.toml index b0841dd54..8e1483fd6 100644 --- a/crates/header-translator/src/default_cargo.toml +++ b/crates/header-translator/src/default_cargo.toml @@ -20,6 +20,7 @@ workspace = true [package.metadata.docs.rs] default-target = "UNSET" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ ] diff --git a/crates/objc2/src/lib.rs b/crates/objc2/src/lib.rs index 35cecd686..c1605e693 100644 --- a/crates/objc2/src/lib.rs +++ b/crates/objc2/src/lib.rs @@ -211,7 +211,7 @@ pub mod runtime; #[cfg(test)] mod test_utils; mod top_level_traits; -#[cfg(any(doc, doctest, test))] +#[cfg(any(docsrs, doc, doctest, test))] pub mod topics; mod verify; diff --git a/framework-crates/objc2-accessibility/Cargo.toml b/framework-crates/objc2-accessibility/Cargo.toml index 8867de68a..9b06f1ac3 100644 --- a/framework-crates/objc2-accessibility/Cargo.toml +++ b/framework-crates/objc2-accessibility/Cargo.toml @@ -26,6 +26,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-accounts/Cargo.toml b/framework-crates/objc2-accounts/Cargo.toml index 0ddb22cfa..b21d4b29d 100644 --- a/framework-crates/objc2-accounts/Cargo.toml +++ b/framework-crates/objc2-accounts/Cargo.toml @@ -23,6 +23,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-ad-services/Cargo.toml b/framework-crates/objc2-ad-services/Cargo.toml index cd536c0ae..d89e4a976 100644 --- a/framework-crates/objc2-ad-services/Cargo.toml +++ b/framework-crates/objc2-ad-services/Cargo.toml @@ -22,6 +22,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-ad-support/Cargo.toml b/framework-crates/objc2-ad-support/Cargo.toml index dc0e31edd..e828315c8 100644 --- a/framework-crates/objc2-ad-support/Cargo.toml +++ b/framework-crates/objc2-ad-support/Cargo.toml @@ -22,6 +22,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-app-kit/Cargo.toml b/framework-crates/objc2-app-kit/Cargo.toml index 46e876e75..3b35e6690 100644 --- a/framework-crates/objc2-app-kit/Cargo.toml +++ b/framework-crates/objc2-app-kit/Cargo.toml @@ -34,6 +34,7 @@ objc2-uniform-type-identifiers = { path = "../objc2-uniform-type-identifiers", v [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-app-tracking-transparency/Cargo.toml b/framework-crates/objc2-app-tracking-transparency/Cargo.toml index 593414f34..569e210f3 100644 --- a/framework-crates/objc2-app-tracking-transparency/Cargo.toml +++ b/framework-crates/objc2-app-tracking-transparency/Cargo.toml @@ -22,6 +22,7 @@ objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = fal [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-audio-toolbox/Cargo.toml b/framework-crates/objc2-audio-toolbox/Cargo.toml index c07cc9972..327a55132 100644 --- a/framework-crates/objc2-audio-toolbox/Cargo.toml +++ b/framework-crates/objc2-audio-toolbox/Cargo.toml @@ -27,6 +27,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-authentication-services/Cargo.toml b/framework-crates/objc2-authentication-services/Cargo.toml index e8a007dd5..ec0c9d73c 100644 --- a/framework-crates/objc2-authentication-services/Cargo.toml +++ b/framework-crates/objc2-authentication-services/Cargo.toml @@ -28,6 +28,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-automatic-assessment-configuration/Cargo.toml b/framework-crates/objc2-automatic-assessment-configuration/Cargo.toml index 14964e335..cf02882da 100644 --- a/framework-crates/objc2-automatic-assessment-configuration/Cargo.toml +++ b/framework-crates/objc2-automatic-assessment-configuration/Cargo.toml @@ -23,6 +23,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-automator/Cargo.toml b/framework-crates/objc2-automator/Cargo.toml index e49daa909..7f2142270 100644 --- a/framework-crates/objc2-automator/Cargo.toml +++ b/framework-crates/objc2-automator/Cargo.toml @@ -25,6 +25,7 @@ objc2-osa-kit = { path = "../objc2-osa-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-av-foundation/Cargo.toml b/framework-crates/objc2-av-foundation/Cargo.toml index a244c7f77..bf88da54e 100644 --- a/framework-crates/objc2-av-foundation/Cargo.toml +++ b/framework-crates/objc2-av-foundation/Cargo.toml @@ -34,6 +34,7 @@ objc2-quartz-core = { path = "../objc2-quartz-core", version = "0.2.2", default- [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-av-kit/Cargo.toml b/framework-crates/objc2-av-kit/Cargo.toml index 5daea26ca..879e0d284 100644 --- a/framework-crates/objc2-av-kit/Cargo.toml +++ b/framework-crates/objc2-av-kit/Cargo.toml @@ -33,6 +33,7 @@ objc2-quartz-core = { path = "../objc2-quartz-core", version = "0.2.2", default- [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-avf-audio/Cargo.toml b/framework-crates/objc2-avf-audio/Cargo.toml index 38c0c0fd6..64dd9c335 100644 --- a/framework-crates/objc2-avf-audio/Cargo.toml +++ b/framework-crates/objc2-avf-audio/Cargo.toml @@ -29,6 +29,7 @@ objc2-audio-toolbox = { path = "../objc2-audio-toolbox", version = "0.2.2", defa [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-background-assets/Cargo.toml b/framework-crates/objc2-background-assets/Cargo.toml index e711470f4..e2261c92b 100644 --- a/framework-crates/objc2-background-assets/Cargo.toml +++ b/framework-crates/objc2-background-assets/Cargo.toml @@ -23,6 +23,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-background-tasks/Cargo.toml b/framework-crates/objc2-background-tasks/Cargo.toml index 416853905..26ba2ebcd 100644 --- a/framework-crates/objc2-background-tasks/Cargo.toml +++ b/framework-crates/objc2-background-tasks/Cargo.toml @@ -23,6 +23,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-ios" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-ios", "x86_64-apple-ios", diff --git a/framework-crates/objc2-business-chat/Cargo.toml b/framework-crates/objc2-business-chat/Cargo.toml index 51d971b74..c47f4d2b8 100644 --- a/framework-crates/objc2-business-chat/Cargo.toml +++ b/framework-crates/objc2-business-chat/Cargo.toml @@ -26,6 +26,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-call-kit/Cargo.toml b/framework-crates/objc2-call-kit/Cargo.toml index 388ac7bfb..dc1487819 100644 --- a/framework-crates/objc2-call-kit/Cargo.toml +++ b/framework-crates/objc2-call-kit/Cargo.toml @@ -24,6 +24,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-class-kit/Cargo.toml b/framework-crates/objc2-class-kit/Cargo.toml index d3c2edd50..506080f24 100644 --- a/framework-crates/objc2-class-kit/Cargo.toml +++ b/framework-crates/objc2-class-kit/Cargo.toml @@ -24,6 +24,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-cloud-kit/Cargo.toml b/framework-crates/objc2-cloud-kit/Cargo.toml index c31d9ce0a..6d33b7e8f 100644 --- a/framework-crates/objc2-cloud-kit/Cargo.toml +++ b/framework-crates/objc2-cloud-kit/Cargo.toml @@ -25,6 +25,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-contacts-ui/Cargo.toml b/framework-crates/objc2-contacts-ui/Cargo.toml index efb1f697f..e11f2816f 100644 --- a/framework-crates/objc2-contacts-ui/Cargo.toml +++ b/framework-crates/objc2-contacts-ui/Cargo.toml @@ -27,6 +27,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-contacts/Cargo.toml b/framework-crates/objc2-contacts/Cargo.toml index 41caa00f4..e068505a9 100644 --- a/framework-crates/objc2-contacts/Cargo.toml +++ b/framework-crates/objc2-contacts/Cargo.toml @@ -23,6 +23,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-core-audio-types/Cargo.toml b/framework-crates/objc2-core-audio-types/Cargo.toml index 73c2de794..27a7d4724 100644 --- a/framework-crates/objc2-core-audio-types/Cargo.toml +++ b/framework-crates/objc2-core-audio-types/Cargo.toml @@ -22,6 +22,7 @@ objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = fal [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-core-bluetooth/Cargo.toml b/framework-crates/objc2-core-bluetooth/Cargo.toml index a1ef3765d..c83199edf 100644 --- a/framework-crates/objc2-core-bluetooth/Cargo.toml +++ b/framework-crates/objc2-core-bluetooth/Cargo.toml @@ -24,6 +24,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-core-data/Cargo.toml b/framework-crates/objc2-core-data/Cargo.toml index f23320175..19113a23c 100644 --- a/framework-crates/objc2-core-data/Cargo.toml +++ b/framework-crates/objc2-core-data/Cargo.toml @@ -25,6 +25,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-core-foundation/Cargo.toml b/framework-crates/objc2-core-foundation/Cargo.toml index 80f6d094d..5e1a6f0e7 100644 --- a/framework-crates/objc2-core-foundation/Cargo.toml +++ b/framework-crates/objc2-core-foundation/Cargo.toml @@ -24,6 +24,7 @@ objc2 = { path = "../../crates/objc2", version = "0.5.2", default-features = fal [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-core-graphics/Cargo.toml b/framework-crates/objc2-core-graphics/Cargo.toml index 04befb5e3..0c70c5f22 100644 --- a/framework-crates/objc2-core-graphics/Cargo.toml +++ b/framework-crates/objc2-core-graphics/Cargo.toml @@ -29,6 +29,7 @@ objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = f [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-core-image/Cargo.toml b/framework-crates/objc2-core-image/Cargo.toml index 492811adf..30f1480a0 100644 --- a/framework-crates/objc2-core-image/Cargo.toml +++ b/framework-crates/objc2-core-image/Cargo.toml @@ -29,6 +29,7 @@ objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = f [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-core-location/Cargo.toml b/framework-crates/objc2-core-location/Cargo.toml index 004c329d7..849018324 100644 --- a/framework-crates/objc2-core-location/Cargo.toml +++ b/framework-crates/objc2-core-location/Cargo.toml @@ -26,6 +26,7 @@ objc2-contacts = { path = "../objc2-contacts", version = "0.2.2", default-featur [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-core-media/Cargo.toml b/framework-crates/objc2-core-media/Cargo.toml index 208892bbd..eef0c0ed1 100644 --- a/framework-crates/objc2-core-media/Cargo.toml +++ b/framework-crates/objc2-core-media/Cargo.toml @@ -26,6 +26,7 @@ objc2-core-video = { path = "../objc2-core-video", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-core-ml/Cargo.toml b/framework-crates/objc2-core-ml/Cargo.toml index d2f531c68..70927b0b2 100644 --- a/framework-crates/objc2-core-ml/Cargo.toml +++ b/framework-crates/objc2-core-ml/Cargo.toml @@ -29,6 +29,7 @@ objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = f [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-core-motion/Cargo.toml b/framework-crates/objc2-core-motion/Cargo.toml index 84b8e11d9..f8c93077b 100644 --- a/framework-crates/objc2-core-motion/Cargo.toml +++ b/framework-crates/objc2-core-motion/Cargo.toml @@ -25,6 +25,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-core-text/Cargo.toml b/framework-crates/objc2-core-text/Cargo.toml index 767b8d240..bd169cf00 100644 --- a/framework-crates/objc2-core-text/Cargo.toml +++ b/framework-crates/objc2-core-text/Cargo.toml @@ -26,6 +26,7 @@ objc2-core-graphics = { path = "../objc2-core-graphics", version = "0.2.2", defa [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-core-video/Cargo.toml b/framework-crates/objc2-core-video/Cargo.toml index b063a9412..5adc7f745 100644 --- a/framework-crates/objc2-core-video/Cargo.toml +++ b/framework-crates/objc2-core-video/Cargo.toml @@ -29,6 +29,7 @@ objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = f [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-core-wlan/Cargo.toml b/framework-crates/objc2-core-wlan/Cargo.toml index 1d727591c..3b75d2680 100644 --- a/framework-crates/objc2-core-wlan/Cargo.toml +++ b/framework-crates/objc2-core-wlan/Cargo.toml @@ -24,6 +24,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-data-detection/Cargo.toml b/framework-crates/objc2-data-detection/Cargo.toml index 04e164d1d..e91facbf3 100644 --- a/framework-crates/objc2-data-detection/Cargo.toml +++ b/framework-crates/objc2-data-detection/Cargo.toml @@ -22,6 +22,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-device-check/Cargo.toml b/framework-crates/objc2-device-check/Cargo.toml index d737811ae..9996023b2 100644 --- a/framework-crates/objc2-device-check/Cargo.toml +++ b/framework-crates/objc2-device-check/Cargo.toml @@ -23,6 +23,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-event-kit-ui/Cargo.toml b/framework-crates/objc2-event-kit-ui/Cargo.toml index 9f8c790c0..216a3e26b 100644 --- a/framework-crates/objc2-event-kit-ui/Cargo.toml +++ b/framework-crates/objc2-event-kit-ui/Cargo.toml @@ -24,6 +24,7 @@ objc2-ui-kit = { path = "../objc2-ui-kit", version = "0.2.2", default-features = [package.metadata.docs.rs] default-target = "aarch64-apple-ios" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-ios", "x86_64-apple-ios", diff --git a/framework-crates/objc2-event-kit/Cargo.toml b/framework-crates/objc2-event-kit/Cargo.toml index f9bc4a10f..4c8320ad2 100644 --- a/framework-crates/objc2-event-kit/Cargo.toml +++ b/framework-crates/objc2-event-kit/Cargo.toml @@ -30,6 +30,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-exception-handling/Cargo.toml b/framework-crates/objc2-exception-handling/Cargo.toml index f01e4efd8..290dac6b5 100644 --- a/framework-crates/objc2-exception-handling/Cargo.toml +++ b/framework-crates/objc2-exception-handling/Cargo.toml @@ -22,6 +22,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-extension-kit/Cargo.toml b/framework-crates/objc2-extension-kit/Cargo.toml index 7c5e325f7..f258a62ec 100644 --- a/framework-crates/objc2-extension-kit/Cargo.toml +++ b/framework-crates/objc2-extension-kit/Cargo.toml @@ -25,6 +25,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-external-accessory/Cargo.toml b/framework-crates/objc2-external-accessory/Cargo.toml index f75c1eed9..5f768d1fd 100644 --- a/framework-crates/objc2-external-accessory/Cargo.toml +++ b/framework-crates/objc2-external-accessory/Cargo.toml @@ -24,6 +24,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-file-provider-ui/Cargo.toml b/framework-crates/objc2-file-provider-ui/Cargo.toml index 041523097..795651d2e 100644 --- a/framework-crates/objc2-file-provider-ui/Cargo.toml +++ b/framework-crates/objc2-file-provider-ui/Cargo.toml @@ -27,6 +27,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-file-provider/Cargo.toml b/framework-crates/objc2-file-provider/Cargo.toml index 32c706cc5..32b70da75 100644 --- a/framework-crates/objc2-file-provider/Cargo.toml +++ b/framework-crates/objc2-file-provider/Cargo.toml @@ -26,6 +26,7 @@ objc2-uniform-type-identifiers = { path = "../objc2-uniform-type-identifiers", v [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-finder-sync/Cargo.toml b/framework-crates/objc2-finder-sync/Cargo.toml index 39c5d75b4..457f2479a 100644 --- a/framework-crates/objc2-finder-sync/Cargo.toml +++ b/framework-crates/objc2-finder-sync/Cargo.toml @@ -24,6 +24,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-foundation/Cargo.toml b/framework-crates/objc2-foundation/Cargo.toml index 7329a7cd1..5c4d38623 100644 --- a/framework-crates/objc2-foundation/Cargo.toml +++ b/framework-crates/objc2-foundation/Cargo.toml @@ -25,6 +25,7 @@ objc2-core-foundation = { path = "../objc2-core-foundation", version = "0.2.2", [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-game-controller/Cargo.toml b/framework-crates/objc2-game-controller/Cargo.toml index 82517285a..f67510cb5 100644 --- a/framework-crates/objc2-game-controller/Cargo.toml +++ b/framework-crates/objc2-game-controller/Cargo.toml @@ -28,6 +28,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-game-kit/Cargo.toml b/framework-crates/objc2-game-kit/Cargo.toml index 002476a5e..5f65116c0 100644 --- a/framework-crates/objc2-game-kit/Cargo.toml +++ b/framework-crates/objc2-game-kit/Cargo.toml @@ -27,6 +27,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-health-kit/Cargo.toml b/framework-crates/objc2-health-kit/Cargo.toml index 4466da268..1cece3d23 100644 --- a/framework-crates/objc2-health-kit/Cargo.toml +++ b/framework-crates/objc2-health-kit/Cargo.toml @@ -26,6 +26,7 @@ objc2-uniform-type-identifiers = { path = "../objc2-uniform-type-identifiers", v [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-identity-lookup/Cargo.toml b/framework-crates/objc2-identity-lookup/Cargo.toml index 6832fb263..2c40cbb96 100644 --- a/framework-crates/objc2-identity-lookup/Cargo.toml +++ b/framework-crates/objc2-identity-lookup/Cargo.toml @@ -23,6 +23,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-input-method-kit/Cargo.toml b/framework-crates/objc2-input-method-kit/Cargo.toml index 7bdc991e8..99fb38b73 100644 --- a/framework-crates/objc2-input-method-kit/Cargo.toml +++ b/framework-crates/objc2-input-method-kit/Cargo.toml @@ -24,6 +24,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-io-surface/Cargo.toml b/framework-crates/objc2-io-surface/Cargo.toml index f1b046c90..3b57b7d55 100644 --- a/framework-crates/objc2-io-surface/Cargo.toml +++ b/framework-crates/objc2-io-surface/Cargo.toml @@ -25,6 +25,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-link-presentation/Cargo.toml b/framework-crates/objc2-link-presentation/Cargo.toml index eec92d1a7..47afdf601 100644 --- a/framework-crates/objc2-link-presentation/Cargo.toml +++ b/framework-crates/objc2-link-presentation/Cargo.toml @@ -27,6 +27,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-local-authentication-embedded-ui/Cargo.toml b/framework-crates/objc2-local-authentication-embedded-ui/Cargo.toml index f85b84ef4..d576e8f43 100644 --- a/framework-crates/objc2-local-authentication-embedded-ui/Cargo.toml +++ b/framework-crates/objc2-local-authentication-embedded-ui/Cargo.toml @@ -28,6 +28,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-local-authentication/Cargo.toml b/framework-crates/objc2-local-authentication/Cargo.toml index e648001c4..5c246af33 100644 --- a/framework-crates/objc2-local-authentication/Cargo.toml +++ b/framework-crates/objc2-local-authentication/Cargo.toml @@ -23,6 +23,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-mail-kit/Cargo.toml b/framework-crates/objc2-mail-kit/Cargo.toml index cf2b7203e..5006b50dd 100644 --- a/framework-crates/objc2-mail-kit/Cargo.toml +++ b/framework-crates/objc2-mail-kit/Cargo.toml @@ -24,6 +24,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-map-kit/Cargo.toml b/framework-crates/objc2-map-kit/Cargo.toml index c2edb6996..534daf3cb 100644 --- a/framework-crates/objc2-map-kit/Cargo.toml +++ b/framework-crates/objc2-map-kit/Cargo.toml @@ -33,6 +33,7 @@ objc2-contacts = { path = "../objc2-contacts", version = "0.2.2", default-featur [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-media-player/Cargo.toml b/framework-crates/objc2-media-player/Cargo.toml index 1054cfea7..92f194861 100644 --- a/framework-crates/objc2-media-player/Cargo.toml +++ b/framework-crates/objc2-media-player/Cargo.toml @@ -30,6 +30,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-metal-fx/Cargo.toml b/framework-crates/objc2-metal-fx/Cargo.toml index b05e3ca74..d8ec50c22 100644 --- a/framework-crates/objc2-metal-fx/Cargo.toml +++ b/framework-crates/objc2-metal-fx/Cargo.toml @@ -23,6 +23,7 @@ objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = f [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-metal-kit/Cargo.toml b/framework-crates/objc2-metal-kit/Cargo.toml index 51c8cf77d..3b4871418 100644 --- a/framework-crates/objc2-metal-kit/Cargo.toml +++ b/framework-crates/objc2-metal-kit/Cargo.toml @@ -30,6 +30,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-metal-performance-shaders-graph/Cargo.toml b/framework-crates/objc2-metal-performance-shaders-graph/Cargo.toml index 3f4628e9c..0458cb089 100644 --- a/framework-crates/objc2-metal-performance-shaders-graph/Cargo.toml +++ b/framework-crates/objc2-metal-performance-shaders-graph/Cargo.toml @@ -25,6 +25,7 @@ objc2-metal-performance-shaders = { path = "../objc2-metal-performance-shaders", [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-metal-performance-shaders/Cargo.toml b/framework-crates/objc2-metal-performance-shaders/Cargo.toml index 70ba61ed7..099055ebf 100644 --- a/framework-crates/objc2-metal-performance-shaders/Cargo.toml +++ b/framework-crates/objc2-metal-performance-shaders/Cargo.toml @@ -27,6 +27,7 @@ objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = f [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-metal/Cargo.toml b/framework-crates/objc2-metal/Cargo.toml index fda2e1936..75d12a5a9 100644 --- a/framework-crates/objc2-metal/Cargo.toml +++ b/framework-crates/objc2-metal/Cargo.toml @@ -26,6 +26,7 @@ objc2-io-surface = { path = "../objc2-io-surface", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-metric-kit/Cargo.toml b/framework-crates/objc2-metric-kit/Cargo.toml index 5bec583c5..9572349b1 100644 --- a/framework-crates/objc2-metric-kit/Cargo.toml +++ b/framework-crates/objc2-metric-kit/Cargo.toml @@ -23,6 +23,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-ml-compute/Cargo.toml b/framework-crates/objc2-ml-compute/Cargo.toml index 6fc3e4d9d..c2e087b48 100644 --- a/framework-crates/objc2-ml-compute/Cargo.toml +++ b/framework-crates/objc2-ml-compute/Cargo.toml @@ -25,6 +25,7 @@ objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = f [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-multipeer-connectivity/Cargo.toml b/framework-crates/objc2-multipeer-connectivity/Cargo.toml index 7f9e0ac39..f9e20746d 100644 --- a/framework-crates/objc2-multipeer-connectivity/Cargo.toml +++ b/framework-crates/objc2-multipeer-connectivity/Cargo.toml @@ -26,6 +26,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-natural-language/Cargo.toml b/framework-crates/objc2-natural-language/Cargo.toml index 53f45c300..0f931ede8 100644 --- a/framework-crates/objc2-natural-language/Cargo.toml +++ b/framework-crates/objc2-natural-language/Cargo.toml @@ -25,6 +25,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-nearby-interaction/Cargo.toml b/framework-crates/objc2-nearby-interaction/Cargo.toml index 0d53563c0..17e67e422 100644 --- a/framework-crates/objc2-nearby-interaction/Cargo.toml +++ b/framework-crates/objc2-nearby-interaction/Cargo.toml @@ -22,6 +22,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-network-extension/Cargo.toml b/framework-crates/objc2-network-extension/Cargo.toml index 3d0bc0573..dd4e2e1e5 100644 --- a/framework-crates/objc2-network-extension/Cargo.toml +++ b/framework-crates/objc2-network-extension/Cargo.toml @@ -24,6 +24,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-open-directory/Cargo.toml b/framework-crates/objc2-open-directory/Cargo.toml index 9d9fcf941..1f18a4257 100644 --- a/framework-crates/objc2-open-directory/Cargo.toml +++ b/framework-crates/objc2-open-directory/Cargo.toml @@ -23,6 +23,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-osa-kit/Cargo.toml b/framework-crates/objc2-osa-kit/Cargo.toml index 8b107d1cf..2db52ad3a 100644 --- a/framework-crates/objc2-osa-kit/Cargo.toml +++ b/framework-crates/objc2-osa-kit/Cargo.toml @@ -25,6 +25,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-photos-ui/Cargo.toml b/framework-crates/objc2-photos-ui/Cargo.toml index f475e3d82..e91d03bdb 100644 --- a/framework-crates/objc2-photos-ui/Cargo.toml +++ b/framework-crates/objc2-photos-ui/Cargo.toml @@ -33,6 +33,7 @@ objc2-photos = { path = "../objc2-photos", version = "0.2.2", default-features = [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-photos/Cargo.toml b/framework-crates/objc2-photos/Cargo.toml index 42dbbd766..2f897b0a5 100644 --- a/framework-crates/objc2-photos/Cargo.toml +++ b/framework-crates/objc2-photos/Cargo.toml @@ -33,6 +33,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-quartz-core/Cargo.toml b/framework-crates/objc2-quartz-core/Cargo.toml index 4c4d3da4b..6f9beab8a 100644 --- a/framework-crates/objc2-quartz-core/Cargo.toml +++ b/framework-crates/objc2-quartz-core/Cargo.toml @@ -29,6 +29,7 @@ objc2-metal = { path = "../objc2-metal", version = "0.2.2", default-features = f [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-screen-capture-kit/Cargo.toml b/framework-crates/objc2-screen-capture-kit/Cargo.toml index 92284b58e..14043a1e5 100644 --- a/framework-crates/objc2-screen-capture-kit/Cargo.toml +++ b/framework-crates/objc2-screen-capture-kit/Cargo.toml @@ -29,6 +29,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-screen-saver/Cargo.toml b/framework-crates/objc2-screen-saver/Cargo.toml index 8e4975afa..0fc7333a2 100644 --- a/framework-crates/objc2-screen-saver/Cargo.toml +++ b/framework-crates/objc2-screen-saver/Cargo.toml @@ -24,6 +24,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-sensitive-content-analysis/Cargo.toml b/framework-crates/objc2-sensitive-content-analysis/Cargo.toml index 60119a476..72bb4e176 100644 --- a/framework-crates/objc2-sensitive-content-analysis/Cargo.toml +++ b/framework-crates/objc2-sensitive-content-analysis/Cargo.toml @@ -24,6 +24,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-service-management/Cargo.toml b/framework-crates/objc2-service-management/Cargo.toml index c725b0e5a..39db722e5 100644 --- a/framework-crates/objc2-service-management/Cargo.toml +++ b/framework-crates/objc2-service-management/Cargo.toml @@ -23,6 +23,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-social/Cargo.toml b/framework-crates/objc2-social/Cargo.toml index 3d8b77ae6..34b26547a 100644 --- a/framework-crates/objc2-social/Cargo.toml +++ b/framework-crates/objc2-social/Cargo.toml @@ -27,6 +27,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-sound-analysis/Cargo.toml b/framework-crates/objc2-sound-analysis/Cargo.toml index c55e1369f..d3a9e8b8a 100644 --- a/framework-crates/objc2-sound-analysis/Cargo.toml +++ b/framework-crates/objc2-sound-analysis/Cargo.toml @@ -26,6 +26,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-speech/Cargo.toml b/framework-crates/objc2-speech/Cargo.toml index e1b842ddf..b195d3e03 100644 --- a/framework-crates/objc2-speech/Cargo.toml +++ b/framework-crates/objc2-speech/Cargo.toml @@ -25,6 +25,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-store-kit/Cargo.toml b/framework-crates/objc2-store-kit/Cargo.toml index 191cece00..8e9a5a11d 100644 --- a/framework-crates/objc2-store-kit/Cargo.toml +++ b/framework-crates/objc2-store-kit/Cargo.toml @@ -28,6 +28,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-symbols/Cargo.toml b/framework-crates/objc2-symbols/Cargo.toml index cd0866cc9..d34c2db96 100644 --- a/framework-crates/objc2-symbols/Cargo.toml +++ b/framework-crates/objc2-symbols/Cargo.toml @@ -22,6 +22,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-system-extensions/Cargo.toml b/framework-crates/objc2-system-extensions/Cargo.toml index 7ab293b17..03cd727cd 100644 --- a/framework-crates/objc2-system-extensions/Cargo.toml +++ b/framework-crates/objc2-system-extensions/Cargo.toml @@ -22,6 +22,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-ui-kit/Cargo.toml b/framework-crates/objc2-ui-kit/Cargo.toml index 1b1ba6862..a3b52186c 100644 --- a/framework-crates/objc2-ui-kit/Cargo.toml +++ b/framework-crates/objc2-ui-kit/Cargo.toml @@ -36,6 +36,7 @@ objc2-quartz-core = { path = "../objc2-quartz-core", version = "0.2.2", default- [package.metadata.docs.rs] default-target = "aarch64-apple-ios" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-ios", "x86_64-apple-ios", diff --git a/framework-crates/objc2-uniform-type-identifiers/Cargo.toml b/framework-crates/objc2-uniform-type-identifiers/Cargo.toml index 46784a219..f59daa7a1 100644 --- a/framework-crates/objc2-uniform-type-identifiers/Cargo.toml +++ b/framework-crates/objc2-uniform-type-identifiers/Cargo.toml @@ -23,6 +23,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-user-notifications/Cargo.toml b/framework-crates/objc2-user-notifications/Cargo.toml index 544be4195..23ede6730 100644 --- a/framework-crates/objc2-user-notifications/Cargo.toml +++ b/framework-crates/objc2-user-notifications/Cargo.toml @@ -25,6 +25,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-virtualization/Cargo.toml b/framework-crates/objc2-virtualization/Cargo.toml index ac675d4e9..167e24e8e 100644 --- a/framework-crates/objc2-virtualization/Cargo.toml +++ b/framework-crates/objc2-virtualization/Cargo.toml @@ -26,6 +26,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-vision/Cargo.toml b/framework-crates/objc2-vision/Cargo.toml index 85c75e923..09b0796eb 100644 --- a/framework-crates/objc2-vision/Cargo.toml +++ b/framework-crates/objc2-vision/Cargo.toml @@ -29,6 +29,7 @@ objc2-foundation = { path = "../objc2-foundation", version = "0.2.2", default-fe [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", diff --git a/framework-crates/objc2-web-kit/Cargo.toml b/framework-crates/objc2-web-kit/Cargo.toml index cbf78b826..bbbadcafb 100644 --- a/framework-crates/objc2-web-kit/Cargo.toml +++ b/framework-crates/objc2-web-kit/Cargo.toml @@ -28,6 +28,7 @@ objc2-app-kit = { path = "../objc2-app-kit", version = "0.2.2", default-features [package.metadata.docs.rs] default-target = "aarch64-apple-darwin" features = ["all"] +rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin",