Skip to content

Commit 37bd8bc

Browse files
committed
Fix
1 parent ae342aa commit 37bd8bc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

block-sys/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ objc-sys = { git = "https://github.com/madsmtm/objc2", optional = true, package
5252
[package.metadata.docs.rs]
5353
default-target = "x86_64-apple-darwin"
5454
no-default-features = true
55+
rustc-args = ["--cfg", "docsrs"]
5556

5657
targets = [
5758
# MacOS

block-sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
extern crate std;
2020

2121
// Ensure linkage actually happens
22-
#[cfg(feature = "gnustep-1-7")]
22+
#[cfg(all(feature = "gnustep-1-7", not(docsrs)))]
2323
extern crate objc_sys as _;
2424

2525
#[cfg(doctest)]

0 commit comments

Comments
 (0)