Fix docs build with current nightly

Jonas SchΓ€fer created

skip-changelog, we don't officially support nightly.

See-Also: https://github.com/rust-lang/rfcs/pull/3631
See-Also: https://github.com/rust-lang/rust/pull/138907

Change summary

jid/src/lib.rs        | 3 ++-
minidom/src/lib.rs    | 3 ++-
parsers/src/lib.rs    | 3 ++-
sasl/src/lib.rs       | 3 ++-
tokio-xmpp/src/lib.rs | 3 ++-
xmpp/src/lib.rs       | 3 ++-
xso-proc/src/lib.rs   | 3 ++-
xso/src/lib.rs        | 2 +-
8 files changed, 15 insertions(+), 8 deletions(-)

Detailed changes

jid/src/lib.rs πŸ”—

@@ -10,7 +10,8 @@
 
 #![no_std]
 #![deny(missing_docs)]
-#![cfg_attr(docsrs, feature(doc_auto_cfg))]
+#![cfg_attr(docsrs, feature(doc_cfg))]
+#![cfg_attr(docsrs, doc(auto_cfg))]
 
 //! Represents XMPP addresses, also known as JabberIDs (JIDs) for the [XMPP](https://xmpp.org/)
 //! protocol. A [`Jid`] can have between one and three parts in the form `node@domain/resource`:

minidom/src/lib.rs πŸ”—

@@ -9,7 +9,8 @@
 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 #![deny(missing_docs)]
-#![cfg_attr(docsrs, feature(doc_auto_cfg))]
+#![cfg_attr(docsrs, feature(doc_cfg))]
+#![cfg_attr(docsrs, doc(auto_cfg))]
 
 //! A minimal DOM crate built on top of rxml, targeting exclusively the subset of XML useful
 //! for XMPP.

parsers/src/lib.rs πŸ”—

@@ -22,7 +22,8 @@
 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 #![warn(missing_docs)]
-#![cfg_attr(docsrs, feature(doc_auto_cfg))]
+#![cfg_attr(docsrs, feature(doc_cfg))]
+#![cfg_attr(docsrs, doc(auto_cfg))]
 
 extern crate alloc;
 

sasl/src/lib.rs πŸ”—

@@ -1,6 +1,7 @@
 //#![deny(missing_docs)]
 #![no_std]
-#![cfg_attr(docsrs, feature(doc_auto_cfg))]
+#![cfg_attr(docsrs, feature(doc_cfg))]
+#![cfg_attr(docsrs, doc(auto_cfg))]
 
 //! This crate provides a framework for SASL authentication and a few authentication mechanisms.
 //!

tokio-xmpp/src/lib.rs πŸ”—

@@ -71,7 +71,8 @@
 //! You can find more information on our website [xmpp.rs](https://xmpp.rs/) or by joining our chatroom [chat@xmpp.rs](xmpp:chat@xmpp.rs?join).
 
 #![deny(unsafe_code, missing_docs, bare_trait_objects)]
-#![cfg_attr(docsrs, feature(doc_auto_cfg))]
+#![cfg_attr(docsrs, feature(doc_cfg))]
+#![cfg_attr(docsrs, doc(auto_cfg))]
 
 macro_rules! fail_native_with_any {
     ($($feature:literal),+) => {

xmpp/src/lib.rs πŸ”—

@@ -46,7 +46,8 @@
 //! - `escape-hatch`: Allow access to low-level API to bypass shortcomings of the current API.
 
 #![deny(bare_trait_objects)]
-#![cfg_attr(docsrs, feature(doc_auto_cfg))]
+#![cfg_attr(docsrs, feature(doc_cfg))]
+#![cfg_attr(docsrs, doc(auto_cfg))]
 
 extern crate alloc;
 

xso-proc/src/lib.rs πŸ”—

@@ -7,7 +7,8 @@
 #![forbid(unsafe_code)]
 #![warn(missing_docs)]
 #![allow(rustdoc::private_intra_doc_links)]
-#![cfg_attr(docsrs, feature(doc_auto_cfg))]
+#![cfg_attr(docsrs, feature(doc_cfg))]
+#![cfg_attr(docsrs, doc(auto_cfg))]
 /*!
 # Macros for parsing XML into Rust structs, and vice versa
 

xso/src/lib.rs πŸ”—

@@ -1,5 +1,5 @@
-#![cfg_attr(docsrs, feature(doc_auto_cfg))]
 #![cfg_attr(docsrs, feature(doc_cfg))]
+#![cfg_attr(docsrs, doc(auto_cfg))]
 #![forbid(unsafe_code)]
 #![warn(missing_docs)]
 /*!