docs(lib): enable doc_cfg on docs.rs builds (#2372)
This commit is contained in:
2
.github/workflows/CI.yml
vendored
2
.github/workflows/CI.yml
vendored
@@ -132,4 +132,4 @@ jobs:
|
|||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: rustdoc
|
command: rustdoc
|
||||||
args: --features full -- -D broken-intra-doc-links
|
args: --features full -- --cfg docsrs -D broken-intra-doc-links
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
#![cfg_attr(test, deny(rust_2018_idioms))]
|
#![cfg_attr(test, deny(rust_2018_idioms))]
|
||||||
#![cfg_attr(test, deny(warnings))]
|
#![cfg_attr(test, deny(warnings))]
|
||||||
#![cfg_attr(all(test, feature = "nightly"), feature(test))]
|
#![cfg_attr(all(test, feature = "nightly"), feature(test))]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
//! # hyper
|
//! # hyper
|
||||||
//!
|
//!
|
||||||
|
|||||||
Reference in New Issue
Block a user