From c810ab2283bc401df7136210f240a9ab7bb591d2 Mon Sep 17 00:00:00 2001 From: kevinheavey Date: Sat, 12 Oct 2024 13:47:37 +0400 Subject: [PATCH] add doc_auto_cfg like in #3121 --- sdk/system-instruction/Cargo.toml | 2 ++ sdk/system-instruction/src/lib.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/sdk/system-instruction/Cargo.toml b/sdk/system-instruction/Cargo.toml index 33c8cfb188f707..f039bc375e7749 100644 --- a/sdk/system-instruction/Cargo.toml +++ b/sdk/system-instruction/Cargo.toml @@ -11,6 +11,8 @@ edition = { workspace = true } [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] +all-features = true +rustdoc-args = ["--cfg=docsrs"] [dependencies] num-traits = { workspace = true } diff --git a/sdk/system-instruction/src/lib.rs b/sdk/system-instruction/src/lib.rs index 35d49aa2930b32..915c86daf578b3 100644 --- a/sdk/system-instruction/src/lib.rs +++ b/sdk/system-instruction/src/lib.rs @@ -40,6 +40,7 @@ //! [`AccountInfo`]: https://docs.rs/solana-account-info/latest/solana_account_info/struct.AccountInfo.html //! [`system_program`]: https://docs.rs/solana-program/latest/solana_program/system_program/index.html #![cfg_attr(feature = "frozen-abi", feature(min_specialization))] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] #[allow(deprecated)] use {