From 56a64acbc07d81be8b79c5c3f8e65127b96b3dbf Mon Sep 17 00:00:00 2001 From: kevinheavey Date: Sat, 12 Oct 2024 14:19:48 +0400 Subject: [PATCH] add doc_auto_cfg like in #3121 --- sdk/reserved-account-keys/Cargo.toml | 2 ++ sdk/reserved-account-keys/src/lib.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/sdk/reserved-account-keys/Cargo.toml b/sdk/reserved-account-keys/Cargo.toml index 0b341733b201ea..819b24212302e4 100644 --- a/sdk/reserved-account-keys/Cargo.toml +++ b/sdk/reserved-account-keys/Cargo.toml @@ -31,6 +31,8 @@ std = ["dep:lazy_static", "dep:solana-feature-set"] [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] +all-features = true +rustdoc-args = ["--cfg=docsrs"] [lints] workspace = true diff --git a/sdk/reserved-account-keys/src/lib.rs b/sdk/reserved-account-keys/src/lib.rs index ebe2cb12c3a6f1..3b673ef28cf76b 100644 --- a/sdk/reserved-account-keys/src/lib.rs +++ b/sdk/reserved-account-keys/src/lib.rs @@ -3,6 +3,7 @@ //! gate that transitions the key into read-only at an epoch boundary. #![no_std] #![cfg_attr(feature = "frozen-abi", feature(min_specialization))] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] #[cfg(feature = "std")] extern crate std; #[cfg(feature = "std")]