Skip to content

Commit 3358324

Browse files
committed
remove external_doc feature
1 parent 9ad335e commit 3358324

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/lib.rs

Lines changed: 5 additions & 3 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,8 +89,11 @@
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"))]
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 hits stable)
95+
// https://github.com/rust-lang/rust/issues/82768
96+
#[cfg_attr(all(doctest, nightly, feature = "all"), cfg_attr(all(doctest, nightly, feature = "all"), doc = include_str!("../README.md")))]
9597
pub struct ReadmeDoctests;
9698

9799
pub mod types;

0 commit comments

Comments
 (0)