diff --git a/sdk/reserved-account-keys/Cargo.toml b/sdk/reserved-account-keys/Cargo.toml index 48fd92f9a777c0..d42aaa74c2780b 100644 --- a/sdk/reserved-account-keys/Cargo.toml +++ b/sdk/reserved-account-keys/Cargo.toml @@ -29,6 +29,8 @@ frozen-abi = ["dep:solana-frozen-abi", "dep:solana-frozen-abi-macro"] [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 52d60bfdcd3b6e..0eed849168a607 100644 --- a/sdk/reserved-account-keys/src/lib.rs +++ b/sdk/reserved-account-keys/src/lib.rs @@ -2,6 +2,7 @@ //! New reserved account keys may be added as long as they specify a feature //! gate that transitions the key into read-only at an epoch boundary. #![cfg_attr(feature = "frozen-abi", feature(min_specialization))] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] use { lazy_static::lazy_static, solana_feature_set::{self as feature_set, FeatureSet},