Skip to content

Commit c8b81ed

Browse files
committed
Fix cross-crate documentation link to objc2::topics
At least on docs.rs, the link is still broken when generating local documentation.
1 parent e84e493 commit c8b81ed

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/header-translator/src/default_cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ workspace = true
2020
[package.metadata.docs.rs]
2121
default-target = "UNSET"
2222
features = ["all"]
23+
rustc-args = ["--cfg", "docsrs"] # Fix cross-crate link to objc2::topics
2324
targets = [
2425
]
2526

crates/objc2/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ pub mod runtime;
211211
#[cfg(test)]
212212
mod test_utils;
213213
mod top_level_traits;
214-
#[cfg(any(doc, doctest, test))]
214+
#[cfg(any(docsrs, doc, doctest, test))]
215215
pub mod topics;
216216
mod verify;
217217

0 commit comments

Comments
 (0)