From 8ce05a6bd6581295564ee21b2aab9ee8bce122ae Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Fri, 5 Jun 2026 09:56:54 +0200 Subject: [PATCH] Add back doc_cfg feature for docs.rs In https://github.com/trussed-dev/trussed/pull/223 I removed both the `doc_auto_cfg` and `doc_cfg` features for docs.rs to fix the build. It looks like I misread the documentation and while `doc_auto_cfg` has been removed, `doc_cfg` is still necessary to document the required features. --- core/src/lib.rs | 1 + src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;