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
|
//! [client-api]: https://matrix.org/docs/spec/client_server/r0.6.1.html
|
||||||
|
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
|
|
||||||
pub mod error;
|
pub mod error;
|
||||||
pub mod r0;
|
pub mod r0;
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
//! * `reqwest-rustls-native-roots`
|
//! * `reqwest-rustls-native-roots`
|
||||||
|
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
future::Future,
|
future::Future,
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
//! Common types for other ruma crates.
|
//! Common types for other ruma crates.
|
||||||
|
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
|
|
||||||
pub mod authentication;
|
pub mod authentication;
|
||||||
pub mod directory;
|
pub mod directory;
|
||||||
|
@ -113,7 +113,7 @@
|
|||||||
|
|
||||||
#![recursion_limit = "1024"]
|
#![recursion_limit = "1024"]
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
|
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
//! [federation-api]: https://matrix.org/docs/spec/server_server/r0.1.4.html
|
//! [federation-api]: https://matrix.org/docs/spec/server_server/r0.1.4.html
|
||||||
|
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
|
|
||||||
mod serde;
|
mod serde;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
// FIXME: Remove once lint doesn't trigger on std::convert::TryFrom in macros.rs anymore
|
// FIXME: Remove once lint doesn't trigger on std::convert::TryFrom in macros.rs anymore
|
||||||
#![allow(unused_qualifications)]
|
#![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.
|
// Renamed in `Cargo.toml` so we can have a serde feature.
|
||||||
// Rename it back here because `serde1` is ugly.
|
// Rename it back here because `serde1` is ugly.
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
//! clicking **Feature flags** in the toolbar at the top.
|
//! clicking **Feature flags** in the toolbar at the top.
|
||||||
|
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||||
|
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use assign::assign;
|
pub use assign::assign;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user