From 9f453e7d0cd56c7f1ddec5165271aabbcc9d4891 Mon Sep 17 00:00:00 2001 From: pv42 Date: Mon, 26 Aug 2024 16:35:26 +0200 Subject: [PATCH] doc: add doc_auto_cfg feature to doc and docsrs build for mavlink and mavlink-core --- mavlink-core/src/lib.rs | 1 + mavlink/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/mavlink-core/src/lib.rs b/mavlink-core/src/lib.rs index 12d470b614..0d3273c62b 100644 --- a/mavlink-core/src/lib.rs +++ b/mavlink-core/src/lib.rs @@ -19,6 +19,7 @@ //! feature without also using the `uavionix` and `icarous` features. //! #![cfg_attr(not(feature = "std"), no_std)] +#![cfg_attr(any(docsrs, doc), feature(doc_auto_cfg))] #![deny(clippy::all)] #![warn(clippy::use_self)] diff --git a/mavlink/src/lib.rs b/mavlink/src/lib.rs index 3690dd954c..71790d96d9 100644 --- a/mavlink/src/lib.rs +++ b/mavlink/src/lib.rs @@ -1,4 +1,5 @@ #![cfg_attr(not(feature = "std"), no_std)] +#![cfg_attr(any(docsrs, doc), feature(doc_auto_cfg))] // include generate definitions include!(concat!(env!("OUT_DIR"), "/mod.rs"));