From cd600a2b13aad86b719a9451cd6983d9c9d5ce5d Mon Sep 17 00:00:00 2001 From: pv42 <pv42.97@gmail.com> 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 12d470b..0d3273c 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 3690dd9..71790d9 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")); -- GitLab