Use doc_auto_cfg for automatic cfg documentation
This commit is contained in:
parent
fac7d53134
commit
9621b83d49
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user