Skip to content

Commit 3e2c808

Browse files
committed
remove external_doc feature
1 parent 9ad335e commit 3e2c808

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

src/lib.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#![cfg_attr(nightly, deny(rustdoc::broken_intra_doc_links))]
44
#![cfg_attr(nightly, feature(doc_cfg))]
55
#![doc(html_root_url = "https://docs.rs/twitch_api2/0.5.0")]
6-
#![cfg_attr(all(nightly, doctest), feature(external_doc))]
76
//! [![github]](https://github.com/emilgardis/twitch_api2) [![crates-io]](https://crates.io/crates/twitch_api2) [![docs-rs-big]](https://docs.rs/twitch_api2/0.5.0/twitch_api2)
87
//!
98
//! [github]: https://img.shields.io/badge/github-emilgardis/twitch__api2-8da0cb?style=for-the-badge&labelColor=555555&logo=github"
@@ -90,9 +89,15 @@
9089
//! | <span class="module-item stab portability" style="display: inline; border-radius: 3px; padding: 2px; font-size: 80%; line-height: 1.2;"><code>deny_unknown_fields</code></span> | Adds `#[serde(deny_unknown_fields)]` on all applicable structs/enums. Please consider using this and filing an issue or PR when a new field has been added to the endpoint but not added to this library. |
9190
//!
9291
93-
#[doc(include = "../README.md")]
94-
#[cfg(all(doctest, feature = "all"))]
95-
pub struct ReadmeDoctests;
92+
// FIXME: This is a hack to prevent early pass failing on
93+
// `arbitrary expressions in key-value attributes are unstable` on stable rust pre 1.54.
94+
// Remove when MSRV 1.54 (or when feature hits stable)
95+
#[cfg(all(doctest, nightly, feature = "all"))]
96+
mod readme {
97+
/// README doc tests
98+
#[doc = include_str!("../README.md")]
99+
pub struct ReadmeDoctests;
100+
}
96101

97102
pub mod types;
98103

0 commit comments

Comments
 (0)