Use doc_auto_cfg for automatic cfg documentation

This commit is contained in:
Jonas Platte 2022-01-02 19:22:42 +01:00
parent fac7d53134
commit 9621b83d49
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
7 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@
//! [client-api]: https://matrix.org/docs/spec/client_server/r0.6.1.html
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
pub mod error;
pub mod r0;

View File

@ -90,7 +90,7 @@
//! * `reqwest-rustls-native-roots`
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
use std::{
future::Future,

View File

@ -3,7 +3,7 @@
//! Common types for other ruma crates.
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
pub mod authentication;
pub mod directory;

View File

@ -113,7 +113,7 @@
#![recursion_limit = "1024"]
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
use std::fmt::Debug;

View File

@ -6,7 +6,7 @@
//! [federation-api]: https://matrix.org/docs/spec/server_server/r0.1.4.html
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
mod serde;

View File

@ -6,7 +6,7 @@
#![warn(missing_docs)]
// FIXME: Remove once lint doesn't trigger on std::convert::TryFrom in macros.rs anymore
#![allow(unused_qualifications)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
// Renamed in `Cargo.toml` so we can have a serde feature.
// Rename it back here because `serde1` is ugly.

View File

@ -66,7 +66,7 @@
//! clicking **Feature flags** in the toolbar at the top.
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#[doc(no_inline)]
pub use assign::assign;