Skip to content

Commit

Permalink
add doc_auto_cfg like in anza-xyz#3121
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Oct 22, 2024
1 parent a5c4b96 commit 2f2e8c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/reserved-account-keys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions sdk/reserved-account-keys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 2f2e8c3

Please sign in to comment.