Skip to content

Commit 34b5b41

Browse files
authored
Merge pull request #173 from Metaswitch/nightly-docs
Fix doc build breakage on stable
2 parents 2353db0 + 70d6c59 commit 34b5b41

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,4 @@ hyper = { version = "0.14", features = ["client", "http1", "tcp"] }
7575
[package.metadata.docs.rs]
7676
# Enable all features, pending https://github.com/rust-lang/rust/issues/43781 being resolved.
7777
all-features = true
78+
rustdoc-args = ["--cfg", "docsrs"]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
)]
3838
// Enable doc_auto_cfg, but only on doc builds
3939
// See https://github.com/rust-lang/rust/issues/43781 for details
40-
#![cfg_attr(doc, feature(doc_auto_cfg))]
40+
#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))]
4141

4242
use std::error;
4343
use std::fmt;

0 commit comments

Comments
 (0)