diff --git a/core/src/lib.rs b/core/src/lib.rs index 55664fb5dd4..f439ca5569b 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -1,4 +1,5 @@ #![cfg_attr(not(test), no_std)] +#![cfg_attr(docsrs, feature(doc_cfg))] //! Core types for the [`trussed`][] crate. //! diff --git a/src/lib.rs b/src/lib.rs index f10d448a5a3..385115d493a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ #![cfg_attr(not(any(feature = "std", test)), no_std)] +#![cfg_attr(docsrs, feature(doc_cfg))] //! # Trussed //! //! Trussed® is a minimal, modular way to write cryptographic applications on microcontroller platforms. @@ -41,7 +42,6 @@ pub mod store; pub mod types; #[cfg(feature = "virt")] -#[cfg_attr(docsrs, doc(cfg(feature = "virt")))] pub mod virt; pub use api::Reply;