Skip to content

Commit

Permalink
doc: add doc_auto_cfg feature to doc and docsrs build for mavlink and…
Browse files Browse the repository at this point in the history
… mavlink-core
  • Loading branch information
pv42 committed Aug 26, 2024
1 parent d5c5bc3 commit 9f453e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mavlink-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

Expand Down
1 change: 1 addition & 0 deletions mavlink/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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"));

Expand Down

0 comments on commit 9f453e7

Please sign in to comment.